Bug 1780154
Summary: | Don't clear XATTRs on failed start | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Michal Privoznik <mprivozn> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | yafu <yafu> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 8.1 | CC: | chhu, david.abdurachmanov, fjin, hhan, jdenemar, jsuchane, lhuang, lmen, mprivozn, mtessun, rbalakri, toneata, xuzhang, yafu |
Target Milestone: | rc | Keywords: | Regression, Upstream |
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-6.0.0-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1771500 | Environment: | |
Last Closed: | 2020-05-05 09:52:05 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: | 1740024, 1771500 | ||
Bug Blocks: | 1652078 |
Description
Michal Privoznik
2019-12-05 14:08:11 UTC
I've merged the fix: 516b867685 qemuProcessStop: Remove image metadata only when allowed v5.10.0-64-g516b867685 Verified with libvirt-daemon-6.0.0-1.module+el8.2.0+5453+31b2b136.x86_64. Test steps: 1.# virsh start vm1 Domain vm1 started 2.#getfattr -m trusted.libvirt.security -d /var/lib/libvirt/images/test1.qcow2 getfattr: Removing leading '/' from absolute path names # file: var/lib/libvirt/images/test1.qcow2 trusted.libvirt.security.dac="+0:+0" trusted.libvirt.security.ref_dac="1" trusted.libvirt.security.ref_selinux="1" trusted.libvirt.security.selinux="unconfined_u:object_r:virt_image_t:s0" trusted.libvirt.security.timestamp_dac="1578622766" trusted.libvirt.security.timestamp_selinux="1578622766" 3.Start another guest using /var/lib/libvirt/images/test1.qcow2: # virsh start vm2 error: Failed to start domain vm2 error: internal error: child reported (status=125): Requested operation is not valid: Setting different SELinux label on /var/lib/libvirt/images/test1.qcow2 which is already in use 4.# getfattr -m trusted.libvirt.security -d /var/lib/libvirt/images/test1.qcow2 getfattr: Removing leading '/' from absolute path names # file: var/lib/libvirt/images/test1.qcow2 trusted.libvirt.security.dac="+0:+0" trusted.libvirt.security.ref_dac="1" trusted.libvirt.security.ref_selinux="1" trusted.libvirt.security.selinux="unconfined_u:object_r:virt_image_t:s0" trusted.libvirt.security.timestamp_dac="1578622766" trusted.libvirt.security.timestamp_selinux="1578622766" 5.Destroy guest vm1: #virsh destroy vm1 6.Start guest vm1: #virsh start vm1 7.# getfattr -m trusted.libvirt.security -d /var/lib/libvirt/images/test1.qcow2 getfattr: Removing leading '/' from absolute path names # file: var/lib/libvirt/images/test1.qcow2 trusted.libvirt.security.dac="+0:+0" trusted.libvirt.security.ref_dac="1" trusted.libvirt.security.ref_selinux="1" trusted.libvirt.security.selinux="unconfined_u:object_r:virt_image_t:s0" trusted.libvirt.security.timestamp_dac="1578622766" trusted.libvirt.security.timestamp_selinux="1578622766" 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, 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:2017 |