From b078effaec4c0c4902707f57b7a45cb011c33b0e Mon Sep 17 00:00:00 2001 From: parth-gr Date: Tue, 12 Aug 2025 17:17:55 +0530 Subject: [PATCH] rbdmirror: fix status check for rbd rn mirroring if the blockpool mirroring is disabled and status check is not removed, currently rn cr still watches for the status Add a check if the pool or rados mirroring is disabled then dont watch for status Signed-off-by: parth-gr (cherry picked from commit 11b3d7e16eb22442d87f5b795542b0031d276850) --- pkg/operator/ceph/pool/radosnamespace/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/operator/ceph/pool/radosnamespace/controller.go b/pkg/operator/ceph/pool/radosnamespace/controller.go index 3f8a03062..53cedbc5b 100644 --- a/pkg/operator/ceph/pool/radosnamespace/controller.go +++ b/pkg/operator/ceph/pool/radosnamespace/controller.go @@ -592,7 +592,7 @@ func (r *ReconcileCephBlockPoolRadosNamespace) reconcileMirroring(cephBlockPoolR } } - if cephBlockPool.Spec.StatusCheck.Mirror.Disabled { + if cephBlockPool.Spec.StatusCheck.Mirror.Disabled || (!cephBlockPool.Spec.Mirroring.Enabled && cephBlockPoolRadosNamespace.Spec.Mirroring == nil) { // Stop monitoring the mirroring status of this radosNamespace if radosNamespaceContextsExists && r.radosNamespaceContexts[radosNamespaceChannelKey].started { r.cancelMirrorMonitoring(radosNamespaceChannelKey)