.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`.
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:
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.1 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:9775
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: