ceph-csi/internal
Rakshith R b7505c29e2 rbd: check for clusterid mapping in genVolFromVolumeOptions()
This commit adds capability to genVolFromVolumeOptions() to fetch
mapped clusted-id & mon ips for mirrored PVC on secondary cluster
which may have different cluster-id.

This is required for NodeStageVolume().

We also don't need to check for mapping during volume create requests,
so it can be disabled by passing a bool checkClusterIDMapping as false.

GetMonsAndClusterID() is modified to accept bool checkClusterIDMapping
based on which clustermapping is checked to fetch mapped cluster-id and
mon-ips.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 9d1e98ca60)
2021-09-14 12:56:12 +00:00
..
cephfs rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 12:56:12 +00:00
controller rbd: refractor RegenerateJournal() to take in volumeAttributes 2021-08-11 09:50:10 +00:00
csi-common cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
journal cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
liveness cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 12:56:12 +00:00
util rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 12:56:12 +00:00