Description of problem:
The iso image can't be unmounted successfully when deactive the iso in change cd menu
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Make sure there is an ISO domain in RHEVM server and there are several iso files in the domain.
2. Get the ca file from ovirt server.
$ wget http://rhevm3.6-hp-dl360eg8-03/ca.crt
3. Connect a vm by remote-viewer with ovirt uri or connect to it by console.vv file.
$ remote-viewer --ovirt-ca-file=ca.crt ovirt://rhevm3.6-hp-dl360eg8-03/$your_vm
$ remote-viewer console.vv
4. Type correct username and password and click OK if you run with ovirt uri.
5. After connecting to the guest and foreign menu displays, select one iso image in "change cd" menu, and this iso image can be mounted successfully.
6. Deactive the same iso image in "change cd" menu.
The iso image is not unmounted from guest.
The iso should be unmounted after deactive the iso menu item.
I tried with below packages, the cd-rom still cannot be ejected in rhel guest. but works well in windows guest(win7, win2008r2).
Red Hat Virtualization Manager Version: 188.8.131.52-0.1.el7
Created attachment 1267221 [details]
virt-viewer log for rhel guest
(In reply to xiaodwan from comment #6)
> Created attachment 1267221 [details]
> virt-viewer log for rhel guest
So, according to the logs, the ISO image is successfully attached (line 1986):
(remote-viewer:13763): virt-viewer-DEBUG: Finished updating cdrom content: SLE-12-Server-DVD-x86_64-GM-DVD1.iso
After that you remove the image and it also succeeds (line 2297):
(remote-viewer:13763): virt-viewer-DEBUG: Finished updating cdrom content: (null)
So, libgovirt is not the one to blame here. This is something between oVirt and the guest system. Maybe the ovirt agent? I kind of remember something similar reported a while ago, not sure though.
oVirt doesn't notify guest about CD-eject.
udev on a guest doesn't know anything about CD-eject.
Guest thinks that CD is present.
There is the same bug: https://bugzilla.redhat.com/show_bug.cgi?id=1428514
This can be close as a duplicate of 1428514.
(In reply to Andrei Stepanov from comment #8)
> oVirt doesn't notify guest about CD-eject.
> udev on a guest doesn't know anything about CD-eject.
> Guest thinks that CD is present.
> There is the same bug: https://bugzilla.redhat.com/show_bug.cgi?id=1428514
> This can be close as a duplicate of 1428514.
Thanks for the comment, I am be closing this one then, as bug 1428514 has much more details about the issue.
*** This bug has been marked as a duplicate of bug 1428514 ***