[Bug 1321787] Re: Paramiko does not properly work with eventlet concurrency
Chuck Short
chuck.short at canonical.com
Fri Jan 13 17:52:06 UTC 2017
** Changed in: python-eventlet (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-eventlet in Ubuntu.
https://bugs.launchpad.net/bugs/1321787
Title:
Paramiko does not properly work with eventlet concurrency
Status in Ironic:
Fix Released
Status in tripleo:
Fix Released
Status in python-eventlet package in Ubuntu:
Fix Released
Bug description:
UPD(dtantsur): Old title: `ironic node-set-power-state off` fails
during Tripleo deployment
Tripleo deployment with Ironic, when it register baremetal nodes, with
the following error
+ ironic node-set-power-state 1c55376d-19c5-473c-9c28-33e3c4549785 off
SSH connection cannot be established: Failed to establish SSH connection to host 192.168.122.1. (HTTP 400)
Here is the traceback from ironic-conductor.log
2014-05-21 13:16:12.342 5073 ERROR paramiko.transport [-] Exception: Error reading SSH protocol bannerSecond simultaneous read on fileno 8 detected. Unless you really know what you're
doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.d
ebug.hub_prevent_multiple_readers(False)
2014-05-21 13:16:12.357 5073 ERROR paramiko.transport [-] Traceback (most recent call last):
2014-05-21 13:16:12.357 5073 ERROR paramiko.transport [-] File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/paramiko/transport.py", line 1412, in run
2014-05-21 13:16:12.358 5073 ERROR paramiko.transport [-] self._check_banner()
2014-05-21 13:16:12.358 5073 ERROR paramiko.transport [-] File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/paramiko/transport.py", line 1539, in _check_banner
2014-05-21 13:16:12.358 5073 ERROR paramiko.transport [-] raise SSHException('Error reading SSH protocol banner' + str(e))
2014-05-21 13:16:12.358 5073 ERROR paramiko.transport [-] SSHException: Error reading SSH protocol bannerSecond simultaneous read on fileno 8 detected. Unless you really know what you're doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.debug.hub_prevent_multiple_readers(False)
2014-05-21 13:16:12.358 5073 ERROR paramiko.transport [-]
Traceback (most recent call last):
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in fire_timers
timer()
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 56, in __call__
cb(*args, **kw)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 194, in main
result = function(*args, **kwargs)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/conductor/task_manager.py", line 92, in wrapper
return f(*args, **kwargs)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/conductor/utils.py", line 74, in node_power_action
node.save(context)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/openstack/common/excutils.py", line 82, in __exit__
six.reraise(self.type_, self.value, self.tb)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/conductor/utils.py", line 67, in node_power_action
curr_state = task.driver.power.get_power_state(task, node)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/drivers/modules/ssh.py", line 394, in get_power_state
ssh_obj = _get_connection(node)
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/drivers/modules/ssh.py", line 250, in _get_connection
return utils.ssh_connect(_parse_driver_info(node))
File "/opt/stack/venvs/openstack/local/lib/python2.7/site-packages/ironic/common/utils.py", line 113, in ssh_connect
raise exception.SSHConnectFailed(host=connection.get('host'))
SSHConnectFailed: Failed to establish SSH connection to host 192.168.122.1.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ironic/+bug/1321787/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list