2017-12-05 9 views
0

私のnomadサーバーに次のジョブを送信しようとしています。仕事は基本的に私のlocalhostのpythonファイルであるペイロードを使います。私は遊牧民でジョブの状態を確認するときNomad:Pythonスクリプトを実行できません

job "agent-collector-bot" { 
    datacenters = ["staging"] 

    type = "batch" 

    periodic { 
    cron    = "*/10 * * * *" 
    prohibit_overlap = true 
    } 

    group "python-bot" { 
    count = 1 
    task "slack-bot" { 
     driver = "raw_exec" 

     config { 
     command = "python" 
     args = ["local/agent-collector-slackbot.py"] 
     } 

     dispatch_payload { 
     file = "agent-collector-slackbot.py" 
    } 

    } 
    } 
} 

は、今では言う:

snomad状況エージェント・コレクタ・ボット/

ID   = agent-collector-bot/periodic-1512465000 
Name   = agent-collector-bot/periodic-1512465000 
Submit Date = 12/05/17 14:40:00 IST 
Type   = batch 
Priority  = 50 
Datacenters = staging 
Status  = pending 
Periodic  = false 
Parameterized = false 

Summary 
Task Group Queued Starting Running Failed Complete Lost 
python-bot 1  0   0  0  0   0 

Placement Failure 
Task Group "python-bot": 
    * Constraint "missing drivers" filtered 5 nodes 

を私は遊牧民のクライアント(すべて5)のpythonを持っている確認しました誰かが私を助けることができますか?

答えて

0

出力で指定されたドライバは、pythonではなく、raw_execです。

あなたのクライアントの設定( nomad raw_exec docs)でそれを有効にする必要があり

client { 
    options = { 
    "driver.raw_exec.enable" = "1" 
    } 
} 
関連する問題