potential dead loop in tempest/lib/common/ssh.py

Bug #1572323 reported by Jerry Zhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
New
Undecided
Unassigned

Bug Description

https://github.com/openstack/tempest/blob/master/tempest/lib/common/ssh.py#L151

it is possible that channel.closed can not be observed in some cases, especially the case in my CI environment.

https://github.com/paramiko/paramiko/issues/109

If ready[0] is not empty and the channel never gets closed, exec_command will hang until OS_TEST_TIMEOUT, even though all the return status and output have been received.

Propose to close the channel actively when channel_timeout is reached and break from the loop.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.