Bug 2345723

Summary: Wrong "stopped" mirroringStatus summary in radosnamespace [8.0z]
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ilya Dryomov <idryomov>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Sunil Angadi <sangadi>
Severity: high Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 8.0CC: ceph-eng-bugs, cephqe-warriors, jijoy, mgowri, rpollack, sangadi, tserlin
Target Milestone: ---   
Target Release: 8.0z3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.0-102.el9cp Doc Type: Bug Fix
Doc Text:
.Using the `rbd mirror pool status` command on a non-default namespace now displays the correct status Previously, in some cases, using the `rbd mirror pool status` command on a non-default namespace could erroneously report images as `stopped`, when the correct status was `replaying`. As a result, this could lead to user confusion, as running the same command on the default namespace image reported as `replaying`. With this fix, the implementation defect is corrected and running the `rbd mirror pool status` command on a non-default namespace no longer reports images as `stopped` when the correct status is `replaying`.
Story Points: ---
Clone Of: 2345721 Environment:
Last Closed: 2025-04-07 15:26:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ilya Dryomov 2025-02-14 12:48:28 UTC
+++ This bug was initially created as a clone of Bug #2345721 +++

Description of problem:

During ODF RDR testing it is observed that the mirroringStatus summary in cephblockpoolradosnamespace is not reporting correctly in the primary cluster.


% oc -n openshift-storage get cephblockpoolradosnamespaces cephradosnamespace-28efdf0053560d3253fc69d7661f3fd9 -o=jsonpath='{.status.mirroringStatus}'| jq
{
  "lastChecked": "2025-02-14T12:25:29Z",
  "summary": {
    "daemon_health": "OK",
    "health": "OK",
    "image_health": "OK",
    "states": {
      "stopped": 10
    }
  }
}

There are 10 primary images in the cluster from where the above output is taken. Mirroring is actually enabled.

In the secondary cluster, the status is showing correctly - "replaying": 10

This is initially reported in the ODF bug https://issues.redhat.com/browse/DFBUGS-1525
----------------------------

Version-Release number of selected component (if applicable):
% oc rsh rook-ceph-tools-7c9674cd97-l95gz ceph version
ceph version 19.2.0-53.el9cp (677d8728b1c91c14d54eedf276ac61de636606f8) squid (stable)

ODF 4.18.0-114
OCP 4.18.0-rc.1

How reproducible:
3/3


Steps to Reproduce:
1. On a ODF provider mode setup where RDR is configured, create and protect an RBD based application. 

2. Check the MirroringStatus in the cephblockpoolradosnamespace CR.

Actual results:
mirroringStatus summary in cephblockpoolradosnamespace is showing stopped counts in the primary cluster

Expected results:
mirroringStatus summary in cephblockpoolradosnamespace should report the count correctly

Additional info:

Comment 14 errata-xmlrpc 2025-04-07 15:26:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2025:3635