This patch is updating the logic in the SSH module to not rely on the
"closed" attribute of the channel object when polling the data. The
"closed" attribute may not set to True as part of the exec_command()
execution stack and in that case would cause the exec_command() (from
the tempest SSH module) to hang.
This patch also uses the context manager when creating the channel so
it gets properly closed at the end of the execution scope.
Reviewed: https:/ /review. openstack. org/307952 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=68c197e890c 3847e52704216b8 3c873c2313b4e2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 68c197e890c3847 e52704216b83c87 3c2313b4e2
Author: Lucas Alvares Gomes <email address hidden>
Date: Tue Apr 19 18:18:05 2016 +0100
SSH: Do not rely on the .closed attribute
This patch is updating the logic in the SSH module to not rely on the
"closed" attribute of the channel object when polling the data. The
"closed" attribute may not set to True as part of the exec_command()
execution stack and in that case would cause the exec_command() (from
the tempest SSH module) to hang.
This patch also uses the context manager when creating the channel so
it gets properly closed at the end of the execution scope.
Closes-Bug: #1571492 b494c9c1fafb14f b4f7f82cd9e
Change-Id: I5169faf25c36cf