-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Airflow s3 connection test intermittent failures #510
Labels
bug
[Fixed] for any bug fixes.
Comments
s3_task_handler.py fails because it uses s3_hook that doesn't take credentials from Kube2IAM. It means that kube2iam doesn't work on Airflow. |
@aliaksandr-d still have this issue in develop |
aliaksandr-d
added a commit
that referenced
this issue
Oct 25, 2018
aliaksandr-d
added a commit
that referenced
this issue
Oct 25, 2018
aliaksandr-d
added a commit
that referenced
this issue
Oct 25, 2018
dsuslov
pushed a commit
that referenced
this issue
Oct 25, 2018
Closed by #560 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Airflow S3 connection test fails periodically with next error:
File "/usr/local/lib/python3.6/dist-packages/legion_airflow/hooks/k8s_base_hook.py", line 51, in _get_conn_from_k8s
k8s_namespace=os.environ['NAMESPACE']
File "/usr/local/lib/python3.6/dist-packages/legion/k8s/properties.py", line 99, in retrive
instance.load()
File "/usr/local/lib/python3.6/dist-packages/legion/k8s/properties.py", line 347, in load
self._read_k8s_resource_exception_handler(load_exception)
File "/usr/local/lib/python3.6/dist-packages/legion/k8s/properties.py", line 716, in _read_k8s_resource_exception_handler
.format(self.k8s_name, self.k8s_namespace_or_default, exception))
Exception: Cannot read secret 'airflow-credentials-s3-conn' in namespace 'company-a': (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Fri, 05 Oct 2018 09:18:23 GMT', 'Content-Length': '357'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"secrets "airflow-credentials-s3-conn" is forbidden: User "system:serviceaccount:company-a:airflow-company-a-airflow-worker" cannot get secrets in the namespace "company-a"","reason":"Forbidden","details":{"name":"airflow-credentials-s3-conn","kind":"secrets"},"code":403}
Stack (most recent call last):
File "/usr/local/bin/airflow", line 27, in <module>
args.func(args)
File "/usr/local/lib/python3.6/dist-packages/airflow/bin/cli.py", line 438, in run
handler.close()
File "/usr/local/lib/python3.6/dist-packages/airflow/utils/log/s3_task_handler.py", line 77, in close
self.s3_write(log, remote_loc)
File "/usr/local/lib/python3.6/dist-packages/airflow/utils/log/s3_task_handler.py", line 150, in s3_write`
The text was updated successfully, but these errors were encountered: