Bug 1814481
| Summary: | Libvirt doesn't restore xattr labels when qemu crashes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Han Han <hhan> | ||||
| Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Han Han <hhan> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 8.2 | CC: | jdenemar, jgao, lmen, virt-maint, xuzhang, yafu | ||||
| Target Milestone: | rc | Keywords: | Upstream | ||||
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | libvirt-6.2.0-1.el8 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-11-17 17:47:36 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: | |||||||
| Attachments: |
|
||||||
|
Description
Han Han
2020-03-18 01:30:39 UTC
Patches proposed upstream: https://www.redhat.com/archives/libvir-list/2020-March/msg00652.html I've just pushed patches upstream: ea903036fa security: Try harder to run transactions c799d150d5 virprocess: Passthru error from virProcessRunInForkHelper ed8c503ae8 virfile: Handle directories in virFileBindMountDevice() 140036237e qemuDomainBuildNamespace: Make @devPath const ca2edd678d qemuDomainBuildNamespace: Try harder to remove temp directories 6bc746d66d qemuDomainCreateDeviceRecursive: Report error if mkdir() fails Test pass on libirt v6.3.0-107-gc0e04c2e62 qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64 Verified at libvirt version:
libvirt-6.3.0-1.module+el8.3.0+6478+69f490bb.x86_64
qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64
Step:
1.Live attach/detach the disk in loop with disk xml:
<disk type="file" device="disk">
<driver name="qemu" type="raw" cache="none" discard="ignore" io="native"/>
<source file="/tmp/disk-raw">
</source>
<backingStore/>
<target dev="sdb" bus="scsi"/>
</disk>
2.Live attach/detach the disk in loop:
# while true;do virsh attach-device test1 attach.xml; virsh detach-device test1 attach.xml;done
Device attached successfully
Device detached successfully
Device attached successfully
Device detached successfully
......
error: Failed to attach device from attach.xml
error: Unable to read from monitor: Connection reset by peer
error: Failed to detach device from attach.xml
error: Requested operation is not valid: domain is not running
Vm crashed as expected.
3.Then attach and detach again:
# virsh attach-device test1 attach.xml
Device attached successfully
# virsh detach-device test1 attach.xml
Device detached successfully
No error occured,work as expected only for this bug.
So verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (virt:8.3 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:5137 |