ceph-csi/internal/cephfs
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
..
errors cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
cephfs_util.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
clone_test.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
clone.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
controllerserver.go cephfs: no need to check for zero volume size 2021-09-07 04:49:24 +00:00
driver.go util: call WriteCephConfig() in cephcsi.go 2021-09-08 16:05:27 +00:00
fsjournal.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
identityserver.go internal: reformat long lines in internal/cephfs package to 120 chars 2021-06-28 14:43:49 +00:00
nodeserver.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
snapshot.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
util.go cleanup: move volumeID to the volumeoptions 2021-09-07 14:33:02 +00:00
validator.go cephfs: correct comment for validateExpandVolumeRequest 2021-09-07 14:33:02 +00:00
volume.go cleanup: move cephfs errors to new util package 2021-09-01 06:50:16 +00:00
volumemounter.go cleanup: move execCommandErr to volumemounter 2021-09-07 14:33:02 +00:00
volumeoptions.go rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 08:39:57 +00:00