Bug 1439603

Summary: Can not eject CD using 'Change CD' dialog
Product: Red Hat Enterprise Linux 7 Reporter: Radek Duda <rduda>
Component: virt-viewerAssignee: Virt Viewer Maint <virt-viewer-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: dblechte, elima, rbalakri, spice-qe-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-06 18:29:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
REST_DEBUG=proxy none

Description Radek Duda 2017-04-06 10:10:02 UTC
Description of problem:
Cannot eject CD using 'Change CD' dialog in rhel7.4 guest

Version-Release number of selected component (if applicable):

client:rhel7.4
virt-viewer-5.0-2.el7.x86_64
spice-gtk3-0.33-2.el7.x86_64

guest: rhel7.4
spice-vdagent-0.14.0-14.el7.x86_64
spice-server-0.12.8-1.el7.x86_64

using rhv4.1.1.8-0.1.el7

How reproducible:
always

Steps to Reproduce:
1. boot guest and connect to it using remote-viewer
2. from drop-down menu of remote-viewer choose File->Change CD
3. Select some CD image by clicking on relevant radio button (CD is attached then)
4. Deselect the image by clicking on the same radio button

Actual results:
CD is not ejected and is still mounted

Expected results:
CD is ejected

Additional info:
tested on win7, win10 & rhel6.9 guests where it works ok

Comment 2 Eduardo Lima (Etrunko) 2017-04-06 13:41:40 UTC
Please post the log from remote-viewer running with REST_DEBUG=proxy environment variable.

If the CD image is not selected on the dialog it means that the command succeeded and this is probably a duplicate of bug 1428514.

Comment 3 Radek Duda 2017-04-06 13:58:54 UTC
Created attachment 1269404 [details]
REST_DEBUG=proxy

1. Connected to rhev7.4 VM, 
2. File->Change CD
3. Selected RHEV-toolsSetup_4.1_5.iso (attached)
4. Deselect readiobutton of RHEV-toolsSetup_4.1_5.iso (not detached)

Comment 4 Eduardo Lima (Etrunko) 2017-04-06 18:29:04 UTC
Thanks for the log, as you can see in the end, both commands (attach/detach) succeeded.

*** This bug has been marked as a duplicate of bug 1428514 ***