Enable a timeout for instance shutdown
authorMichele Tartara <mtartara@google.com>
Fri, 7 Mar 2014 09:50:33 +0000 (10:50 +0100)
committerMichele Tartara <mtartara@google.com>
Fri, 7 Mar 2014 10:08:02 +0000 (11:08 +0100)
commit874f61488693d79981723dcac778b5cef771c25b
tree0e56a1bd925327cb9f210ae2c3c0f3304a9b3166
parent2a2d087ae964e72064d9e615afcc93d42e76ecc7
Enable a timeout for instance shutdown

Add the timeout parameter to the StopInstance function of the hypervisor base
class and to all its implementations.

Also, change the tests as required by this change.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
lib/backend.py
lib/hypervisor/hv_base.py
lib/hypervisor/hv_chroot.py
lib/hypervisor/hv_fake.py
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_lxc.py
lib/hypervisor/hv_xen.py
test/py/ganeti.hypervisor.hv_xen_unittest.py