2017-09-24 1 views
0

気流に寄与しようとしていますが、Ubuntu 16.0.4で毒性が上がることはありません。ケルボで何かが起こっている。気流のためにtoxを実行中にエラーが発生しました

https://github.com/apache/incubator-airflow

py34-hdp-airflow_backend_postgres runtests: commands[2] | sudo /home/dalupus/incubator-airflow/scripts/ci/setup_kdc.sh 
WARNING:test command found but not installed in testenv 
    cmd: /usr/bin/sudo 
    env: /home/dalupus/incubator-airflow/.tox/py34-hdp-airflow_backend_postgres 
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting. 
127.0.0.1 localhost 
127.0.1.1 ubuntu 

# The following lines are desirable for IPv6 capable hosts 
::1  ip6-localhost ip6-loopback 
fe00::0 ip6-localnet 
ff00::0 ip6-mcastprefix 
ff02::1 ip6-allnodes 
ff02::2 ip6-allrouters 
hostname: ubuntu 
Loading random data 
Initializing database '/etc/krb5kdc/principal' for realm 'TEST.LOCAL', 
master key name 'K/[email protected]' 
You will be prompted for the database Master Password. 
It is important that you NOT FORGET this password. 
Enter KDC database master key: 
Re-enter KDC database master key to verify: 
kdb5_util: File exists while creating database '/etc/krb5kdc/principal' 
Authenticating as principal root/[email protected] with password. 
WARNING: no policy specified for admin/[email protected]; defaulting to no policy 
Enter password for principal "admin/[email protected]": 
Re-enter password for principal "admin/[email protected]": 
add_principal: Principal or policy already exists while creating "admin/[email protected]". 
Authenticating as principal root/[email protected] with password. 
WARNING: no policy specified for [email protected]; defaulting to no policy 
add_principal: Principal or policy already exists while creating "[email protected]". 
Authenticating as principal root/[email protected] with password. 
WARNING: no policy specified for airflow/[email protected]; defaulting to no policy 
add_principal: Principal or policy already exists while creating "airflow/[email protected]". 
Authenticating as principal root/[email protected] with password. 
Usage: ktadd [-k[eytab] keytab] [-q] [-e keysaltlist] [-norandkey] [principal | -glob princ-exp] [...] 
Authenticating as principal root/[email protected] with password. 
Usage: ktadd [-k[eytab] keytab] [-q] [-e keysaltlist] [-norandkey] [principal | -glob princ-exp] [...] 
chmod: missing operand after ‘664’ 
Try 'chmod --help' for more information. 
ERROR: InvocationError: '/usr/bin/sudo /home/dalupus/incubator-airflow/scripts/ci/setup_kdc.sh' 

ないどこでもこれを起動してください。私はすべてのdepsをインストールしたと思う。

+0

プロジェクトにalinkを追加してください。それは毒BTWの問題ではありません。 –

+0

はい私はそれが毒素の "問題"だとは思わない、私はそれが設定の問題であると確信しています。 – Dalupus

+0

@Dalupusこれに対する解決策を見つけましたか?私は同じことをしているトラビスCIの空気のためのビルド(https://travis-ci.org/ahh2131/incubator-airflow/jobs/285393754#L8831) –

答えて

1

scripts/ci/setup_kdc.shsudoで実行され、sudoは環境変数を消去するため、${KRB5_KTNAME}は定義されていません。

コマンドsudotox.iniに使用されているが、(もちろん、それはしていません - sudoはvenvにインストールすべきでないシステムコマンドである。)その仮想環境でそれをtox見つからないコマンドがある必要がありますセクション[testenv]tox.iniにホワイトリスト:

[testenv] 
whitelist_externals = 
    sudo 

これらはairflowのバグあり、それらをプルリクエストやバグレポートを送ってください。

+0

うーん...本当に問題になることができますか? AFAIKプログラムがホワイトリストに登録されていない場合でも動作しますが、toxは警告を表示してホワイトリストに登録します。 –

+1

@OliverBestwalterあなたが正しいです。私は答えを広げた。ありがとう。 – phd

関連する問題