Bug 1377321
Summary: | libvirt should not pass image specific parameters (cache, AIO) to empty cdrom drives | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Peter Krempa <pkrempa> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED DUPLICATE | QA Contact: | Han Han <hhan> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.0 | CC: | berrange, chayang, crobinso, dyuan, fjin, jdenemar, jfehlig, jistone, jsnow, jsuchane, juzhang, knoel, kwolf, lmen, lmiksik, mrezanin, pezhang, pkrempa, redhatbugreports_541234, virt-maint, xfu, xuzhang, yalzhang |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1342999 | Environment: | |
Last Closed: | 2019-06-04 11:57: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: | 1342999 | ||
Bug Blocks: | 1401400 |
Description
Peter Krempa
2016-09-19 12:37:54 UTC
*** Bug 1553255 has been marked as a duplicate of this bug. *** Upstream fixes this for non-blockdev cases by: commit f80eae8c2ae0c62ecaa550ab6353cf871bb17d4e (HEAD -> master, origin/master, origin/HEAD) Author: Peter Krempa <pkrempa> Date: Tue Jan 15 17:28:21 2019 +0100 qemu: command: Don't format image properties for empty -drive If a -drive has no image, using image properties makes qemu whine that they should not be used. This patch stops formating cache/readonly/... for empty drives for the pre-blockdev syntax. Unfortunately those parameters can't be added later when inserting media, but on the other hand qemu will start with an empty drive. Since we already were able to start a VM with such config previously due to qemu ignoring them I've opted just to skip formatting them. Additionally with -blockdev support it will work as expected as the image properties will be formatted when adding the image itself which is not possible without it. One more commit is necessary to avoid regression with sVirt: commit 6db0d033839807aec885e10b5a45748da016e261 Author: Peter Krempa <pkrempa> Date: Fri Feb 1 17:54:46 2019 +0100 qemu: command: Don't skip 'readonly' and throttling info for empty drive In commit f80eae8c2ae I was too agresive in removing properties of -drive for empty drives. It turns out that qemu actually persists the state of 'readonly' and the throttling information even for the empty drive. Removing 'readonly' thus made qemu open any subsequent images added via the 'change' command as RW which was forbidden by selinux thanks to the restrictive sVirt label for readonly media. Fix this by formating the property again and bump the tests and leave a note detailing why the rest of the properties needs to be skipped. *** This bug has been marked as a duplicate of bug 1672259 *** |