Bug 2103979

Summary: [DR] The user should have a way to provide a label selector for the PVCs that need DR protection
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Benamar Mekhissi <bmekhiss>
Component: management-consoleAssignee: gowtham <gshanmug>
Status: CLOSED CURRENTRELEASE QA Contact: kmanohar
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.11CC: gshanmug, jefbrown, kramdoss, muagarwa, nthomas, ocs-bugs, odf-bz-bot, skatiyar
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2116823 (view as bug list) Environment:
Last Closed: 2023-02-08 14:06:28 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 Benamar Mekhissi 2022-07-05 12:59:26 UTC
Description of problem (please be detailed as possible and provide log
snippets):
When the UI creates the DRPC resource, the PVCSelector is not provided. In this case, Ramen will DR protect all PVCs within the application namespace. This can cause undesirable results.

Version of all relevant components (if applicable):
4.10, 4.11

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
No

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

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

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 namespace on the Managed Clusters
2. Add an application to that namespace with 1 PVC
3. The application that we just created will not be DR protected
4. Now create a DR application from the UI using the normal flow


Actual results:
Ramen will protect the DR Application as well as the Non-DR application

Expected results:
DR Application (PVCs) only that should be protected

Additional info:

Comment 3 Mudit Agarwal 2022-08-09 05:11:49 UTC
every 4.11.z issue has to be fixed in 4.12.0 also. I know this has been fixed in master already which means 4.12 so lets keep the target release there as well.
We need to create a 4.11 clone when the time comes, I will do that.