ceph-csi/internal/rbd
Madhu Rajanna c41bf37b95 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>
(cherry picked from commit 1fd2f28fee)
2021-10-27 04:25:04 +00:00
..
clone.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 11:33:26 +00:00
controllerserver_test.go cleanup: resolve parallel test issue 2021-07-13 11:31:39 +00:00
controllerserver.go rbd: copyEncryptionConfig for thickProvisioned snap restore too 2021-10-05 11:33:26 +00:00
driver.go util: call WriteCephConfig() in cephcsi.go 2021-09-09 13:32:12 +00:00
encryption.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 11:33:26 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go internal: reformat long lines in internal/rbd package to 120 chars 2021-06-28 14:43:49 +00:00
mirror.go rbd: add helper function to get local state 2021-08-17 04:36:04 +00:00
nodeserver_test.go cleanup: addresses paralleltest linter 2021-06-25 11:55:12 +00:00
nodeserver.go rbd: check for clusterid mapping in genVolFromVolumeOptions() 2021-09-14 12:56:12 +00:00
rbd_attach.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00
rbd_healer.go util: NewK8sClient() should not panic on non-Kubernetes clusters 2021-09-02 16:50:40 +00:00
rbd_journal.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 11:33:26 +00:00
rbd_util_test.go rbd: move GetMappedID() to util package 2021-09-01 09:40:24 +00:00
rbd_util.go rbd: modify copyEncryptionConfig to accept copyOnlyPassphrase arg 2021-10-05 11:33:26 +00:00
replicationcontrollerserver_test.go rbd: check local image state for resyncing 2021-10-27 04:25:04 +00:00
replicationcontrollerserver.go rbd: check local image state for resyncing 2021-10-27 04:25:04 +00:00
snapshot.go cleanup: resolve nlreturn linter issues 2021-07-22 06:05:01 +00:00