Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$ st2 run core.remote hosts= whoami
id: 56847659a8479506930a36d7
status: failed
cmd: whoami
error: "Unable to connect to any one of the hosts: [u''].
"": {
"failed": true,
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/st2actions/runners/ssh/\", line 238, in _connect\n client.connect()\n File \"/usr/lib/python2.7/site-packages/st2actions/runners/ssh/parami$\", line 135, in connect\n self.client = self._connect(host=self.hostname, socket=self.bastion_socket)\n File \"/usr/lib/python2.7/site-packages/st2actions/runners/ssh/\", line 549, in _connect\n client.connect(**conninfo)\n File \"/usr/lib/python2.7/site-packages/paramiko/\", line 251, in connect\n retry_on_signal(lambda: sock.connect(addr))\n File \"/usr/lib/python2.7/site-packages/paramiko/\", line 270, in retry_on_signal\n return function()\n Fil$ \"/usr/lib/python2.7/site-packages/paramiko/\", line 251, in <lambda>\n retry_on_signal(lambda: sock.connect(addr))\n File \"/usr/lib/python2.7/site-packages/eventlet/greenio/\", line 254, in connect\n socket_checkerr(fd)\n File $"/usr/lib/python2.7/site-packages/eventlet/greenio/\", line 44, in socket_checkerr\n raise socket.error(err, errno.errorcode[err])\nerror: [Errno 111] ECONNREFUSED\n",
"timeout": false,
"succeeded": false,
"stdout": "",
"stderr": "",
"error": "Cannot connect to host. [Errno 111] ECONNREFUSED: ",
"return_code": 255
traceback: " File "/usr/lib/python2.7/site-packages/st2actions/container/", line 102, in _do_run
File "/usr/lib/python2.7/site-packages/st2actions/runners/ssh/", line 145, in pre_run
File "/usr/lib/python2.7/site-packages/st2actions/runners/ssh/", line 58, in __init__
connect_results = self.connect(raise_on_any_error=raise_on_any_error)
File "/usr/lib/python2.7/site-packages/st2actions/runners/ssh/", line 88, in connect
raise NoHostsConnectedToException(msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.