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 1347164 - The iso image can't be unmounted successfully when deactive the iso item in change cd menu
Summary: The iso image can't be unmounted successfully when deactive the iso item in c...
Keywords:
Status: CLOSED DUPLICATE of bug 1428514
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libgovirt
Version: 7.3
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Eduardo Lima (Etrunko)
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-16 08:13 UTC by Xiaodai Wang
Modified: 2017-05-17 09:46 UTC (History)
8 users (show)

Fixed In Version: virt-viewer-5.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-29 16:35:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virt-viewer log for rhel guest (235.50 KB, application/octet-stream)
2017-03-29 02:50 UTC, Xiaodai Wang
no flags Details

Description Xiaodai Wang 2016-06-16 08:13:31 UTC
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):
libgovirt-0.3.3-3.el7.x86_64
virt-viewer-2.0-8.el7.x86_64

How reproducible:
100%

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
or 
$ 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.

Actual results:
The iso image is not unmounted from guest.

Expected results:
The iso should be unmounted after deactive the iso menu item.

Additional info:

Comment 5 Xiaodai Wang 2017-03-29 02:49:31 UTC
I tried with below packages, the cd-rom still cannot be ejected in rhel guest. but works well in windows guest(win7, win2008r2).

virt-viewer-5.0-2.el7.x86_64
libgovirt-0.3.3-5.el7.x86_64
Red Hat Virtualization Manager Version: 4.1.1.2-0.1.el7

Comment 6 Xiaodai Wang 2017-03-29 02:50:03 UTC
Created attachment 1267221 [details]
virt-viewer log for rhel guest

Comment 7 Eduardo Lima (Etrunko) 2017-03-29 12:53:24 UTC
(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.

Comment 8 Andrei Stepanov 2017-03-29 13:46:38 UTC
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.

Comment 9 Eduardo Lima (Etrunko) 2017-03-29 16:35:00 UTC
(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 ***


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