Bug 602186
Summary: | When using 'change' command, QEMU always tries to open the media read-write | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Berrangé <berrange> |
Component: | qemu-kvm | Assignee: | Markus Armbruster <armbru> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | CC: | kwolf, lcapitulino, mkenneth, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-06-22 14:35:58 UTC | Type: | --- |
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: | |||
Bug Blocks: | 601135 |
Description
Daniel Berrangé
2010-06-09 10:39:34 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. (In reply to comment #0) > So there are two problems: > > - The EACCESS error condition is not being reported back via QMP properly > > - Either > * QEMU needs to honour the original 'readonly=on' flag for this device when > changing media This is something for Luiz. Upstream commit 07a5d95a added a OpenFileFailed error response for this case, but it doesn't say anything about the reason why it failed. > Or > * The 'change' command needs to allow specification of the readonly flag > for the new media > > I imagine probably the latter is the one that needs fixing, since it also > doesn't have any way to specify other things like file format (qcow2, raw, etc) Upstream commit cb4e5f8e added a guess here so that it opens read-only for CD-ROMs and read-write otherwise. This is still wrong, of course. I think the real solution for this is the blockdev_* implementation. Most drive parameters set set with -drive / drive_add silently revert to defaults on media change. media doesn't revert. readonly reverts to on for media=cdrom, off otherwise. This is not necessarily the same as what you set on drive creation. The blockdev series will provide a new monitor command to insert media that gives you full control over parameters. This bug appears to have been fixed as a result of bug 602026 *** This bug has been marked as a duplicate of bug 602026 *** |