ceph-csi/internal
Rakshith R 9d1e98ca60 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>
2021-09-14 08:39:57 +00:00
..
cephfs rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 08:39:57 +00:00
controller cleanup: simplify checkStaticVolume function and remove unwanted vars 2021-09-07 12:51:30 +00:00
csi-common cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
journal cleanup: replace parentName to snapParentName in checkReservation 2021-09-14 05:32:54 +00:00
kms rbd: set vaultAuthNamespace to vaultNamespace if empty 2021-09-08 11:18:03 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
rbd rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 08:39:57 +00:00
util rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 08:39:57 +00:00