RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 616480 - virtinst incorrectly sets cache=none for physical CDROM/DVD device
Summary: virtinst incorrectly sets cache=none for physical CDROM/DVD device
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-virtinst
Version: 6.0
Hardware: All
OS: Linux
medium
high
Target Milestone: rc
: 6.0
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 619214 619951 (view as bug list)
Depends On: 608548
Blocks: 494052
TreeView+ depends on / blocked
 
Reported: 2010-07-20 14:51 UTC by Jes Sorensen
Modified: 2013-01-09 22:54 UTC (History)
15 users (show)

Fixed In Version: python-virtinst-0.500.3-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 608548
Environment:
Last Closed: 2010-11-10 21:23:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Don't set an explicit default cache value for guest CDROM devices (662 bytes, text/plain)
2010-07-20 21:00 UTC, Cole Robinson
no flags Details

Comment 1 Cole Robinson 2010-07-20 15:15:35 UTC
Actually, virtinst is where the cache=none default is being set. The solution isn't necc. straightforward though, since virtinst doesn't know for sure whether --cdrom /dev/foo is a host cdrom or just a plain host block device. The safest thing to do is probably just not set an explicit cache value for any -cdrom device, I assume CDROM performance isn't the highest priority. Sound good to QEMU folks?

Whether we want libvirt (or I'd argue it should be qemu) to reject cache=none for cdrom devices is probably less urgent and could wait till 6.1

Comment 2 Jes Sorensen 2010-07-20 16:16:34 UTC
In my case it wasn't actually virt-install but virt-manager I used to verify
the case. Even after a guest is installed, it allows you to go in and connect
the CDROM drive and then change the caching of it to 'none' which will not
work.

It's not quite clear to me in how many places this needs to be fixed, I thought
it was libvirt allowing it for CDROMs. However from what you are saying it
sounds like it is both a problem with virt-install and virt-manager setting
'none' as default, which is a serious blocker, plus virt-manager allowing
one to change it to 'none' after install as well.

QEMU upstream will reject cache=none with an error, so libvirt/virt-install/
virt-manager needs to know not to specify it for those devices.

Not setting cache default for CDROM devices in virt-install and virt-manager
seems a reasonable fix for 6.0.

Comment 3 Cole Robinson 2010-07-20 21:00:02 UTC
Created attachment 433262 [details]
Don't set an explicit default cache value for guest CDROM devices

Blocker justification: Installing a guest using the host's CDROM device is a fairly common usage scenario, and without this patch it is completely broken (install errors in the bios) via virt-install and virt-manager in a non-obvious way. The patch is very small and IMO very low risk.

Comment 5 Jes Sorensen 2010-07-21 07:11:16 UTC
Cole, just to be sure, does your patch fix both virt-manager and virt-install,
or is a separate patch needed for virt-manager?

Comment 6 Cole Robinson 2010-07-21 12:55:54 UTC
This patch fixes the install from host CDROM case for both virt-install and virt-manager.

virt-manager still offers cache=none if adding a guest CDROM device post-install, but I don't think that is as important to fix for 6.0.

Comment 7 Cole Robinson 2010-07-21 14:56:33 UTC
Fix built in python-virtinst-0.500.3-6.el6

Comment 9 Johnny Liu 2010-07-29 03:15:33 UTC
Verified this bug with python-virtinst-0.500.3-6.el6.noarch and PASSED.

On old version - python-virtinst-0.500.3-5.el6.noarch:
...
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/cdrom'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
...

On new version - python-virtinst-0.500.3-6.el6.noarch:
...
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/cdrom'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
...

After update python-virtinst-0.500.3-6.el6, virt-manager install guest from CDROM device successfully, too.

Comment 10 Amit Shah 2010-08-03 09:21:17 UTC
*** Bug 619951 has been marked as a duplicate of this bug. ***

Comment 11 Dor Laor 2010-08-05 15:06:23 UTC
*** Bug 619214 has been marked as a duplicate of this bug. ***

Comment 12 releng-rhel@redhat.com 2010-11-10 21:23:56 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Comment 13 zhe peng 2011-04-19 07:32:41 UTC
verified this bug with:
Linux localhost.localdomain 2.6.32-130.el6.x86_64 #1 SMP Tue Apr 5 19:58:31 EDT
2011 x86_64 x86_64 x86_64 GNU/Linux

python-virtinst-0.500.5-3.el6.noarch
libvirt-0.8.7-17.el6.x86_64

passed.


Note You need to log in before you can comment on or make changes to this bug.