ceph-csi/internal/rbd
Madhu Rajanna 1fd2f28fee rbd: check local image state for resyncing
below are the local states of the mirrored image

"unknown"  -> If the image is in an error state
means data is completely synced
"error" -> If the image is in an error state
means it needs resync
"syncing"
"starting_replay"
"replaying"
"stopping_replay"
"stopped"

If the resync is successfully started which
means the image will be in "replaying" state.
we can consider "replaying" state to report
resync succesfully going on state.

we are discarding the intermediate states like
"syncing", "starting_replay" and "stopping_replay".

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-10-26 12:00:36 +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 snapshot deletion 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: check local image state for resyncing 2021-10-26 12:00:36 +00:00
replicationcontrollerserver.go rbd: check local image state for resyncing 2021-10-26 12:00:36 +00:00
snapshot.go cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00