ceph-csi/internal
Madhu Rajanna 8d7b6ee59f rbd: consider mirror deamon state for ResyncVolume
During ResyncVolume we check if the image
is in an error state, and we resync.
After resync, the image will move to
either the `Error` or the `Resyncing` state.
And if the image is in the above two
conditions, we will return a successful
response and Ready=false so that the
consumer can wait until the volume is
ready to use. If the image is in any
other state we return an error message
to indicate the syncing is not going on.
The whole resync and image state change
depends on the rbd mirror daemon. If the
mirror daemon is not running, the image
can be in Resyncing or Unknown state.
The Ramen marks the volume replication as
secondary, and once the resync starts, it
will delete the volume replication CR as a
cleanup process.

As we dont have a check for the rbd mirror
daemon, we are returning a resync success
response and Ready=false. Due to this false
response Ramen is assuming the resync started
and deleted the volume replication CR, and
because of this, the cluster goes into a bad
state and needs manual intervention.

fixes #3289

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-08-08 13:26:15 +00:00
..
cephfs cephfs: snapshots honor --setmetadata option 2022-08-01 07:15:29 +00:00
controller cleanup: ReconcilePersistentVolume consider passing it by pointer 2022-06-28 19:12:53 +00:00
csi-addons ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
csi-common util: use k8s.io/mount-utils/NewWithoutSystemd() to prevent logging 2022-08-04 09:53:07 +00:00
journal cephfs: added support for snapshot-backed volumes 2022-06-16 09:44:27 +00:00
kms rbd: create token and use it for vault SA 2022-06-17 11:37:59 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nfs nfs: make DeleteVolume (more) idempotent 2022-08-03 19:43:16 +00:00
rbd rbd: consider mirror deamon state for ResyncVolume 2022-08-08 13:26:15 +00:00
util cleanup: create k8s.io/mount-utils Mounter only once 2022-07-21 07:14:43 +00:00