R u kidding me? 2.5.5 pushed to 2.5.4 tag :stonned:
See original GitHub issueFamous mammoth commit https://github.com/amundsen-io/amundsenmetadatalibrary/commit/48b4c71054f7b34bca8a8f148e8b7499dfb986fc got pushed to dockerhub for tag amundsendev/amundsen-metadata:2.5.4
6 days ago from today, which broke the existing integration with atlas.
Expected Behavior
Amundsen metadata (v2.5.4) GET /table/
should work in the same env where it used to work 7 days before today.
Current Behavior
A simple rest call to amundsen-metadata GET /table/hive_table://primary.apps/some_simple_beautiful_table
breaks with 500.
File "/usr/local/lib/python3.7/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
resp = meth(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flasgger/utils.py", line 249, in wrapper
return function(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/api/table.py", line 32, in get
table = self.client.get_table(table_uri=table_uri)
File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py", line 445, in get_table
owners=self._get_owners(table_details[self.REL_ATTRS_KEY].get('ownedBy'), attrs.get('owner')),
File "/usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py", line 385, in _get_owners
data_owners)
TypeError: 'NoneType' object is not iterable
Possible Solution
I’m not even looking into the actual problem. EXPECTATION IS WHEN I PULL IMAGE TAG 2.5.4 I GET CODE OF GIT BRANCH/TAG 2.5.4.
As a quick fix : Using sha of old image (hopefully I didn’t pull the image on my laptop for several days which saved my job)
amundsendev/amundsen-metadata@sha256:098afdc15444b212c30202f729b1a30772625e304499fc1f602773d7457938cc
Long term fix: Stop trusting amundsendev, their CI/CD, till they use rewrite-able docker tags. Once confidence is gained, pull the images and save them on a pendrive or your own container registry.
Steps to Reproduce (Proof of my claim)
docker run -it --rm amundsendev/amundsen-metadata:2.5.4 bash -c 'head -n 395 /usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py | tail -20'
Or simplydocker run -it --rm amundsendev/amundsen-metadata:2.5.4 bash -c 'cat /usr/local/lib/python3.7/site-packages/amundsen_metadata-2.5.4-py3.7.egg/metadata_service/proxy/atlas_proxy.py | wc -l'
- Now verify the code against https://github.com/amundsen-io/amundsenmetadatalibrary/blob/v2.5.4/metadata_service/proxy/atlas_proxy.py
- Expected 672 lines but found 873 lines! (🤔 )
Screenshots (if appropriate)
I can attach a pic of my manager’s angry face at 2AM
Context
I wasted 3 hours of my life debugging the issue. I was working on a feature to do full access control using apache ranger on both amundsen and atlas. i thought this is a problem of the ranger integration code. It broke our production environment as we thought amundsendev will never mutate release tags of stable docker images.
Your Environment
- Amunsen version used: Does it really matter now?
Amunsen version used: dockerimages : amundsendev/amundsen-search:2.4.0 amundsendev/amundsen-metadata:2.5.4 (cough cough) amundsendev/amundsen-frontend-oidc:2.2.2
Deployment: k8s behind ingress
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:10 (10 by maintainers)
Sure, we can make PR.
@learningyoda what say?
@feng-tao We have released it for a limited audience. Soon, we release it for the entire organisation and get the first round of user feedback, I’ll raise the PR. Till that time, we have to wait.