Skip to content

Commit f163db9

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Catch an exception in power off procedure"
2 parents 4bead40 + f831618 commit f163db9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nova/virt/libvirt/driver.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4016,7 +4016,12 @@ def _clean_shutdown(self, instance, timeout, retry_interval):
40164016

40174017
LOG.debug("Shutting down instance from state %s", state,
40184018
instance=instance)
4019-
guest.shutdown()
4019+
try:
4020+
guest.shutdown()
4021+
except libvirt.libvirtError as e:
4022+
LOG.debug("Ignoring libvirt exception from shutdown request: %s",
4023+
encodeutils.exception_to_unicode(e),
4024+
instance=instance)
40204025
retry_countdown = retry_interval
40214026

40224027
for sec in range(timeout):

0 commit comments

Comments
 (0)