You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/10 20:50:28 UTC

[GitHub] [airflow] BrunoRizziBTG opened a new issue #19529: Airflow does not load default connections

BrunoRizziBTG opened a new issue #19529:
URL: https://github.com/apache/airflow/issues/19529


   ### Official Helm Chart version
   
   main (development)
   
   ### Apache Airflow version
   
   2.2.1 (latest released)
   
   ### Kubernetes Version
   
   1.20
   
   ### Helm Chart configuration
   
   ```
   
   ---
   
     dags: 
   
       persistence: 
   
         storageClassName: "gp2"
   
     logs: 
   
       persistence: 
   
         storageClassName: "gp2"
   
     redis: 
   
       persistence: 
   
         storageClassName: "gp2"
   
     webserver: 
   
       service: 
   
         annotations: 
   
           service.beta.kubernetes.io/aws-load-balancer-internal: "true"
   
         type: "LoadBalancer"
   
     workers: 
   
       persistence: 
   
         storageClassName: "gp2"
   
     extraEnv: |-
   
       - name: AIRFLOW__CORE__LOAD_DEFAULT_CONNECTIONS
   
         value: "True"
   
       - name: AIRFLOW__WEBSERVER__EXPOSE_CONFIG
   
         value: "True" 
   
   
   ```
   
   ### Docker Image customisations
   
   _No response_
   
   ### What happened
   
   When I try to deploy my airflow with helm chart the default connections does not appears in UI and in the database, I checked both.
   Connections like aws_default and emr_default does not appears.
   
   ### What you expected to happen
   
   I expect the connections to appear in the database, because with the variable  AIRFLOW__CORE__LOAD_DEFAULT_CONNECTIONS set to true the connections have to be created in the database, but it is not happening.
   
   ### How to reproduce
   
   Use the custom values that I pass, change the "gp2" storage class to yours and the annotation of the load balancer too. 
   With this you can run the helm chart and check the connections in ui and in postgres and you will see that no default connection was created.
   
   ### Anything else
   
   I run this in EKS environment.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on issue #19529: Airflow does not load default connections

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #19529:
URL: https://github.com/apache/airflow/issues/19529#issuecomment-965767708


   The 'load_default_connections" parameter is only valid at "db init" time and they are only there for ease of development setup - they are not recommended for production setup. We are running "db upgrade" only. If you need to create some connections upfront, you need to do it outside of the helm chart


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #19529: Airflow does not load default connections

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #19529:
URL: https://github.com/apache/airflow/issues/19529#issuecomment-965735065


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #19529: Airflow does not load default connections

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #19529:
URL: https://github.com/apache/airflow/issues/19529


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org