-
Bug
-
Resolution: Done-Errata
-
Undefined
-
CNV v4.15.0
-
None
-
0.42
-
False
-
-
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