Repository navigation
fix(ci): declare the disk format in the CloudHypervisor domain XML - #450
Merged
Merged
Conversation
cloud-hypervisor 54 removed disk image type autodetection: image_type must now be sent with every disk. libvirt's ch driver only includes image_type in the API request when the domain XML declares the format via <driver type='...'>; without it cloud-hypervisor rejects the domain with "Image type required for disk" once the first interface is added. Signed-off-by: Fabian Wiesel <fabian.wiesel@sap.com>
toanju
approved these changes
Dec 2, 2026
fwiesel
added a commit
that referenced
this pull request
Dec 2, 2026
cloud-hypervisor 54 removed disk image type autodetection: image_type must now be sent with every disk. libvirt's ch driver only includes image_type in the API request when the domain XML declares the format via <driver type='...'>; without it cloud-hypervisor rejects the domain with "Image type required for disk" once the first interface is added. Backport of the same change as #450, adjusted to this branch's test action layout. Signed-off-by: Fabian Wiesel <fabian.wiesel@sap.com>
toanju
added a commit
that referenced
this pull request
Dec 2, 2026
) (#452) cloud-hypervisor 54 removed disk image type autodetection: image_type must now be sent with every disk. libvirt's ch driver only includes image_type in the API request when the domain XML declares the format via <driver type='...'>; without it cloud-hypervisor rejects the domain with "Image type required for disk" once the first interface is added. (cherry picked from commit e00f796) Signed-off-by: Fabian Wiesel <fabian.wiesel@sap.com> Co-authored-by: Fabian Wiesel <fwiesel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloud Hypervisor v54 (rolled into the
todayapt suite on Dec 2 ascloud-hypervisor-gl 54.0+261201-1gl0) removed disk image type autodetection:image_typemust now be sent with every disk, and it must match the image format.The libvirt ch driver (
libvirt-daemon-driver-ch-gl) only includesimage_typein thevm.create/disk JSON when the domain XML declares the format via<driver type='...'/>. Without it,vm.createis accepted (204) but the firstvm-add-netrequest fails full config validation:This broke
Test PR image / test → Test CloudHypervisoron every PR and nightly againstmainsince the suite roll (e.g. #449, nightly run 46822972385); PRs built before Dec 1 still hadcloud-hypervisor-gl 52.1, which accepted autodetection.Fix: declare
<driver type='raw'/>on both disks in the CHV migration domain XML, matching whatqemu.xmlalready does. The guest disk (cirros.raw, converted withqemu-img convert -O raw) and the cloud-init seed (genisoimageISO9660, no container format) are both raw images.