Bug 2116823
| 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: | gowtham <gshanmug> |
| Component: | management-console | Assignee: | gowtham <gshanmug> |
| Status: | CLOSED ERRATA | QA Contact: | kmanohar |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.11 | CC: | bmekhiss, etamir, gshanmug, jefbrown, kramdoss, madam, muagarwa, nthomas, ocs-bugs, odf-bz-bot, rcyriac, skatiyar, srangana, sranganathan, tdesala, ygalanti |
| Target Milestone: | --- | Flags: | gshanmug:
needinfo?
(ygalanti) gshanmug: needinfo? (ygalanti) gshanmug: needinfo? (sranganathan) sheggodu: needinfo? (gshanmug) |
| Target Release: | ODF 4.11.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2103979 | Environment: | |
| Last Closed: | 2022-11-09 19:47:24 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2125356, 2128994 | ||
| Bug Blocks: | |||
Moving this to ASSIGNED state due to an open issue https://bugzilla.redhat.com/show_bug.cgi?id=2125356 (In reply to kmanohar from comment #11) > Moving this to ASSIGNED state due to an open issue > https://bugzilla.redhat.com/show_bug.cgi?id=2125356 Verification of this bug is blocked by 2125356, so we must move this bug out of 4.11.1 and take in one of the z streams with fix of 2125356 as well. We never added it as a known issue in 4.11.0 I don't think doc test is required now. VERIFICATION COMMENTS:-
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
5. Apply the DR policy to the app by giving the PVC label
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
_____________________________________________
namespace created - app2
DR PVC - busybox-pvc
Non PVC - test-pvc
Verified build - 4.11.3-5
ACM version - 2.6.2
drpc yaml
oc get drpc -n app2 app2-placement-1-drpc -o yaml
apiVersion: ramendr.openshift.io/v1alpha1
kind: DRPlacementControl
metadata:
creationTimestamp: "2022-11-04T05:23:13Z"
finalizers:
- drpc.ramendr.openshift.io/finalizer
generation: 2
labels:
app: app2
cluster.open-cluster-management.io/backup: resource
name: app2-placement-1-drpc
namespace: app2
resourceVersion: "1877039"
uid: 80df4686-beb1-4397-987a-72e260728a39
spec:
drPolicyRef:
name: dr-policy-10m
placementRef:
kind: PlacementRule
name: app2-placement-1
namespace: app2
preferredCluster: kmanohar-clu1
pvcSelector:
matchLabels:
appname: busybox
status:
actionDuration: 30.022278744s
actionStartTime: "2022-11-04T05:23:13Z"
conditions:
- lastTransitionTime: "2022-11-04T05:23:13Z"
message: Initial deployment completed
observedGeneration: 2
reason: Deployed
status: "True"
type: Available
- lastTransitionTime: "2022-11-04T05:23:13Z"
message: Ready
observedGeneration: 2
reason: Success
status: "True"
type: PeerReady
lastUpdateTime: "2022-11-04T09:23:43Z"
phase: Deployed
preferredDecision:
clusterName: kmanohar-clu1
clusterNamespace: kmanohar-clu1
progression: Completed
resourceConditions:
conditions:
- lastTransitionTime: "2022-11-04T05:23:14Z"
message: Restored PV cluster data
observedGeneration: 1
reason: Restored
status: "True"
type: ClusterDataReady
- lastTransitionTime: "2022-11-04T05:23:17Z"
message: PVCs in the VolumeReplicationGroup are ready for use
observedGeneration: 1
reason: Ready
status: "True"
type: DataReady
- lastTransitionTime: "2022-11-04T05:23:14Z"
message: VolumeReplicationGroup is replicating
observedGeneration: 1
reason: Replicating
status: "False"
type: DataProtected
- lastTransitionTime: "2022-11-04T05:23:17Z"
message: Cluster data of all PVs are protected
observedGeneration: 1
reason: Uploaded
status: "True"
type: ClusterDataProtected
resourceMeta:
generation: 1
kind: VolumeReplicationGroup
name: app2-placement-1-drpc
namespace: app2
protectedpvcs:
- busybox-pvc
oc get vrg,vr,pvc,pod -n app2
NAME DESIREDSTATE CURRENTSTATE
volumereplicationgroup.ramendr.openshift.io/app2-placement-1-drpc primary Primary
NAME AGE VOLUMEREPLICATIONCLASS PVCNAME DESIREDSTATE CURRENTSTATE
volumereplication.replication.storage.openshift.io/busybox-pvc 4h rbd-volumereplicationclass-473128587 busybox-pvc primary Primary
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
persistentvolumeclaim/busybox-pvc Bound pvc-f363dd83-022a-4e37-9b71-248410511b91 5Gi RWO ocs-storagecluster-ceph-rbd 4h2m
persistentvolumeclaim/test-pvc Bound pvc-bf7e8f15-12ee-4f2a-b966-5efe8d1a724c 1Gi RWO thin 4h6m
NAME READY STATUS RESTARTS AGE
pod/busybox 1/1 Running 0 4h2m
pod/test-pod 1/1 Running 0 4h10m
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 (Red Hat OpenShift Data Foundation 4.11.3 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/RHBA-2022:7912 |
Verification comments: Verified build - 4.11.1-5 oc get pods,pvc -n busybox-workloads-1 NAME READY STATUS RESTARTS AGE pod/busybox-1-56795c46cc-49lfq 1/1 Running 0 3h24m pod/busybox-10-86d5bf7cf5-kffpb 1/1 Running 0 3h24m pod/busybox-11-6479d48d7f-znsmn 1/1 Running 0 3h24m pod/busybox-12-6dfb65d98c-x76dh 1/1 Running 0 3h24m pod/busybox-13-5ff5dbccf-75wmv 1/1 Running 0 3h24m pod/busybox-14-6d64f496f9-w776d 1/1 Running 0 3h24m pod/busybox-15-5f49d7f64c-2wkj9 1/1 Running 0 3h24m pod/busybox-16-6d98976bbc-5rzkw 1/1 Running 0 3h24m pod/busybox-17-f4789dfcf-fgkvc 1/1 Running 0 3h24m pod/busybox-18-7674cbd5c9-572f9 1/1 Running 0 3h24m pod/busybox-19-cd6b58c6c-2d5w6 1/1 Running 0 3h24m pod/busybox-2-5d745845bc-7rfzd 1/1 Running 0 3h24m pod/busybox-20-d8b9667c9-2vnzg 1/1 Running 0 3h24m pod/busybox-3-69dcc88ccc-8zwvw 1/1 Running 0 3h24m pod/busybox-4-fc4ffc6dc-snqms 1/1 Running 0 3h24m pod/busybox-5-7fcddb68b5-lmd7g 1/1 Running 0 3h24m pod/busybox-6-69bd989f9f-84cm8 1/1 Running 0 3h24m pod/busybox-7-687896d85-8s4hf 1/1 Running 0 3h24m pod/busybox-8-7dbf7b6b75-lf5nn 1/1 Running 0 3h24m pod/busybox-9-fcddb5b97-gjc89 1/1 Running 0 3h24m pod/test-pod 1/1 Running 0 3h25m NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE persistentvolumeclaim/busybox-pvc-1 Bound pvc-40e2c561-b10f-495e-bce7-421a3a7ee7da 94Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-10 Bound pvc-5b47f0f0-0c2e-4ea7-9abd-2b55e51afaff 87Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-11 Bound pvc-fb1ba7ad-4bf1-409f-8a8e-53570ca1d49f 33Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-12 Bound pvc-87329ebc-9239-4b77-9ad9-ea2c1ee5755e 147Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-13 Bound pvc-4b6c0c46-9010-4839-ae49-fe59598d6403 77Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-14 Bound pvc-c609448e-9a33-4de0-b089-3bdc8ebafbef 70Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-15 Bound pvc-edc66931-ea36-481b-bf03-88a0d9a07b21 131Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-16 Bound pvc-fc1a6ba7-4309-4ceb-84e3-36861c8efd0d 127Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-17 Bound pvc-f58d9430-01f3-4c88-b876-bc19f4dc612d 58Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-18 Bound pvc-526b4a72-57d9-4980-b1fa-30004e00b731 123Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-19 Bound pvc-7868a172-27df-4066-a037-74a23fbe8df9 61Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-2 Bound pvc-640af288-273c-4579-bfb4-279436a651fa 44Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-20 Bound pvc-e7edd5c5-5ad8-4305-820d-f47f1920cd1b 33Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-3 Bound pvc-d7da5464-36d1-4212-956c-18d473f872e3 76Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-4 Bound pvc-dbf5e215-2c12-425e-8dad-a1f56524ee54 144Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-5 Bound pvc-52315fd9-47c1-4ba4-8f2e-a28501cb0468 107Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-6 Bound pvc-f278090b-b81f-4d26-be2b-95f276c52d21 123Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-7 Bound pvc-cb317754-b6cf-46fb-9c33-5e759fee4b4f 90Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-8 Bound pvc-234edf69-bbd4-465f-9c26-2b067deee630 91Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/busybox-pvc-9 Bound pvc-3e40dd3d-d7c0-4bee-b85c-c03cf19ecfeb 111Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h24m persistentvolumeclaim/test-pvc Bound pvc-a9b591ab-8b57-4360-ac32-67263423526d 1Gi RWO ocs-storagecluster-ceph-rbd-mirror 3h26m ______________________________________________________________________ oc get drpc busybox-drpc -o yaml apiVersion: ramendr.openshift.io/v1alpha1 kind: DRPlacementControl metadata: creationTimestamp: "2022-09-07T11:46:10Z" finalizers: - drpc.ramendr.openshift.io/finalizer generation: 2 labels: app: busybox-sample cluster.open-cluster-management.io/backup: resource name: busybox-drpc namespace: busybox-workloads-1 resourceVersion: "7403979" uid: 3d694b79-acc4-4b13-9224-a5b3324b5f6e spec: drPolicyRef: name: dr-policy-5m placementRef: kind: PlacementRule name: busybox-placement namespace: busybox-workloads-1 preferredCluster: kmanohar-c1 pvcSelector: matchLabels: appname: busybox status: actionDuration: 30.040083326s actionStartTime: "2022-09-07T11:46:10Z" conditions: - lastTransitionTime: "2022-09-07T11:46:11Z" message: Initial deployment completed observedGeneration: 2 reason: Deployed status: "True" type: Available - lastTransitionTime: "2022-09-07T11:46:10Z" message: Ready observedGeneration: 2 reason: Success status: "True" type: PeerReady lastUpdateTime: "2022-09-07T15:19:23Z" phase: Deployed preferredDecision: clusterName: kmanohar-c1 clusterNamespace: kmanohar-c1 progression: Completed resourceConditions: conditions: - lastTransitionTime: "2022-09-07T11:46:11Z" message: Restored PV cluster data observedGeneration: 1 reason: Restored status: "True" type: ClusterDataReady - lastTransitionTime: "2022-09-07T11:46:11Z" message: VolumeReplicationGroup is replicating observedGeneration: 1 reason: Replicating status: "False" type: DataProtected - lastTransitionTime: "2022-09-07T15:09:18Z" message: Cluster data of all PVs are protected observedGeneration: 1 reason: Uploaded status: "True" type: ClusterDataProtected - lastTransitionTime: "2022-09-07T11:47:12Z" message: PVCs in the VolumeReplicationGroup are ready for use observedGeneration: 1 reason: Ready status: "True" type: DataReady resourceMeta: generation: 1 kind: VolumeReplicationGroup name: busybox-drpc namespace: busybox-workloads-1 protectedpvcs: - busybox-pvc-1 - busybox-pvc-10 - busybox-pvc-11 - busybox-pvc-12 - busybox-pvc-13 - busybox-pvc-14 - busybox-pvc-15 - busybox-pvc-17 - busybox-pvc-16 - busybox-pvc-18 - busybox-pvc-19 - busybox-pvc-2 - busybox-pvc-20 - busybox-pvc-5 - busybox-pvc-3 - busybox-pvc-6 - busybox-pvc-7 - busybox-pvc-4 - busybox-pvc-9 - busybox-pvc-8