Bug 2088355

Summary: disk modal shows all storage classes as default
Product: Container Native Virtualization (CNV) Reporter: Aviv Turgeman <aturgema>
Component: User ExperienceAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: cnv-qe-bugs, lkladnit
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:34:26 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
StorageClass dropdown none

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