libvirt:on snapshot delete, use qemu-img to blockRebase if VM is stopped
Libvirt won't do a blockRebase on a domain that is not running. So,
in that case, use "qemu-img rebase" instead.
Note: For now, trying to rebase a network disk using qemu-img raises
a NovaException error because I can't test that it successfully works
for every protocol (gluster, sheepdog, etc) that executes this code
path. I successfully tested this with file-based disk.
Reviewed: https:/ /review. openstack. org/243028 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=aea87902180 bebae93680e156a 950f00a5f360fd
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit aea87902180beba e93680e156a950f 00a5f360fd
Author: Jordan Pittier <email address hidden>
Date: Wed Jul 15 14:07:29 2015 +0200
libvirt:on snapshot delete, use qemu-img to blockRebase if VM is stopped
Libvirt won't do a blockRebase on a domain that is not running. So,
in that case, use "qemu-img rebase" instead.
Note: For now, trying to rebase a network disk using qemu-img raises
a NovaException error because I can't test that it successfully works
for every protocol (gluster, sheepdog, etc) that executes this code
path. I successfully tested this with file-based disk.
Change-Id: I0e6819a6c8dc70 b9bd7d1a9c18dc1 85b4537a3e4 15dc01a10595334 6a8747e755)
Closes-Bug: #1444806
Closes-Bug: #1465416
(cherry picked from commit 1cf793df2527566