Comment 12 for bug 1571492

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/307952
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=68c197e890c3847e52704216b83c873c2313b4e2
Submitter: Jenkins
Branch: master

commit 68c197e890c3847e52704216b83c873c2313b4e2
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
    Change-Id: I5169faf25c36cfb494c9c1fafb14fb4f7f82cd9e