Skip to content

src/pybind/mgr: handle json-pretty output format for ceph fs perf stats command - #66492

Merged
vshankar merged 1 commit into
ceph:mainfrom
neesingh-rh:cephfs-top
Jun 8, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
neesingh-rh:cephfs-top

Conversation

@neesingh-rh

@neesingh-rh neesingh-rh commented Dec 3, 2025 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/74072
Signed-off-by: Neeraj Pratap Singh [email protected]

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.

@github-actions github-actions Bot added the pybind label Dec 3, 2025
@neesingh-rh
neesingh-rh requested a review from a team December 3, 2025 07:43
@neesingh-rh neesingh-rh changed the title src/pybind/mgr: handle json-pretty output format for ceph fs perf stats command src/pybind/mgr: handle json-pretty output format for ceph fs perf stats command Dec 3, 2025
@neesingh-rh
neesingh-rh requested a review from joscollin December 3, 2025 07:44

@joscollin joscollin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

json-pretty is working fine.
Can you fix the other formats also? 'xml', 'xml-pretty', 'plain', 'yaml'

@joscollin

Copy link
Copy Markdown
Member

json-pretty is working fine. Can you fix the other formats also? 'xml', 'xml-pretty', 'plain', 'yaml'

@neesingh-rh
I've checked this once again. Looks like pybind/mgr is using only json and json-pretty options.

In mgr/status I see only those:
https://github.com/ceph/ceph/blob/main/src/pybind/mgr/status/module.py#L369-#L374

So let's do the same in perf stats too.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

json-pretty is working fine. Can you fix the other formats also? 'xml', 'xml-pretty', 'plain', 'yaml'

@neesingh-rh I've checked this once again. Looks like pybind/mgr is using only json and json-pretty options.

In mgr/status I see only those: https://github.com/ceph/ceph/blob/main/src/pybind/mgr/status/module.py#L369-#L374

So let's do the same in perf stats too.

ACK.In that case, can u pls approve if looks good?

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

jenkins test docs

Comment thread src/pybind/mgr/stats/fs/perf_stats.py Resolved
Comment thread src/pybind/mgr/stats/fs/perf_stats.py Resolved
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@vshankar did we miss adding this into one of the runs?

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar did we miss adding this into one of the runs?

I had a bunch of PRs in my branch, so this is scheduled for next.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

@vshankar did we miss adding this into one of the runs?

I had a bunch of PRs in my branch, so this is scheduled for next.

We have its respective jira targeted for 9.1

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar did we miss adding this into one of the runs?

I had a bunch of PRs in my branch, so this is scheduled for next.

We have its respective jira targeted for 9.1

Sorry, let's not advertise downstream version in publicly readable PRs. Nudge me on the appropriate downstream channels please.

@vshankar

Copy link
Copy Markdown
Contributor

vshankar added a commit to vshankar/ceph that referenced this pull request Mar 24, 2026
* refs/pull/66492/head:

Reviewed-by: Jos Collin <[email protected]>
Reviewed-by: Venky Shankar <[email protected]>
@neesingh-rh

Copy link
Copy Markdown
Contributor Author

jenkins test docs

vshankar added a commit to vshankar/ceph that referenced this pull request Apr 20, 2026
* refs/pull/66492/head:
	src/pybind/mgr: handle json-pretty for perf stats

Reviewed-by: Jos Collin <[email protected]>
Reviewed-by: Venky Shankar <[email protected]>

@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

Copy link
Copy Markdown
Contributor

jenkins test docs

1 similar comment
@vshankar

Copy link
Copy Markdown
Contributor

jenkins test docs

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

Rebased the PR

@joscollin

Copy link
Copy Markdown
Member

jenkins test docs

Comment thread src/pybind/mgr/stats/module.py Resolved
@neesingh-rh
neesingh-rh force-pushed the cephfs-top branch 2 times, most recently from 5f387b9 to f73c8d3 Compare May 7, 2026 12:03
@neesingh-rh
neesingh-rh requested a review from a team as a code owner May 7, 2026 12:03
@neesingh-rh
neesingh-rh force-pushed the cephfs-top branch 4 times, most recently from 4431e66 to 96cd2bc Compare May 11, 2026 08:24
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

Have used conditional importing method to fix jenkins CI failures as used across src/mgr as well as some other modules.

@neesingh-rh

Copy link
Copy Markdown
Contributor Author

Have used conditional importing method to fix jenkins CI failures as used across src/mgr as well as some other modules.

It seems a better way instead of having tox, requirements and many more changes when such thing happens for a small module/part as done in other places.

@vshankar

Copy link
Copy Markdown
Contributor

Have used conditional importing method to fix jenkins CI failures as used across src/mgr as well as some other modules.

It seems a better way instead of having tox, requirements and many more changes when such thing happens for a small module/part as done in other places.

Could you share where else this is done?

@neesingh-rh

neesingh-rh commented May 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Have used conditional importing method to fix jenkins CI failures as used across src/mgr as well as some other modules.

It seems a better way instead of having tox, requirements and many more changes when such thing happens for a small module/part as done in other places.

Could you share where else this is done?

Here's some example, https://github.com/ceph/ceph/blob/main/src/pybind/mgr/dashboard/module.py#L51 , https://github.com/ceph/ceph/blob/main/src/pybind/ceph_argparse.py#L1652 , https://github.com/ceph/ceph/blob/main/src/pybind/mgr/rook/module.py#L22

@vshankar

Copy link
Copy Markdown
Contributor

Have used conditional importing method to fix jenkins CI failures as used across src/mgr as well as some other modules.

It seems a better way instead of having tox, requirements and many more changes when such thing happens for a small module/part as done in other places.

Could you share where else this is done?

Here's some example, https://github.com/ceph/ceph/blob/main/src/pybind/mgr/dashboard/module.py#L51 , https://github.com/ceph/ceph/blob/main/src/pybind/ceph_argparse.py#L1652 , https://github.com/ceph/ceph/blob/main/src/pybind/mgr/rook/module.py#L22

Thanks! I am fine with this change 👍

Will have to run this through tests again - I will do that on prio.

@vshankar

Copy link
Copy Markdown
Contributor

@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.

This is good to merge. Will merge in a while.

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants