Bug 1672259
| Summary: | Permission denied when change media for guest started with empty cdrom | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Jaroslav Suchanek <jsuchane> |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
| Status: | CLOSED ERRATA | QA Contact: | gaojianan <jgao> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 | CC: | chhu, dyuan, jdenemar, pkrempa, rbalakri, xuzhang, yalzhang |
| Target Milestone: | rc | Keywords: | Automation, Regression |
| Target Release: | 8.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-5.0.0-2.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1670337 | Environment: | |
| Last Closed: | 2019-05-29 16:05:30 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: | 1670337 | ||
| Bug Blocks: | 1401400, 1652753 | ||
|
Description
Jaroslav Suchanek
2019-02-04 11:53:17 UTC
Verified on:
libvirt-5.0.0-2.module+el8+2779+3106feb7.x86_64
qemu-kvm-3.1.0-14.module+el8+2788+eb400795.x86_64
1. Start a VM with following disk xml:
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' rerror_policy='stop'/>
<target dev='sdc' bus='scsi' tray='open'/>
<readonly/>
<alias name='scsi0-0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
2. Update disk xml with disk source:
# cat /tmp/scsi.xml
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/test.img'/>
<target dev='sdc' bus='scsi'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
# virsh update-device pcdemo /tmp/scsi.xml
Device updated successfully
# virsh dumpxml pcdemo | awk '/<disk/,/<\/disk/'
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' rerror_policy='stop'/>
<source file='/var/lib/libvirt/images/test.img'/>
<backingStore/>
<target dev='sdc' bus='scsi'/>
<readonly/>
<alias name='scsi0-0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
3. Eject the cdrom media:
# cat /tmp/scsi-empty.xml
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='sdc' bus='scsi'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
# virsh update-device q35 /tmp/scsi-empty.xml
Device updated successfully
# virsh dumpxml q35 | awk '/<disk/,/<\/disk/'
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' rerror_policy='stop'/>
<target dev='sdc' bus='scsi' tray='open'/>
<readonly/>
<alias name='scsi0-0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>
Works as expected.
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-2019:1293 *** Bug 1377321 has been marked as a duplicate of this bug. *** |