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

User can define incomplete StorageProfile claimPropertySet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • CNV v4.15.1
    • CNV v4.15.0
    • Storage Platform
    • None
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---
    • Storage Core Sprint 248, Storage Core Sprint 249, Storage Core Sprint 250
    • Moderate
    • No

      Description of problem:

      User can edit StorageProfile.spec.claimPropertySets, adding entry without accessModes or volumeMode, which will be considered by the controller as incomplete, so StorageProfile.status.claimPropertySets won't be updated accordingly.
      

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

      4.12

      How reproducible:

      Always

      Steps to Reproduce:

      1. oc edit storageprofile <sp-name>
      2. put an entry without volumeMode:
      spec:
        claimPropertySets:
        - accessModes:
          - ReadWriteOnce
      

      Actual results:

      storageprofile status will be updated with the incomplete entry, and CDIStorageProfilesIncomplete alert will be fired

      Expected results:

      accessModes and volumeMode should be required and validated

      Additional info:

       

      Git Pull Request: https://github.com/kubevirt/containerized-data-importer/pull/3096 closed

      Git Pull Request: https://github.com/kubevirt/containerized-data-importer/pull/3099 closed

              agilboa@redhat.com Arnon Gilboa
              agilboa@redhat.com Arnon Gilboa
              Dalia Frank Dalia Frank
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: