commit d5d81a29050966f47050f0f77001273b1aa55116
Author: Matt Riedemann <email address hidden>
Date: Mon Oct 30 12:49:31 2017 -0400
libvirt: do not remove inst_base when volume-backed during resize
When confirming a resize, the libvirt driver on the source host checks
to see if the instance base directory (which contains the domain xml
files, etc) exists and if the root disk image does not, it removes the
instance base directory.
However, the root image disk won't exist on local storage for a
volume-backed instance and if the instance base directory is on shared
storage, e.g. NFS or Ceph, between the source and destination host, the
instance base directory is incorrectly deleted.
This adds a check to see if the instance is volume-backed when checking
to see if the instance base directory should be removed from the source
host when confirming a resize.
Change-Id: I29fac80d08baf64bf69e54cf673e55123174de2a
Closes-Bug: #1728603
(cherry picked from commit f02afc6569bd930114a4b56413dbd6becc5e7e75)
Reviewed: https:/ /review. openstack. org/517388 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d5d81a29050 966f47050f0f770 01273b1aa55116
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit d5d81a29050966f 47050f0f7700127 3b1aa55116
Author: Matt Riedemann <email address hidden>
Date: Mon Oct 30 12:49:31 2017 -0400
libvirt: do not remove inst_base when volume-backed during resize
When confirming a resize, the libvirt driver on the source host checks
to see if the instance base directory (which contains the domain xml
files, etc) exists and if the root disk image does not, it removes the
instance base directory.
However, the root image disk won't exist on local storage for a
volume-backed instance and if the instance base directory is on shared
storage, e.g. NFS or Ceph, between the source and destination host, the
instance base directory is incorrectly deleted.
This adds a check to see if the instance is volume-backed when checking
to see if the instance base directory should be removed from the source
host when confirming a resize.
Change-Id: I29fac80d08baf6 4bf69e54cf673e5 5123174de2a 114a4b56413dbd6 becc5e7e75)
Closes-Bug: #1728603
(cherry picked from commit f02afc6569bd930