Merge "libvirt: don't log snapshot success unless it actually happens"
This commit is contained in:
commit
3bc4cb022f
@ -1751,11 +1751,11 @@ class LibvirtDriver(driver.ComputeDriver):
|
|||||||
image_format, instance.image_meta)
|
image_format, instance.image_meta)
|
||||||
else:
|
else:
|
||||||
root_disk.snapshot_extract(out_path, image_format)
|
root_disk.snapshot_extract(out_path, image_format)
|
||||||
|
LOG.info("Snapshot extracted, beginning image upload",
|
||||||
|
instance=instance)
|
||||||
finally:
|
finally:
|
||||||
self._snapshot_domain(context, live_snapshot, virt_dom,
|
self._snapshot_domain(context, live_snapshot, virt_dom,
|
||||||
state, instance)
|
state, instance)
|
||||||
LOG.info("Snapshot extracted, beginning image upload",
|
|
||||||
instance=instance)
|
|
||||||
|
|
||||||
# Upload that image to the image service
|
# Upload that image to the image service
|
||||||
update_task_state(task_state=task_states.IMAGE_UPLOADING,
|
update_task_state(task_state=task_states.IMAGE_UPLOADING,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user