src/pybind/mgr/pg_autoscaler/module.py: fix 'pg_autoscale_mode' output#54968
src/pybind/mgr/pg_autoscaler/module.py: fix 'pg_autoscale_mode' output#54968
Conversation
|
jenkins test make check |
NitzanMordhai
left a comment
There was a problem hiding this comment.
@kamoltat if we already doing another loop over ps, isn't it better to consider all other values that we are change for table view and move it before the check for json?
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Problem: `ceph osd pool autoscale-status -f json` and `ceph osd pool autoscale-status` shows discrepeencies between each other in the `pg_autoscale_mode` section, when `no_autoscale` flag is set. Solution: set `pg_autoscale_mode` to `false` for both `ceph osd pool autoscale-status` and the json version of the command if `no_autoscale` is set. Fixes: https://tracker.ceph.com/issues/63860 Signed-off-by: Kamoltat <ksirivad@redhat.com>
60f56bf to
bd8d7e9
Compare
|
@NitzanMordhai thank you for your comment, I have addressed the changes you requested, I agree that the old change was hacky, hopefully, this one is more elegant. Thanks |
|
jenkins test make check |
|
jenkins test api |
|
This PR is under test in https://tracker.ceph.com/issues/65796. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
@kamoltat pls merge when checks passed https://tracker.ceph.com/issues/65796 |
|
jenkins test api unrelated problem with dashboard api test |
Problem:
ceph osd pool autoscale-status -f jsonand
ceph osd pool autoscale-statusshows discrepeencies between each other
in the
pg_autoscale_modesection,when
no_autoscaleflag is set.This is due to not showing
the output correctly.
Solution:
shows
falseinpg_autoscale_modeforboth
ceph osd pool autoscale-statusandthe json version of the command if
no_autoscaleis set.
it sounds like a simple solution, but the problem
is more of a display problem rather than logic.
Fixes: https://tracker.ceph.com/issues/63860
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e