Bug 2088355 - disk modal shows all storage classes as default
Summary: disk modal shows all storage classes as default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.11.0
Assignee: Aviv Turgeman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-19 09:39 UTC by Aviv Turgeman
Modified: 2023-11-13 08:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:34:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
StorageClass dropdown (21.18 KB, image/png)
2022-05-19 09:39 UTC, Aviv Turgeman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 451 0 None open Bug 2088355: disk modal shows all storage classes as default 2022-05-19 09:59:42 UTC
Red Hat Issue Tracker CNV-18472 0 None None None 2023-11-13 08:11:42 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:34:35 UTC

Description Aviv Turgeman 2022-05-19 09:39:49 UTC
Created attachment 1881272 [details]
StorageClass dropdown

Description of problem:
when trying to attach a new disk (from wizard or disks tab),
the StorageClass dropdown shows every StorageClass as default if the annotation 'storageclass.kubernetes.io/is-default-class' exists on the SC instead of checking the value of the annotation to be 'storageclass.kubernetes.io/is-default-class = "true"' 

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

How reproducible:
100%

Steps to Reproduce:
1. go to Catalog -> select any template -> Customize VirtualMachine -> Review...
2. move to disks tab and click add disk wait for StoageClass dropdown to load
3. the selected option in the dropdown will be the first SC in the list with the annotation exists on yaml 
4. open dropdown and see all SC with the annotation marked as (default) in option description

Actual results:
dropdown is selected with SC that has 'storageclass.kubernetes.io/is-default-class' annotation exists

Expected results:
dropdown is selected with SC that has 'storageclass.kubernetes.io/is-default-class = "true"'

Additional info:

Comment 1 Leon Kladnitsky 2022-05-27 02:23:58 UTC
Verified on v4.11.0-388 OCP-4.11.0

Comment 4 errata-xmlrpc 2022-09-14 19:34:26 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 (Important: OpenShift Virtualization 4.11.0 Images security and bug fix 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/RHSA-2022:6526


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