Replies: 5 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
@dddevis Did you tried set logging_level to DEBUG Most of the errors during get data from secrets manager suppressed airflow/airflow/providers/amazon/aws/secrets/secrets_manager.py Lines 446 to 480 in e736c2d |
Beta Was this translation helpful? Give feedback.
-
@Taragolis I've set the logging level to "DEBUG" and I see this instead:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
You should see if you have no typos in your connection - the easiest way is to check if you can retrieve the connection via Python code. and see if you correctly retrieve it. I think you have some configuration issue that does not let you read the connection. Also make sure that your webserver has the same configuration for secret backends as the rest of the system. It looks like some typo or configuration issue. |
Beta Was this translation helpful? Give feedback.
-
Official Helm Chart version
1.6.0 (latest released)
Apache Airflow version
2.3.0
Kubernetes Version
1.22
Helm Chart configuration
I'm trying to set up remote logging on S3. The
config.logging
stanza looks like this:I have an AWS Secrets Manager secret called
airflow/connections/airflow-remote-logging-conn
. Via Helm I have configured Airflow to use Secrets Manager as the secrets backend. Here is myconfig.secrets
:Docker Image customisations
A minimal extension to the official Docker image:
where
requirements.txt
isWhat happened
Remote logging does not work. All task logs in the UI report:
What you think should happen instead
Remote logging to S3 should work and the Airflow deployment should recognize that the connection
airflow-remote-logging-conn
exists, since the Secrets Manager secret name isairflow/connections/airflow-remote-logging-conn
, adhering to the specification inconfig.secrets.backend_kwargs
.I have essentially the same setup for a different Airflow instance I manage with Helm chart v1.1.0, and I have no problems there.
How to reproduce
values.yaml
for the v1.6.0 Helm chart, changeconfig.logging
andconfig.secrets
as above.workers.serviceAccount
along these lines:where the IRSA
airflow-worker
has these policies attached:and
Similarly for IRSAs
airflow-scheduler
andairflow-webserver
.3. Create a Secrets Manager secret called
airflow/connections/airflow-remote-logging-conn
and populate it withs3://my-bucket
.4. Run the example DAG and see the error reporting that the connection
airflow-remote-logging-conn
isn't defined.Anything else
This happens every time for any task with chart version 1.6.0. The same setup with 1.1.0 works.
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions