Bug 1400168 - ChangeCD fails when running a vm with q35 emulated machine
Summary: ChangeCD fails when running a vm with q35 emulated machine
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.1.0-rc
: 4.1.0.2
Assignee: Martin Polednik
QA Contact: sefi litmanovich
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-30 15:34 UTC by sefi litmanovich
Modified: 2017-02-01 14:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:41:33 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)
logs (625.35 KB, application/x-gzip)
2016-11-30 15:34 UTC, sefi litmanovich
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 69472 0 master MERGED changeCD: correctly propagate bus interface 2020-04-30 03:29:53 UTC
oVirt gerrit 69995 0 ovirt-4.1 MERGED changeCD: correctly propagate bus interface 2020-04-30 03:29:53 UTC

Description sefi litmanovich 2016-11-30 15:34:19 UTC
Created attachment 1226382 [details]
logs

Description of problem:
Some work was done in introducing support of q35 machine type - https://gerrit.ovirt.org/#/c/57775/4.
Part of this change includes adjustment of changeCD cmd to support an extended changeCD cmd in VDSM.
It seems something is wrong as I tried to changeCD with a vm with q35 machine type and got the following error msg:

"Error while executing action Change CD: Failed to perform "Change CD" operation, CD might be still in use by the VM.
Please try to manually detach the CD from withing the VM:
1. Log in to the VM
2 For Linux VMs, un-mount the CD using umount command;
For Windows VMs, right click on the CD drive and click 'Eject';"

No interesting information in engine.log or vdsm.log but I will attach it anyway.

When trying the same flow after stopping the vm and changing the machine type back to default (i440fx) , changeCD worked as expected.

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.0-0.0.master.20161127231313.git9bb30a5.el7.centos

How reproducible:
always


Steps to Reproduce:
1. Create a vm with rhel7.2 os e.g. Select CDROM as secondary boot device.
2. After vm starts try to changeCD and choose some iso from your iso_domain.

Actual results:
Get the error mentioned above.

Expected results:
CD is changed as expcted.

Additional info:
vm domain xml:

Comment 1 Michal Skrivanek 2016-11-30 16:49:13 UTC
this will be retested on 7.3/qemu 2.6 to confirm, but it is likely still a problem. Sefi will update

Comment 2 sefi litmanovich 2016-12-14 11:08:00 UTC
I can confirm that the bug re produces with 7.3 hosts running:

qemu-kvm-rhev-2.6.0-27.el7.x86_64
qemu-kvm-tools-ev-2.3.0-31.el7_2.21.1.x86_64
ipxe-roms-qemu-20160127-5.git6366fa7a.el7.noarch
qemu-guest-agent-2.5.0-3.el7.x86_64
qemu-kvm-common-rhev-2.6.0-27.el7.x86_64
libvirt-daemon-driver-qemu-2.0.0-10.el7.x86_64
qemu-img-rhev-2.6.0-27.el7.x86_64

Comment 3 sefi litmanovich 2017-01-25 17:06:29 UTC
Verified according to steps in description with rhevm-4.1.0.2-0.2.el7 on rhel-7.3 host with:
qemu-kvm-common-rhev-2.6.0-28.el7_3.3.x86_64
qemu-img-rhev-2.6.0-28.el7_3.3.x86_64
qemu-kvm-rhev-2.6.0-28.el7_3.3.x86_64
vdsm-4.19.2-2.el7ev.x86_64
libvirt-daemon-2.0.0-10.el7_3.4.x86_64


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