commit 8b48ca672d9c0eb108c71b7f9f3f089d9ecf688a
Author: Matthew Booth <email address hidden>
Date: Wed Aug 15 14:39:48 2018 +0100
libvirt: Don't delete disks on shared storage during evacuate
When evacuating an instance between compute hosts on shared storage,
during the rebuild operation we call spawn() on the destination
compute. spawn() currently assumes that it should cleanup all
resources on failure, which results in user data being deleted in the
evacuate case.
This change modifies spawn in the libvirt driver such that it only
cleans up resources it created.
Co-Authored-By: Lee Yarwood <email address hidden>
Closes-Bug: #1550919
Change-Id: I764481966c96a67d993da6e902dc9fc3ad29ee36
(cherry picked from commit 497360b0ea970f1e68912be8229ef8c3f5454e9e)
Reviewed: https:/ /review. opendev. org/731248 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8b48ca672d9 c0eb108c71b7f9f 3f089d9ecf688a
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 8b48ca672d9c0eb 108c71b7f9f3f08 9d9ecf688a
Author: Matthew Booth <email address hidden>
Date: Wed Aug 15 14:39:48 2018 +0100
libvirt: Don't delete disks on shared storage during evacuate
When evacuating an instance between compute hosts on shared storage,
during the rebuild operation we call spawn() on the destination
compute. spawn() currently assumes that it should cleanup all
resources on failure, which results in user data being deleted in the
evacuate case.
This change modifies spawn in the libvirt driver such that it only
cleans up resources it created.
Co-Authored-By: Lee Yarwood <email address hidden> 7d993da6e902dc9 fc3ad29ee36 e68912be8229ef8 c3f5454e9e)
Closes-Bug: #1550919
Change-Id: I764481966c96a6
(cherry picked from commit 497360b0ea970f1