Description of problem: user can create more than one default storage class and when he creates pvc without define sc he got error Version-Release number of selected component (if applicable): version 4.7.0-0.nightly-2021-02-04-031352 How reproducible: 100% Steps to Reproduce: 1. create 2 default Storage Class -oc create -f storageclass.yaml 2. create pvc without define any storage class name oc create -f storage-claim.yaml Error from server (Forbidden): error when creating "storage-claim.yaml": persistentvolumeclaims "7g-ovirt-cow-disk" is forbidden: Internal error occurred: 4 default StorageClasses were found Actual results: user can create more than one default storage class and when he creates pvc without define sc he got this error: Internal error occurred: 4 default StorageClasses were found Expected results: it should not be possible to create more than one default storage class Additional info:
We've been closing these bugs as CLOSED/WONTFIX, see https://bugzilla.redhat.com/show_bug.cgi?id=1464606, because of concurrency issues. Now that we have validating webhooks as GA, we can implement a more stable solution. But it's technically a RFE.
Michal, do you have a customer that requires this feature? A ticket + (short) business justification would help.
Hi Jan, actually I don't have a ticket. I just run this test regarding the documentation: https://deploy-preview-29269--osdocs.netlify.app/openshift-enterprise/latest/storage/container_storage_interface/persistent-storage-csi-ovirt.html it mentions there that user can create only one default storage domain.
Moved this over to an Epic on the storage board (https://issues.redhat.com/browse/STOR-545), will close this bug as a result