Skip to content

mgr/status: Fix hardcoded values in standby-replay JSON output - #70701

Merged
vshankar merged 1 commit into
ceph:mainfrom
Prachi-Lasurkar:wip-78873-mgr-status-fix-standby-replay-json
Sep 1, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
Prachi-Lasurkar:wip-78873-mgr-status-fix-standby-replay-json

Conversation

@Prachi-Lasurkar

@Prachi-Lasurkar Prachi-Lasurkar commented Jul 30, 2026 •

Copy link
Copy Markdown

The dns, inos, dirs and caps fields in ceph fs status -f json
were hardcoded to the literal integer 5 for standby-replay
daemons instead of using the real perf counter values. Fix
by replacing the literals with the actual fetched variables
in the JSON output branch.

Fixes: https://tracker.ceph.com/issues/78873

Before Changes:

"mdsmap": [
        {
            "caps": 0,
            "dirs": 12,
            "dns": 10,
            "inos": 13,
            "name": "cephfs.prachivm-0.fzodsu",
            "rank": 0,
            "rate": 0,
            "state": "active"
        },
        {
            "caps": 5,
            "dirs": 5,
            "dns": 5,
            "events": 0,
            "inos": 5,
            "name": "cephfs.prachivm-1.plpkav",
            "rank": "0-s",
            "state": "standby-replay"
        },
        {
            "name": "cephfs.prachivm-2.nhjzsk",
            "state": "standby"
        }

After Changes:

    "mdsmap": [
        {
            "caps": 0,
            "dirs": 12,
            "dns": 10,
            "inos": 13,
            "name": "cephfs.testprachi-0.gftotr",
            "rank": 0,
            "rate": 0,
            "state": "active"
        },
        {
            "caps": 0,
            "dirs": 2,
            "dns": 0,
            "events": 0,
            "inos": 3,
            "name": "cephfs.testprachi-1.afyqig",
            "rank": "0-s",
            "state": "standby-replay"
        },
        {
            "name": "cephfs.testprachi-2.noxzcy",
            "state": "standby"
        }
    ],


Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

 The dns, inos, dirs and caps fields in ceph fs status -f json
 were hardcoded to the literal integer 5 for standby-replay
 daemons instead of using the real perf counter values. Fix
 by replacing the literals with the actual fetched variables
 in the JSON output branch.

Fixes: https://tracker.ceph.com/issues/78873

Signed-off-by: Prachi Lasurkar <[email protected]>
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

16 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@github-actions github-actions Bot added cephfs Ceph File System pybind labels Jul 30, 2026
@timqn22

timqn22 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

ok to test

@timqn22

timqn22 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@timqn22

timqn22 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@pdvian
pdvian requested a review from NitzanMordhai August 5, 2026 12:52

@NitzanMordhai NitzanMordhai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@vshankar vshankar left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@vshankar

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-08-13-12:44.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar
vshankar merged commit a3b2419 into ceph:main Sep 1, 2026
23 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System pybind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants