[SRU] Creation of image (or live snapshot) from the existing VM fails if libvirt-image-backend is configured to qcow2 starting from Ussuri
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned | ||
OpenStack Nova Compute Charm |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
Critical
|
Corey Bryant | ||
Ussuri |
Fix Released
|
Critical
|
Corey Bryant | ||
Victoria |
Fix Released
|
Critical
|
Corey Bryant | ||
nova (Ubuntu) |
Fix Released
|
Critical
|
Corey Bryant | ||
Focal |
Fix Released
|
Critical
|
Corey Bryant | ||
Groovy |
Fix Released
|
Critical
|
Corey Bryant |
Bug Description
[Impact]
tl;dr
1) creating the image from the existing VM fails if qcow2 image backend is used, but everything is fine if using rbd image backend in nova-compute.
2) openstack server image create --name <name of the new image> <instance name or uuid> fails with some unrelated error:
$ openstack server image create --wait 842fa12c-
HTTP 404 Not Found: No image found with ID f4693860-
== Details ==
Two Tempest tests ([1] and [2]) from the 2018.02 Refstack test lists [0] are failing with the following exception:
49701867-
Traceback (most recent call last):
File "/home/
waiters.
File "/home/
image = show_image(
File "/home/
resp, body = self.get(
File "/home/
return self.request('GET', url, extra_headers, headers)
File "/home/
method, url, extra_headers, headers, body, chunked)
File "/home/
self.
File "/home/
raise exceptions.
tempest.
Details: {'code': 404, 'message': 'Image not found.'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/
wait_
File "/home/
image_
tempest.
So far I was able to identify the following:
1) https:/
2) It fails with the following error message in the nova-compute logs: https:/
The same occurs if the "openstack server image create --wait" will be executed; however, according to https:/
"Shut down the source VM before you take the snapshot to ensure that all data is flushed to disk. If necessary, list the instances to view the instance name. Use the openstack server stop command to shut down the instance:"
This step is definitely being skipped by the test (e.g it's trying to perform the snapshot on top of the live VM).
FWIW, I'm using libvirt-
Also, there is similar issue I was able to find: https:/
[0] https:/
[1] tempest.
[2] tempest.
[Test Case]
deploy/configure openstack, using juju here
if upgrading to the fixed package, libvirt-guests will require restart: sudo systemctl restart libvirt-guests
create openstack instance
openstack server image create --wait <instance-uuid>
successful if fixed; fails with permissions error if not fixed
[Regression Potential]
This actually reverts the nova group members to what they used to be prior to the focal version of the packages. If there is a regression in this fix it would likely result in a permissions issue.
summary: |
- Creation of image from the existing VM fails if libvirt-image-backend is - configured to qcow2 + Creation of image (or live snapshot) from the existing VM fails if + libvirt-image-backend is configured to qcow2 |
description: | updated |
description: | updated |
Changed in charm-nova-compute: | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in nova: | |
status: | Incomplete → Invalid |
description: | updated |
description: | updated |
Changed in nova: | |
status: | Invalid → New |
I'm seeing that on the Bionic/Ussuri as well. Image from a VM on qcow2 ephemeral storage can't be created if VM is running, but if the VM is stopped it succeeds. Meanwhile image from a VM on Ceph can be created with no issues.
Also tested with 'raw' image backend: https:/ /pastebin. canonical. com/p/yzTbx4kRX v/