ceph-csi/internal/rbd
Rakshith R 1849076aab rbd: add EnsureImageCleanup to ensure image cleanup from trash
After moving moving image to trash, if `trash remove` step fails,
then external-provisioner will issue subsequent requests, in which
image will be absent in pool( will be in trash) and omap cleanup will
be done with stale image left in trash with no `trash remove` step on it.

To avoid this scenario list trash images and find corresponding id for given
image name and add a task to flatten when we encounter a ErrImageNotFound.

Fixes: #1728

Signed-off-by: Rakshith R <rar@redhat.com>
2021-10-20 18:25:31 +00:00
..
clone.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 07:46:57 +00:00
controllerserver_test.go cleanup: resolve parallel test issue 2021-07-13 11:31:39 +00:00
controllerserver.go rbd: add EnsureImageCleanup to ensure image cleanup from trash 2021-10-20 18:25:31 +00:00
driver.go util: call WriteCephConfig() in cephcsi.go 2021-09-08 16:05:27 +00:00
encryption.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 07:46:57 +00:00
errors.go rbd: detect migration volID in DeleteVolume() and delete rbd image 2021-10-04 16:06:31 +00:00
identityserver.go internal: reformat long lines in internal/rbd package to 120 chars 2021-06-28 14:43:49 +00:00
migration_test.go rbd: change iteration variable name in the migration test to be specific 2021-10-11 10:06:30 +00:00
migration.go rbd: detect migration volID in DeleteVolume() and delete rbd image 2021-10-04 16:06:31 +00:00
mirror.go rbd: add helper function to get local state 2021-08-16 17:38:25 +00:00
nodeserver_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
nodeserver.go rbd: use clusterID from volumeContext at nodestage 2021-10-11 10:06:30 +00:00
rbd_attach.go rbd: provide alternatives to preserve the ceph log files 2021-09-16 13:55:15 +00:00
rbd_healer.go util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 11:22:14 +00:00
rbd_journal.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 07:46:57 +00:00
rbd_util_test.go rbd: provide alternatives to preserve the ceph log files 2021-09-16 13:55:15 +00:00
rbd_util.go rbd: add EnsureImageCleanup to ensure image cleanup from trash 2021-10-20 18:25:31 +00:00
replicationcontrollerserver_test.go rbd: consider empty mirroring mode 2021-08-09 11:05:05 +00:00
replicationcontrollerserver.go rbd: check local image description for split-brain 2021-10-18 11:22:03 +00:00
snapshot.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00