diff options
author | Matt Riedemann <mriedem@us.ibm.com> | 2013-05-09 19:15:25 -0700 |
---|---|---|
committer | Matt Riedemann <mriedem@us.ibm.com> | 2013-05-09 19:15:25 -0700 |
commit | 75545ba974afb1ac76186a8dad359ae0aa751c01 (patch) | |
tree | cf381b20a3eb24c43996f4ac98ea4dbb8b929549 /nova/utils.py | |
parent | e02c365888d046179b4326a1e6d85602f56ec032 (diff) | |
download | nova-75545ba974afb1ac76186a8dad359ae0aa751c01.tar.gz nova-75545ba974afb1ac76186a8dad359ae0aa751c01.tar.xz nova-75545ba974afb1ac76186a8dad359ae0aa751c01.zip |
Check cached SSH connection in PowerVM driver
The PowerVM operator code caches an SSH connection to the hypervisor
which can become invalid if the connection to the hypervisor is not
terminated cleanly, e.g. the hypervisor is rebooted while the compute
node is connected to it.
This code checks an existing SSH connection object to see if it's
transport is still alive and if not, re-establishes the connection
before attempting to run SSH commands on the hypervisor.
Also added some basic unit tests to cover the new check_connection
function in nova.virt.powervm.common.
Fixes bug 1177104
Change-Id: I08079cf0d9e60e1d8902d32d684d979b06f7f287
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions