Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1332705 - libvirt is incompatible with qemu-rhev-2.6 with empty CDROM drive
libvirt is incompatible with qemu-rhev-2.6 with empty CDROM drive
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt (Show other bugs)
7.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Libvirt Maintainers
Virtualization Bugs
:
Depends On:
Blocks: 1173757
  Show dependency treegraph
 
Reported: 2016-05-03 16:53 EDT by Wei Huang
Modified: 2016-11-03 14:44 EDT (History)
8 users (show)

See Also:
Fixed In Version: libvirt-1.3.2-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 14:44:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2577 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2016-11-03 08:07:06 EDT

  None (edit)
Comment 2 Jiri Denemark 2016-05-04 04:11:17 EDT
Is there a reason for using ancient libvirt packages for aarch64 with a current development snapshot of qemu-kvm-rhev? The latest-RHELSA-VIRT-7 is about a year old. The current libvirt packages for aarch64 are 1.3.4-1.el7.aarch64.
Comment 3 Andrew Jones 2016-05-04 05:13:26 EDT
(In reply to Jiri Denemark from comment #2)
> Is there a reason for using ancient libvirt packages for aarch64 with a
> current development snapshot of qemu-kvm-rhev? The latest-RHELSA-VIRT-7 is
> about a year old. The current libvirt packages for aarch64 are
> 1.3.4-1.el7.aarch64.

No reason. The batcave repo should be getting the latest build soon. Wei, can you retry after batcave gets the update?
Comment 4 Andrea Bolognani 2016-05-04 06:21:11 EDT
This should have been fixed by

commit d7db33bfe978c89e1302609ac91e65be3d49379f
Author: Michal Privoznik <mprivozn@redhat.com>
Date:   Mon Dec 28 15:13:52 2015 +0100

    qemu: Specify format= iff disk source is not empty
    
    Just recently, qemu forbade specifying format for sourceless
    disks (qemu commit 39c4ae941ed992a3bb5). It kind of makes sense.
    If there's no file to open, why specify its format. Anyway, I
    have a domain like this:
    
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <target dev='hda' bus='ide'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
    
    and obviously I am unable to start it. Therefore, a fix on our
    side is needed too.
    
    Signed-off-by: Michal Privoznik <mprivozn@redhat.com>

so using the latest libvirt package should be enough.
Comment 5 Wei Huang 2016-05-04 10:36:37 EDT
There is no specific reasons to stick with older version. I can re-test when new compose is ready.
Comment 6 Peter Krempa 2016-05-05 02:27:54 EDT
$ git describe d7db33bfe978c89e1302609ac91e65be3d49379f --match=v*
v1.3.0-166-gd7db33b
Comment 7 lijuan men 2016-05-06 02:51:56 EDT
test the bug in x86 host:

result:
the problem is not reproduced.

version:
libvirt-1.3.4-1.el7.x86_64
qemu-kvm-rhev-2.5.0-4.el7.x86_64
kernel-3.10.0-390.el7.x86_64

step:
1.install a guest
[root@localhost ~]# virt-install -n r7 --cdrom ./RHEL-7.2-20151030.0-Server-x86_64-dvd1.iso  --boot uefi --vcpus=1 -r 2048 --disk size=6 --network default

After installation and reboot, the guest reboots successfully,and there is no error  showed above.
Comment 9 lijuan men 2016-09-05 22:55:58 EDT
verify the bug on x86

version:
libvirt-2.0.0-6.el7.x86_64
qemu-kvm-rhev-2.6.0-22.el7.x86_64

steps:
1)prepare a guest with the following xml:
<disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
2)start the guest
[root@localhost ~]# virsh start bios
Domain bios started

[root@localhost ~]#ps -ef | grep drive
....-drive if=none,id=drive-ide0-0-0,readonly=on....

the result is expected.
Comment 11 errata-xmlrpc 2016-11-03 14:44:14 EDT
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://rhn.redhat.com/errata/RHSA-2016-2577.html

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