You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2018/05/13 18:53:00 UTC
[jira] [Resolved] (AIRFLOW-2453) Airflow init fail due lack of
default settings kubernetes executor
[ https://issues.apache.org/jira/browse/AIRFLOW-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AIRFLOW-2453.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Issue resolved by pull request #3350
[https://github.com/apache/incubator-airflow/pull/3350]
> 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
> Assignee: Sergio B
> Priority: Blocker
> Fix For: 2.0.0
>
>
> 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)