[ https://issues.apache.org/jira/browse/AIRFLOW-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16473602#comment-16473602 ]
ASF subversion and git services commented on AIRFLOW-2453: ---------------------------------------------------------- Commit a92330e4fafaeeb9a06f4fe18412cf67da0db8b5 in incubator-airflow's branch refs/heads/master from Sergio Ballesteros [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=a92330e ] [AIRFLOW-2453] Add default nil value for kubernetes/git_subpath Closes #3350 from ese/gitsubpath > Airflow init fail due lack of default settings kubernetes executor > ------------------------------------------------------------------ > > Key: AIRFLOW-2453 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2453 > Project: Apache Airflow > Issue Type: Bug > Components: configuration, executor > Reporter: Sergio B > Priority: Blocker > > Since last changes in kubernetes config management for kubernetes executor, > startup of airflow raise an exception if you dont have setted > kubernetes/git_subpath which is was working previous this commit: > [https://github.com/apache/incubator-airflow/commit/16bae5634df24132b37eb752fe816f51bf7e83ca#diff-b1d8d65aeaa7d031dfe5b197d6c5aa69L131] > > This is the trace: > [2018-05-11 08:21:57,164] \{configuration.py:212} WARNING - section/key > [kubernetes/git_subpath] not found in config > Traceback (most recent call last): > File "/usr/local/bin/airflow", line 22, in <module> > from airflow.bin.cli import CLIFactory > File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 57, > in <module> > from airflow import jobs, settings > File "/usr/local/lib/python2.7/dist-packages/airflow/jobs.py", line 71, in > <module> > class BaseJob(Base, LoggingMixin): > File "/usr/local/lib/python2.7/dist-packages/airflow/jobs.py", line 103, in > BaseJob > executor=executors.GetDefaultExecutor(), > File "/usr/local/lib/python2.7/dist-packages/airflow/executors/__init__.py", > line 45, in GetDefaultExecutor > DEFAULT_EXECUTOR = _get_executor(executor_name) > File "/usr/local/lib/python2.7/dist-packages/airflow/executors/__init__.py", > line 83, in _get_executor > return KubernetesExecutor() > File > "/usr/local/lib/python2.7/dist-packages/airflow/contrib/executors/kubernetes_executor.py", > line 440, in __init__ > self.kube_config = KubeConfig() > File > "/usr/local/lib/python2.7/dist-packages/airflow/contrib/executors/kubernetes_executor.py", > line 117, in __init__ > self.git_subpath = conf.get(self.kubernetes_section, 'git_subpath') > File "/usr/local/lib/python2.7/dist-packages/airflow/configuration.py", line > 217, in get > "in config".format(**locals())) > airflow.exceptions.AirflowConfigException: section/key > [kubernetes/git_subpath] not found in config -- This message was sent by Atlassian JIRA (v7.6.3#76005)