Bug 1931613 - [RFE] [OCPonRHV] user can create more than one default storage class
Summary: [RFE] [OCPonRHV] user can create more than one default storage class
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: aos-storage-staff@redhat.com
QA Contact: Qin Ping
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-22 19:29 UTC by michal
Modified: 2021-03-16 08:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-10 09:43:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description michal 2021-02-22 19:29:57 UTC
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:

Comment 1 Jan Safranek 2021-02-23 15:30:54 UTC
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.

Comment 2 Jan Safranek 2021-02-23 16:21:10 UTC
Michal, do you have a customer that requires this feature? A ticket + (short) business justification would help.

Comment 3 michal 2021-02-23 18:52:40 UTC
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.

Comment 5 Duncan Hardie 2021-03-10 09:41:38 UTC
Moved this over to an Epic on the storage board (https://issues.redhat.com/browse/STOR-545), will close this bug as a result


Note You need to log in before you can comment on or make changes to this bug.