Bug 1918877

Summary: [mingw] RFE: Cannot change CD with ISO in RHV Data domain
Product: Red Hat Enterprise Linux 8 Reporter: Uri Lublin <uril>
Component: mingw-virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED ERRATA QA Contact: Tomas Pelka <tpelka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: tpelka, victortoso
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mingw-virt-viewer-9.0-5.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:52:41 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Uri Lublin 2021-01-21 16:21:43 UTC
This bug was initially created as a copy of Bug #1835640

I am copying this bug such that it is fixed for Windows client machines too.
---

Description of problem:
When using remote-viewer with RHV 4.3 in a SPICE session, the option "Change CD" fails if the ISOs are in a data storage domain.

Version-Release number of selected component (if applicable):
virt-viewer-7.0-9.el8.x86_64
RHV 4.3.9


How reproducible:
Always

Steps to Reproduce:
1. RHV 4.3 setup with no ISO storage domain. All the ISOs are in a data storage domain.
2. Connect to a SPICE console:
# remote-viewer --verbose --debug --spice-debug console.vv

3. Click on File -> Change CD

Actual results:
I get the error: "Could not find ISO file collection"

Expected results:
To be able to choose ISO from a data storage domain

Additional info:

(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.277: Start fetching iso file collection

(remote-viewer:8136): libgovirt-CRITICAL **: 10:43:24.470: file ovirt-utils.c: line 290 (ovirt_utils_genum_get_value): should not be reached

(remote-viewer:8136): libgovirt-CRITICAL **: 10:43:24.470: ovirt_resource_set_description_from_xml: assertion 'desc_node->content != NULL' failed

(remote-viewer:8136): libgovirt-CRITICAL **: 10:43:24.470: file ovirt-utils.c: line 290 (ovirt_utils_genum_get_value): should not be reached

(remote-viewer:8136): libgovirt-CRITICAL **: 10:43:24.470: ovirt_resource_set_description_from_xml: assertion 'desc_node->content != NULL' failed
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Storage domain 'hosted_storage' type is not ISO
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Storage domain 'hosted_storage' is not valid
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Storage domain 'data' type is not ISO
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Storage domain 'data' is not valid
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Could not find valid ISO storage domain
(remote-viewer:8136): virt-viewer-DEBUG: 10:43:24.470: Error fetching ISO names: Could not find valid ISO storage domain

Comment 5 Uri Lublin 2021-08-29 08:58:09 UTC
Use the same patch as in bug 1835640

Note that with this patch, ISO domain is still the default for ISO images.
If an ISO domain exists, ISO images from a Data domain are not shown.
If an ISO domain does not exists, ISO images from a Data domain are shown
and can be shared with the VM.

Comment 10 errata-xmlrpc 2021-11-09 18:52:41 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 (spice-client-win bug fix and enhancement update), 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://access.redhat.com/errata/RHEA-2021:4340