ceph-csi/internal/rbd
Madhu Rajanna 17d47a4c31 rbd: remove checkHealthyPrimary check
After Failover of workloads to the secondary
cluster when the primary cluster is down,
RBD Image is not marked healthy, and VR
resources are not promoted to the Primary,
In VolumeReplication, the `CURRENT STATE`
remains Unknown and doesn't change to Primary.

This happens because the primary cluster went down,
and we have force promoted the image on the
secondary cluster. and the image stays in
up+stopping_replay or could be any other states.
Currently assumption was that the image will
always be `up+stopped`. But the image will be in
`up+stopped` only for planned failover and it
could be in any other state if its a forced
failover. For this reason, removing
checkHealthyPrimary from the PromoteVolume RPC call.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 8c5563a9bc)
2022-07-27 09:39:56 +00:00
..
driver rbd: fix bug handling GetKrbdSupportedFeatures() 2022-05-18 14:11:18 +00:00
clone.go rbd: support pvc-pvc clone with different sc & encryption 2022-05-06 17:37:36 +00:00
controllerserver.go rbd: support pvc-pvc clone with different sc & encryption 2022-05-06 17:37:36 +00:00
diskusage.go rbd: implement CSI-Addons ControllerReclaimSpace 2021-12-23 17:43:23 +00:00
encryption.go rbd: support pvc-pvc clone with different sc & encryption 2022-05-06 17:37:36 +00:00
errors.go rbd: remove checkHealthyPrimary check 2022-07-27 09:39:56 +00:00
globals.go rbd: add functions for initializing global variables 2021-12-10 07:35:26 +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: remove redundant util.Credentials arg from flattenRbdImage() 2022-01-06 12:28:18 +00:00
mirror.go rbd: increase force promote timeout to 2 minutes 2022-03-30 13:46:27 +00:00
nodeserver_test.go cleanup: generalize the parseBool function 2021-11-01 08:17:36 +00:00
nodeserver.go rbd: handle when krbdFeatures is zero 2022-05-18 14:11:18 +00:00
rbd_attach_test.go rbd: fix parsing mapOptions 2022-03-14 15:21:25 +00:00
rbd_attach.go rbd: check nbd tool features only for rbd driver 2022-04-14 09:17:45 +00:00
rbd_healer.go rbd: healer detect Kubernetes version for right StagingTargetPath 2022-06-24 16:16:01 +00:00
rbd_journal.go rbd: support pvc-pvc clone with different sc & encryption 2022-05-06 17:37:36 +00:00
rbd_util_test.go rbd: handle when krbdFeatures is zero 2022-05-18 14:11:18 +00:00
rbd_util.go rbd: handle when krbdFeatures is zero 2022-05-18 14:11:18 +00:00
replicationcontrollerserver_test.go rbd: remove checkHealthyPrimary check 2022-07-27 09:39:56 +00:00
replicationcontrollerserver.go rbd: remove checkHealthyPrimary check 2022-07-27 09:39:56 +00:00
snapshot.go rbd: remove redundant util.Credentials arg from flattenRbdImage() 2022-01-06 12:28:18 +00:00