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/03/09 21:06:56 UTC

[GitHub] [airflow] dkinzer opened a new issue #14687: `airflow config list` command fails with google_auth configuration

dkinzer opened a new issue #14687:
URL: https://github.com/apache/airflow/issues/14687


   
   
   **Apache Airflow version**:
   
   1.10.14
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   Official docker image (apache/airflow:1.10.14)
   
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   After following all the requirements as specified in the docs for setting up security via google_auth: https://airflow.apache.org/docs/apache-airflow/1.10.14/security.html#google-authentication, the following command throws an error
   
   ```
   airflow@2fd70685e00d:/opt/airflow$ airflow config list
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 37, in <module>
       args.func(args)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/utils/cli.py", line 233, in wrapper
       func(args)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/bin/cli.py", line 2083, in config
       conf.write(output)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/configuration.py", line 503, in write
       self._write_section(fp, section, self.getsection(section).items(), d)  # type: ignore
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/configuration.py", line 465, in getsection
       _section = copy.deepcopy(self.airflow_defaults._sections[section])
   KeyError: 'google'
   airflow@2fd70685e00d:/opt/airflow$
   airflow@2fd70685e00d:/opt/airflow$
   airflow@2fd70685e00d:/opt/airflow$
   airflow@2fd70685e00d:/opt/airflow$
   airflow@2fd70685e00d:/opt/airflow$
   airflow@2fd70685e00d:/opt/airflow$ airflow config list
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 37, in <module>
       args.func(args)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/utils/cli.py", line 233, in wrapper
       func(args)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/bin/cli.py", line 2083, in config
       conf.write(output)
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/configuration.py", line 503, in write
       self._write_section(fp, section, self.getsection(section).items(), d)  # type: ignore
     File "/home/airflow/.local/lib/python3.6/site-packages/airflow/configuration.py", line 465, in getsection
       _section = copy.deepcopy(self.airflow_defaults._sections[section])
   KeyError: 'google'
   ```
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   I expect the configurations to be listed without throwing an error.
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   You can reproduce this on a clean install of airflow or using the official airflow docker image.
   
   Run:
   `pip install 'apache-airflow[google_auth]'`
   
   Add the following to `airflow.cfg` file:
   
   ```
   [google]
   client_id = google_client_id
   client_secret = google_client_secret
   oauth_callback_route = /oauth2callback
   domain = example1.com,example2.com
   prompt = <One of : consent, select_account, none or ''>
   ```
   
   Then run the following command from the cli:
   
   `airflow config list`
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   Every time
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] mik-laj closed issue #14687: `airflow config list` command fails with google_auth configuration

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #14687:
URL: https://github.com/apache/airflow/issues/14687


   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] mik-laj commented on issue #14687: `airflow config list` command fails with google_auth configuration

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #14687:
URL: https://github.com/apache/airflow/issues/14687#issuecomment-799047018


   Fixed by: https://github.com/apache/airflow/pull/12816
   
   The Airflow 1.10.x series will be supported for six months (June 17, 2021) from Airflow 2.0.0 release date (Dec 17, 2020). Specifically, only 'critical fixes' defined as fixes to bugs that takedown Production systems, will be backported to 1.10.x until June 17, 2021.
   
   This bug does not fit into tthis bug category, so i need to close this issue. 


----------------------------------------------------------------
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.

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #14687: `airflow config list` command fails with google_auth configuration

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


   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.

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