Bug 2223411
| Summary: | Unable to create snapshot for VM with mounted second disk (PVC) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Denys Shchedrivyi <dshchedr> | ||||
| Component: | Storage | Assignee: | Adam Litke <alitke> | ||||
| Status: | ASSIGNED --- | QA Contact: | Natalie Gavrielov <ngavrilo> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.14.0 | CC: | akalenyu, jsaucier, mhenriks | ||||
| Target Milestone: | --- | Flags: | alitke:
needinfo?
(jsaucier) |
||||
| Target Release: | 4.14.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 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: | |||||||
| Attachments: |
|
||||||
|
Description
Denys Shchedrivyi
2023-07-17 17:41:41 UTC
for info - see same behavior with Fedora38 and RHEL9.2 Summarizing offline chats:
The underlying issue is a failure in guest agent freeze:
{"component":"virt-launcher","kind":"","level":"error","msg":"Failed to freeze vmi","name":"vm-fedora-with-pvc","namespace":"test-clone","pos":"server.go:269","reason":"virError(Code=1, Domain=10, Message='internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': failed to open /mnt/test: Permission denied')","timestamp":"2023-07-17T18:23:58.258646Z","uid":"04ce94f3-5f77-472a-9c61-21eb0f0fb41f"}
The corresponding bug for this scenario, and its conclusion is here:
https://bugzilla.redhat.com/show_bug.cgi?id=1747960#c35
Some comments on the bug suggest qemu-ga cannot do anything more than expose this (off by default) boolean:
https://bugzilla.redhat.com/show_bug.cgi?id=1747960#c20
https://bugzilla.redhat.com/show_bug.cgi?id=1747960#c22
So I am not sure if there's anything we can do on the CNV side,
But I am curious about how this has not bugged other users before
Thanks for the explanation Alex. I think single disk VMs are overwhelmingly the norm in the field. Also, I wonder if this would reproduce if the second disk is block and initialized with LVM. In any case, I think we should have a KCS article for this topic. Adding Jean-Francois: What do you think? (In reply to Adam Litke from comment #3) > I think single disk VMs are overwhelmingly the norm in the field. From a quick look at hotplug tests, this looks like a common pattern (minus taking a snapshot at the end), but yeah I agree about single-disk VMs being the norm Whoops messed up the needinfo. Michael, I was about to ask if you there is anything we can do from our side like: - Integrate this selinux bool in our golden images - Change the boolean before calling freeze Both seem risky to me, as this should be something that is consciously done by the VM owner I don't think we should change any VM settings. |