Bug 2057001

Summary: ocs-operator does not make sure there is no storageconsumer in the provider cluster when we disable AllowRemoteStorageConsumers
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Nitin Goyal <nigoyal>
Component: ocs-operatorAssignee: Nitin Goyal <nigoyal>
Status: CLOSED CURRENTRELEASE QA Contact: Neha Berry <nberry>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: madam, muagarwa, nberry, ocs-bugs, odf-bz-bot, sostapov
Target Milestone: ---   
Target Release: ODF 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.10.0-171 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-21 09:12:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nitin Goyal 2022-02-22 14:23:02 UTC
Description of problem (please be detailed as possible and provide log
snippets):

We have 2 ways to opt-out as a provider
- delete the storageCluster
- disable the AllowRemoteStorageConsumers flag and keep the storagecluster

ocs-operator should make sure that all storage consumers are offBoarded before deleting the provider resources (API Server etc.) in both the cases. But it only does it in the first case.


Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
Consumers won't be able to offboard later.

Is there any workaround available to the best of your knowledge?


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
3

Can this issue reproducible?
Yes


Can this issue reproduce from the UI?
Yes

If this is a regression, please provide more details to justify this:
No

Steps to Reproduce:
1. create a odf to odf provider cluster
2. onboard the consumer
3. disable to AllowRemoteStorageConsumers flag in the storagecluster in the provider cluster.


Actual results:
ocs-operator does not check for existing storageConsumer.

Expected results:
ocs-operator should make sure storageConsumer does not exist.


Additional info:

Comment 9 Mudit Agarwal 2022-02-28 12:39:47 UTC
Not sure why this was moved to POST, I don't see a FailedQA also. Moving it back to ON_QA
If this is FailedQA then please justify and move it to ASSIGNED.

Comment 11 Neha Berry 2022-03-10 20:22:52 UTC
Hi Nitin can you confirm if the verification in comment#10 is enough for moving this bug to verified?