rundeck-plugins / docker

Providers for docker
29 stars 23 forks source link

Node executor fail with 'HostNotFound' #46

Closed dmarteau closed 4 years ago

dmarteau commented 4 years ago

Hi

After having succesfully configured remote running containers as Node, I try to execute a command on a remote container and get the following Error:

Failed: HostNotFound: 81145dc94c6a

Where 81145dc94c6a is the remote container id.

Did I miss something here ? AMHA the docker-container-node-executor should have tried to run a 'docker exec' command and not attempting to resolve the hostname as 81145dc94c6a

Here is the logs:

INFO  execution.status admin start [5:running] Factory admin/- "-/- -"[-]
[2019-10-02 21:55:01.957] ERROR ExecutionUtilService --- 
[eduler_Worker-5] Execution failed: 5 in project Factory: [Workflow result: , step failures: 
{1=Dispatch failed on 1 nodes: [/jenkins: HostNotFound: 81145dc94c6a + {dataContext=MultiDataContextImpl(map=
{ContextView(node:/jenkins)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, 
node:/jenkins)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, Node failures: 
{/jenkins=[HostNotFound: 81145dc94c6a + {dataContext=MultiDataContextImpl(map=
{ContextView(node:/jenkins)=BaseDataContext{{exec={exitCode=-1}}}, ContextView(step:1, 
node:/jenkins)=BaseDataContext{{exec={exitCode=-1}}}}, base=null)} ]}, status: failed]

Running Rundeck 3.1.2-20190927

Thx

dmarteau commented 4 years ago

Sorry, did not understand the node-executor model in Rundeck: it appears that there is no mapping of node model to an executor model.