Bug 1313376

Summary: The CD list in 'change CD' console menu still available after detaching ISO domain
Product: Red Hat Enterprise Linux 6 Reporter: Christophe Fergeau <cfergeau>
Component: virt-viewerAssignee: Eduardo Lima (Etrunko) <elima>
Status: CLOSED ERRATA QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8CC: amureini, bugs, cfergeau, dblechte, elima, gklein, lsurette, mshira, mxie, mzhan, rbalakri, rh-spice-bugs, spice-qe-bugs, srevivo, tjelinek, tpelka, tzheng, xiaodwan, ykaul
Target Milestone: rc   
Target Release: 6.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-15.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1310450 Environment:
Last Closed: 2017-03-21 09:17:11 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:
Bug Depends On: 1318672    
Bug Blocks:    

Description Christophe Fergeau 2016-03-01 13:51:30 UTC
+++ This bug was initially created as a clone of Bug #1310450 +++

Description of problem:
The CD list in 'change CD' menu still appears after detaching ISO domain 

Version-Release number of selected component (if applicable):
The CDs in 'change CD' console menu still appears after detaching iso domain 

How reproducible:
100%

Steps to Reproduce:
1. attach storage domain 
2. connect to admin portal (with fqdn)
3. open Vm console (make sure you have permission on the VM) see the available CDs in 'change CD' 
4. detach ISO domain
5. open console again and see that the CD list is still available.

Actual results:
the CD list is still available.

Expected results:
the CD list should not be available.

Additional info:

--- Additional comment from Tomas Jelinek on 2016-02-22 03:55:13 EST ---

@Christophe: oVirt's REST API returns the list of CDs of the domain also when the domain is not attached. But when you get the ".../ovirt-engine/api/storagedomains/<storage id>" it will return:
"
...
<status>
<state>unattached</state>
</status>
...
"

Do you think you could do a check on remote-viewer side and show the menu only when the status of the storage domain is "active"?

--- Additional comment from Christophe Fergeau on 2016-02-29 12:07:23 EST ---

(In reply to Tomas Jelinek from comment #1)
> 
> Do you think you could do a check on remote-viewer side and show the menu
> only when the status of the storage domain is "active"?

Sure, that's a minor change (bug fix) on the remote-viewer side. Moving the bug.

--- Additional comment from Christophe Fergeau on 2016-03-01 08:41:13 EST ---

Fixed by https://www.redhat.com/archives/virt-tools-list/2016-March/msg00000.html

Comment 3 Xiaodai Wang 2016-12-08 06:43:00 UTC
I can reproduce it with virt-viewer-2.0-14.el6.x86_64.

Then upgrade virt-viewer to virt-viewer-2.0-17.el6.x86_64, and verified it again.

No "Change CD" menu displays after iso domain is unattached.

So move this bug from ON_QA to VERIFIED.

Comment 5 errata-xmlrpc 2017-03-21 09:17:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0587.html