SSH Client hangs on execute command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Expired
|
Undecided
|
Unassigned |
Bug Description
It appears that the Tempest ssh client is hanging while trying to execute a command on a virtual machine.
This change appears to have broken the ssh_client.
I confirmed this by testing the ssh.py file prior to the change and the hang no longer occurs.
Steps to reproduce:
1. With devstack, pull down neutron-lbaas repo
2. export TEMPEST_
3. tox -e scenartio
Result:
Here's an example log where the hang occurs:
2016-05-03 02:36:49.929 12750 DEBUG tempest.
n; while true; do sudo nc -ll -p 80 -e sh /tmp/script1; done > /dev/null & exec_command /opt/stack/
lib/python2.
2016-05-03 02:36:49.929 12750 INFO tempest.
thentication
2016-05-03 02:36:49.935 12750 INFO paramiko.transport [-] Connected (version 2.0, client dropbear_2012.55)
2016-05-03 02:36:50.055 12750 INFO paramiko.transport [-] Authentication (publickey) successful!
2016-05-03 02:36:50.057 12750 INFO tempest.
<<<HANGS HERE INDEFINITELY>>>>
Note: This is preventing new code from being submitted into the repo. So please make this a high priority.
summary: |
- SSH Client hangs on connect to compute virtual machine + SSH Client hangs on execute command |
Do you have a link to the actual failure logs on the log server available? That change has been running everywhere for sometime, so I want to check other system info when things hang
Although, looking at the command you're running that will always hang it's an infinite loop running in the fg, that will be blocking. I'm not sure this is actually a bug in tempest, but when we fixed the bug in the patch you mentioned ssh started behaving properly and blocking until it actually exited.