hv_xen: Remove config after shutdown was successful
authorMichael Hanselmann <hansmi@google.com>
Thu, 24 Jan 2013 13:29:18 +0000 (14:29 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 24 Jan 2013 13:35:39 +0000 (14:35 +0100)
commit4b8b172db2da14e7bf51a6ef54afac8cf97c8c05
tree16df19c08990a34ed8e7593f42303563f02c7314
parentcd04dfd2e90934ede083a48aa6817083e0e478aa
hv_xen: Remove config after shutdown was successful

If stopping an instance failed, the configuration would already be gone
and other operations depending on it (e.g. migration) would no longer
work. With this patch the configuration file is only removed once the
instance was succesfully stopped or destroyed.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/hypervisor/hv_xen.py