ceph-csi/internal
Madhu Rajanna 68bd44beba rbd: add new controller to regenerate omap data
In the case of Disaster Recovery failover, the
user expected to create the static PVC's. We have
planned not to go with the PVC name and namespace
for many reasons (as in kubernetes it's planned to
support PVC transfer to a new namespace with a
different name and with new features coming in
like data populator etc). For now, we are
planning to go with static PVC's to support
async mirroring.

During Async mirroring only the RBD images are
mirrored to the secondary site, and when the
user creates the static PVC's on the failover
we need to regenerate the omap data. The
volumeHandler in PV spec is an encoded string
which contains clusterID and poolID and image UUID,
The clusterID and poolID won't remain same on both
the clusters, for that cephcsi need to generate the
new volume handler and its to create a mapping
between new volume handler and old volume handler
with that whenever cephcsi gets csi requests it
check if the mapping exists it will pull the new
volume handler and continues other operations.

The new controller watches for the PVs created,
It checks if the omap exists if it doesn't it
will regenerate the entire omap data.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-11-28 18:50:00 +00:00
..
cephfs journal: create object with provided UUID 2020-11-28 18:50:00 +00:00
controller rbd: add new controller to regenerate omap data 2020-11-28 18:50:00 +00:00
csi-common util: change member cap of CSIDriver struct 2020-10-21 12:30:18 +00:00
journal rbd: add new controller to regenerate omap data 2020-11-28 18:50:00 +00:00
liveness util: replace klog with util logger in liveness.go 2020-08-19 14:38:12 +00:00
rbd rbd: add new controller to regenerate omap data 2020-11-28 18:50:00 +00:00
util rbd: add minsnapshotsonimage flag 2020-11-18 05:59:20 +00:00