Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-18472

[2088355] disk modal shows all storage classes as default

XMLWordPrintable

      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:

            aturgema Aviv Turgeman
            aturgema Aviv Turgeman
            Guohua Ouyang Guohua Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: