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

Add storageid and replicationid labels to volumegroupreplication #1691

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

Conversation

ELENAGER
Copy link
Member

@ELENAGER ELENAGER commented Dec 2, 2024

As part of peer classes update, I added two mandatory labels to volume group replication:

ramendr.openshift.io/storageid: rook-ceph-$cluster-1
ramendr.openshift.io/replicationid: rook-ceph-replication-1

Also
clusterID: rook-ceph
pool: $pool

During the integration process, we found out, that these parameters have to be added to volume group replication. This adjustment is necessary to meet CSI requirements

spec:
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
replication.storage.openshift.io/replication-secret-name: rook-csi-rbd-provisioner
replication.storage.openshift.io/replication-secret-namespace: rook-ceph
clusterID: rook-ceph
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what this clusterID means. There is also a ClusterId in PeerClass struct, the id is retrieved from kube-system of the cluster, check here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rakeshgm As far as I understood from Nikhil's explanation, it is the id of ceph cluster. It is mandatory in volumegroupreplicationclass. here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a ceph cluster ID, this is the clusterID which is used to get the ceph mon and other details. we have same in storageclass and volumegroupsnapshot class as well.

@rakeshgm
Copy link
Member

rakeshgm commented Dec 3, 2024

Apart from the clarification requested above, the labelling with SID, RID on VGRC looks fine to me.

@ELENAGER ELENAGER changed the title Add storageid and replicationid labels to volumereplicationgroup Add storageid and replicationid labels to volumegroupreplication Dec 4, 2024
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.

3 participants