Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1400168

Summary: ChangeCD fails when running a vm with q35 emulated machine
Product: [oVirt] ovirt-engine Reporter: sefi litmanovich <slitmano>
Component: BLL.VirtAssignee: Martin Polednik <mpoledni>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: low Docs Contact:
Priority: medium    
Version: 4.1.0CC: bugs, mavital, michal.skrivanek, slitmano, tjelinek
Target Milestone: ovirt-4.1.0-rcFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+
Target Release: 4.1.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:41:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

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