ceph-csi/internal
Humble Chirammal 3c9d7e3cd5 rbd: detect migration volID in DeleteVolume() and delete rbd image
This commit adds the logic to detect a passed in volumeID
is a migrated volume ID and if yes, the driver connect to the
backend cluster and clean/delete the image. The logic
only applied if its a migration volume ID. The migration volume ID
carry the information like mons, pool and image name which is
good enough for the driver to identify and connect to the backend
cluster for its operations.

migration volID format:
<mig>_mons-<monsHash>_image-<imageUID>_<poolHash>

Details on the hash values:

* MonsHash: this carry a hash value (md5sum) which will be acted as the
`clusterID` for the operations in this context.

* ImageUID: this is the unique UUID generated by kubernetes for the created
volume.

* PoolHash: this is an encoded string of pool name.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2021-10-04 16:06:31 +00:00
..
cephfs cleanup: move mount functions to new pkg 2021-09-23 06:39:37 +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: detect migration volID in DeleteVolume() and delete rbd image 2021-10-04 16:06:31 +00:00
util cleanup: move core functions to core pkg 2021-09-23 06:39:37 +00:00