rundeck-plugins / rundeck-ec2-nodes-plugin

Get resource node data from Amazon EC2
85 stars 45 forks source link

Hostname must be set to connect to remote node #78

Open kamusin opened 6 years ago

kamusin commented 6 years ago

Hey guys, I'm running rundeck 2.9.2-1 with the default settings included in Ubuntu 16.04. I created a task to run an specific command in all my fleet (.*), however a few hundred of them failed because of the following error: Hostname must be set to connect to remote node. Initially google pointed me to https://github.com/rundeck-plugins/rundeck-ec2-nodes-plugin/pull/57, which was fixed a long ago, unfortunately I'm facing this issue and there are no more relevant results in google.

This is an edited version of the log file:

2017-11-09 21:54:17,098 [quartzScheduler_Worker-1] ERROR grails.app.services.rundeck.services.ExecutionUtilService - Execution failed: 80 in project MyProject: [Workflow result: , step failures: {1=Dispatch failed on 1 nodes: [i-xxxxxxxxx: ConfigurationFailure: H
ostname must be set to connect to remote node 'i-xxxxxxxxx' + {dataContext=MultiDataContextImpl(map={}, base=null)} ]}, Node failures: {i-xxxxxxxxxx=[ConfigurationFailure: Hostname must be set to connect to remote node 'i-xxxxxxxxxx' + {dataContext=M
ultiDataContextImpl(map={}, base=null)} ]}, status: failed]

Please do not hesitate in ask me for more details if needed, thanks!

gschueler commented 6 years ago

was there a hostname set for that node? There is also this bug which version 2.9.2 may have: https://github.com/rundeck/rundeck/issues/2766 which is fixed in 2.9.4

kamusin commented 6 years ago

I will try upgrading to 2.10 and let you guys know. by the way, the hostname for this instance is the one assigned by cloud-init on bootstrap.