Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ st2 run core.remote hosts=100.73.114.124 whoami
.
id: 56847659a8479506930a36d7
status: failed
parameters:
cmd: whoami
hosts: 100.73.114.124
result:
error: "Unable to connect to any one of the hosts: [u'100.73.114.124'].
connect_errors={
"100.73.114.124": {
"failed": true,
"traceback": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/st2actions/runners/ssh/parallel_ssh.py\", line 238, in _connect\n client.connect()\n File \"/usr/lib/python2.7/site-packages/st2actions/runners/ssh/parami$o_ssh.py\", 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/paramiko_ssh.py\", line 549, in _connect\n client.connect(**conninfo)\n File \"/usr/lib/python2.7/site-packages/paramiko/client.py\", line 251, in connect\n retry_on_signal(lambda: sock.connect(addr))\n File \"/usr/lib/python2.7/site-packages/paramiko/util.py\", line 270, in retry_on_signal\n return function()\n Fil$ \"/usr/lib/python2.7/site-packages/paramiko/client.py\", line 251, in <lambda>\n retry_on_signal(lambda: sock.connect(addr))\n File \"/usr/lib/python2.7/site-packages/eventlet/greenio/base.py\", line 254, in connect\n socket_checkerr(fd)\n File $"/usr/lib/python2.7/site-packages/eventlet/greenio/base.py\", 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/base.py", line 102, in _do_run
runner.pre_run()
File "/usr/lib/python2.7/site-packages/st2actions/runners/ssh/paramiko_ssh_runner.py", line 145, in pre_run
connect=True
File "/usr/lib/python2.7/site-packages/st2actions/runners/ssh/parallel_ssh.py", 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/parallel_ssh.py", 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.