Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List protected consistency groups in VRG and DRPC #1647

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ELENAGER
Copy link
Member

@ELENAGER ELENAGER commented Nov 11, 2024

When protecting standalone PVCs, we are displaying flat list of protected PVCs in both VRG and DRPC. When working with consistency groups, we want to display the list of protected consistency groups each one with it's protected PVCs for better understanding the hierarchy
Sample of DRPC showing protected consistency group with list of PVCs:

  resourceMeta:
    generation: 1
    kind: VolumeReplicationGroup
    name: deployment-rbd-drpc
    namespace: deployment-rbd
    protectedcgs:
    - name: rook-ceph-dr1-1deployment-rbd-drpc
      protectedpvcs:
      - extra-pvc
      - busybox-pvc
    resourceVersion: "350102"

Sample of VRG, showing protected consistency group with list of PVCs:

protectedCGs:
- accessModes:
  - ReadWriteOnce
  conditions:
  - lastTransitionTime: "2024-11-11T12:04:22Z"
    message: PVC in the VolumeReplicationGroup is ready for use
    observedGeneration: 1
    reason: Ready
    status: "True"
    type: DataReady
  - lastTransitionTime: "2024-11-11T12:04:22Z"
    message: PV cluster data already protected for PVC extra-pvc
    observedGeneration: 1
    reason: Uploaded
    status: "True"
    type: ClusterDataProtected
  - lastTransitionTime: "2024-11-11T12:04:19Z"
    message: PVC in the VolumeReplicationGroup is ready for use
    observedGeneration: 1
    reason: Replicating
    status: "False"
    type: DataProtected
  csiProvisioner: rook-ceph.rbd.csi.ceph.com
  labels:
    app: deployment-rbd
    app.kubernetes.io/part-of: deployment-rbd
    appname: busybox
    ramendr.openshift.io/consistency-group: rook-ceph-dr1-1
    ramendr.openshift.io/owner-name: deployment-rbd-drpc
    ramendr.openshift.io/owner-namespace-name: deployment-rbd
  lastSyncBytes: 81920
  lastSyncDuration: 0s
  lastSyncTime: "2024-11-11T12:14:00Z"
  name: rook-ceph-dr1-1deployment-rbd-drpc
  namespace: deployment-rbd
  protectedPVCs:
  - extra-pvc
  - busybox-pvc
  replicationID:
    id: ""
  resources:
    requests:
      storage: 1Gi
  storageClassName: rook-ceph-block
  storageID:
    id: rook-ceph-dr1-1
state: Primary

@ELENAGER ELENAGER force-pushed the cg_protected_specs branch 3 times, most recently from 4b8e479 to e490ee3 Compare November 14, 2024 14:06
When protecting standalone PVCs, we are displaying list of protected PVCs in VRG and DRPC. When working with consistency groups, we want to display the list of protected PVCs per consistency groups for better understanding, what was protected

Signed-off-by: Elena Gershkovich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant