After upgrade: "libvirt.libvirtError: Requested operation is not valid: format of backing image %s of image %s was not specified"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu Cloud Archive |
New
|
Undecided
|
Unassigned | ||
Ussuri |
Fix Committed
|
Undecided
|
Unassigned | ||
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* New libvirt got more strict in regard to file format specification.
While this is generally the right approach it causes some issues for
upgraders that have old image chains now failing.
* Upstream has added code to relax those checks under a set of conditions
which will allow to go forward with stricter conditions as planned but
at the same time not break/block upgrades.
[Test Plan]
* Thanks to Brett Milford for sharing his test steps for this
sudo apt-get update
sudo apt-get install libvirt-
IMG="focal-
IMG_PATH=
INSTANCE_
[ -f $IMG_PATH ] || {
sudo mkdir -p /var/lib/
sudo wget https:/
-O $IMG_PATH
}
sudo mkdir -p /var/lib/
sudo qemu-img convert -O raw $IMG_PATH ${IMG_PATH%.*}
sudo qemu-img create -f qcow2 -o backing_
sudo qemu-img resize /var/lib/
virt-install --connect qemu:///system --name $INSTANCE_NAME --cpu host --os-type linux --os-variant generic --graphics vnc --console pty,target_
[Where problems could occur]
* Of the many things that qemu/libvirt do this changes only the format
probing. So issues (hopefully not) would be expected to appear mostly
around complex scenarios of image files.
We've had a look at image files and image file chains, and so far all
were good. But there are more obscure (and not supported) cases like
image backed by real-disk that might misbehave. But still it would
fix Focal to be the outlier as the past was ok (didn't care) and the
future (relaxed check) and only focal is left broken in between.
[Other Info]
* A lot has changes in that area, but instead of pulling in a vast set
of changes a smaller set was identified to suite the SRU needs. It
was so far found not found regressing anything and OTOH fixed the issue
(tested form PPA) for affected people.
----
In a site upgraded to Ussuri we are getting faults starting instances
2020-11-30 13:41:40.586 232871 ERROR oslo_messaging.
Bug #1864020 reports similar symptoms, where due to an upstream change in Libvirt v6.0.0+ images need the backing format specified.
The fix for Bug #1864020 handles the case for new instances. However, for upgraded instances we're hitting the same problem, as those still don't have backing format specified.
Related branches
- Robie Basak: Approve (sru)
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 174 lines (+152/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu/lp-1906266-virStorageFileGetMetadataRecurse-Allow-format-probin.patch (+143/-0)
summary: |
- libvirt.libvirtError: Requested operation is not valid: format of - backing image %s of image %s was not specified + After upgrade: "libvirt.libvirtError: Requested operation is not valid: + format of backing image %s of image %s was not specified" |
tags: | added: libvirt |
Changed in libvirt (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
tags: |
added: verification-ussuri-done removed: verification-ussuri-needed |
tags: | removed: server-next |
I had thought this failure case had been relaxed in later versions of libvirt 6.
Which version of libvirt are you using?