Commit 536f8877 authored by Antoine Millet's avatar Antoine Millet

Live migration do not remove source disks on shared storage

parent b36037da
......@@ -568,5 +568,6 @@ class VirtualMachine(object):
else:
if live: # In live mode, we are responsible for source volume cleaning
for volume in volumes:
# Delete VM storage after migration success:
self.hypervisor.storage.delete_volume(volume.storage.name, volume.name)
if not volume.storage.is_shared:
# Delete VM storage after migration success:
self.hypervisor.storage.delete_volume(volume.storage.name, volume.name)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment