Bug 1310450

Summary: The CD list in 'change CD' console menu still available after detaching ISO domain
Product: Red Hat Enterprise Linux 7 Reporter: Shira Maximov <mshira>
Component: virt-viewerAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.2CC: amureini, bugs, cfergeau, dblechte, djasa, gklein, lsurette, michal.skrivanek, rbalakri, tjelinek, yeylon, ykaul
Target Milestone: pre-dev-freeze   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1313371 1313376 (view as bug list) Environment:
Last Closed: 2016-03-23 12:48:18 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:
Attachments:
Description Flags
engine log none

Description Shira Maximov 2016-02-21 18:09:46 UTC
Created attachment 1129071 [details]
engine log

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:

Comment 1 Tomas Jelinek 2016-02-22 08:55:13 UTC
@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"?

Comment 2 Christophe Fergeau 2016-02-29 17:07:23 UTC
(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.

Comment 3 Christophe Fergeau 2016-03-01 13:41:13 UTC
Fixed by https://www.redhat.com/archives/virt-tools-list/2016-March/msg00000.html

Comment 5 Christophe Fergeau 2016-03-23 12:48:18 UTC
Ah if you don't want to keep it in RHEV, that makes it a duplicate of #1313371

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