Bug 1801219
| Summary: | Requested operation is not valid: format of backing image ... was not specified in the image metadata | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Richard W.M. Jones <rjones> |
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
| Status: | CLOSED NOTABUG | QA Contact: | YongkuiGuo <yoguo> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.2 | CC: | hhan, lmen, pkrempa, ptoscano, rjones, tzheng, virt-maint, xchen, xuzhang, yisun, yoguo |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1798148 | Environment: | |
| Last Closed: | 2020-07-02 11:50:12 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1798148 | ||
| Bug Blocks: | 1786403 | ||
|
Description
Richard W.M. Jones
2020-02-10 13:07:33 UTC
I've reopened https://bugzilla.redhat.com/show_bug.cgi?id=1798148 as there are few situations where we can do image probing safely which will return the semantics to the old state for few safe scenarios. https://bugzilla.redhat.com/show_bug.cgi?id=1798148 Is now in post. Also one note (and the reason for actually allowing it in libvirt): the patch mentioned above specifcially does the probing in an insecure way. If the probed image format is qcow2 it does not check whether a backing image is present: https://libvirt.org/kbase/backing_chains.html#vm-refuses-to-start-due-to-misconfigured-backing-store-format under 'Important' Fast forward few months: what should we do about this bug? libvirt added back autodetection in some cases where it is safe to do so, and I think we had less issues reported due to this; otherwise, as Peter linked already, there is a libvirt KBase describing this situation: https://libvirt.org/kbase/backing_chains.html#vm-refuses-to-start-due-to-misconfigured-backing-store-format libguestfs itself explicitly specifies the format of images whenever it knows it, so most of (if not all) the cases where a format is missing are images supplied by the user via command line or API. I've been using the latest libvirt and libguestfs together for a while and haven't hit this bug recently, so I guess whatever fix Peter added is working. There's still the patch I posted to do autodetection every time to consider: https://www.redhat.com/archives/libguestfs/2020-February/msg00013.html (In reply to Richard W.M. Jones from comment #5) > There's still the patch I posted to do autodetection every time to consider: > > https://www.redhat.com/archives/libguestfs/2020-February/msg00013.html This patch was already discussed, and we [1] decided it was unsuitable for libguestfs for the same reasons as libvirt: - if libvirt does not do the format autodetection in all cases because it deems that unsafe, then doing it in libguestfs does not make sense either, since it would be unsafe in the very same way - if libvirt would consider safe to always do autodetection, then doing the autodetection in libguestfs would not make sense (at least when using the libvirt backend) So no, there is no patch to consider about this. [1] where "we" means Peter, Dan, and me, apparently Libguestfs has always done autodetection if the format is not specified (while recommending that to be safe you should specify the format - and all libguestfs own tools do this where possible). But in any case if libvirt is doing autodetection in all the cases anyone cares about I'll wait until an actual user/customer files a bug. Shall we close this bug? |