Bug 2238308
| Summary: | Should not allow to create a 2nd dr Policy on an existing cluster set with an existing dr policy | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Kevin Alon Goldblatt <kgoldbla> |
| Component: | management-console | Assignee: | gowtham <gshanmug> |
| Status: | CLOSED ERRATA | QA Contact: | avdhoot <asagare> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.14 | CC: | amagrawa, gshanmug, hnallurv, muagarwa, nthomas, odf-bz-bot, skatiyar, srangana |
| Target Milestone: | --- | ||
| Target Release: | ODF 4.16.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.16.0-89 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-07-17 13:09:43 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
Kevin Alon Goldblatt
2023-09-11 11:13:05 UTC
@kgoldbla did you create a DRPolicy across 2 regional clusters or 2 metro clusters? Creation of a duplicate DRPolicy across 2 metro clusters is forbidden (or should be). Creation of multiple DRPolicy across 2 regional clusters is supported as there maybe multiple schedule intervals that are desired for different workloads opting into the different DRPolicies. When you state the new policy is "Inactive" what does that actually mean? and, where do you see this as being inactive? (In reply to Shyamsundar from comment #2) > @kgoldbla did you create a DRPolicy across 2 regional clusters or > 2 metro clusters? > > Creation of a duplicate DRPolicy across 2 metro clusters is forbidden (or > should be). > > Creation of multiple DRPolicy across 2 regional clusters is supported as > there maybe multiple schedule intervals that are desired for different > workloads opting into the different DRPolicies. Ok so then this is the desired behavior. > > When you state the new policy is "Inactive" what does that actually mean? > and, where do you see this as being inactive? Apologies, The new policy is displayed as being Not Validated (In reply to Kevin Alon Goldblatt from comment #4) > (In reply to Shyamsundar from comment #2) > > Creation of multiple DRPolicy across 2 regional clusters is supported as > > there maybe multiple schedule intervals that are desired for different > > workloads opting into the different DRPolicies. > > Ok so then this is the desired behavior. I assume then the creation was of 2 Regional DR policies. > > > > > When you state the new policy is "Inactive" what does that actually mean? > > and, where do you see this as being inactive? > > Apologies, The new policy is displayed as being Not Validated That should not happen, the 2 DRClusters that this DRPolicy is pointing to is already validated (as the first DRPolicy is showing up clean as per the report), further this DRPolicy should not be in an invalidated state. Can you pass along a must-gather from the hub cluster for us to inspect the various resources and logs: - https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.8/html/troubleshooting/troubleshooting#procedure - oc adm must-gather --image=registry.redhat.io/rhacm2/acm-must-gather-rhel8:v2.8.0 --dest-dir=<directory> (In reply to Shyamsundar from comment #5) > (In reply to Kevin Alon Goldblatt from comment #4) > > (In reply to Shyamsundar from comment #2) > > > Creation of multiple DRPolicy across 2 regional clusters is supported as > > > there maybe multiple schedule intervals that are desired for different > > > workloads opting into the different DRPolicies. > > > > Ok so then this is the desired behavior. > > I assume then the creation was of 2 Regional DR policies. Based on further understanding of the setup it seems that a subsequent Metro DR policy across the 2 ManagedClusters was allowed for creation from the UI, and that resulted in Ramen reporting the second policy as invalid (as we cannot have more than one Metro DR policy across the same set of clusters). @kgoldbla if you can confirm this, then I would assign this issue to the UI team for required checks before allowing the creation of a duplicate Metro DRPolicy such that the creation itself is forbidden, Thanks! This is a Metro DR policy The UI is not allowing to create 2nd DR policy and gives below error. " Existing DRPolicy detected A DRPolicy is already configured for selected managed clusters. You cannot create another DRPolicy using the same pair of clusters. " Hence marking it as verified. Steps Used- 1. Via the UI - Data Services - Data Policy - Create DR Policy 2. On a cluster set with an existing DR policy which is Active, create a 2nd DR Policy. Attached screenshot of error page. Product Version- OCP -4.16 ODF - 4.16.0-90 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat OpenShift Data Foundation 4.16.0 security, enhancement & bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2024:4591 |