Repository navigation
Conversation
5b1567f to
9759662
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
|
|
||
| if self._active_clean_num != new_active_clean_num: |
There was a problem hiding this comment.
@ronen-fr
Yes, basically instead of
if (there are difference in num of active+clean PGs) then (we do some maths)
we change to
we do
if (there are **no** difference in num of active+clean PGs) then (we return to with progress = 1.0) lines below this will do maths.
9759662 to
0c15ad4
Compare
|
@ronen-fr Thank you so much for the review! |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Hey Junior, I was reviewing the QA run which contains this PR: https://tracker.ceph.com/issues/73380 One of the runs had this error which seems to be coming from the test file modified in this PR: Further logs: I've requested @SrinivasaBharath to rerun the QA without this PR to be sure. If you could look into the above error that would be great! |
0c15ad4 to
62c0b14
Compare
62c0b14 to
835c860
Compare
| target ratio and the effective ratio) is greater. | ||
|
|
||
| - **BIAS** is used as a multiplier to manually adjust a pool's PG in accordance | ||
| - **BIAS** is the ``pg_autoscale_bias`` and is used as a multiplier to manually adjust a pool's PG in accordance |
835c860 to
fb2f3d6
Compare
|
Hey @kamoltat, I was reviewing the QA run which contains this PR: https://tracker.ceph.com/issues/73579 One of the runs had this error which seems to be coming from the test file modified in this PR: Here is the corresponding scrape.log link: https://qa-proxy.ceph.com/teuthology/skanta-2025-10-30_09:05:41-rados-wip-bharath2-testing-2025-10-29-2053-distro-default-smithi/scrape.log |
|
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. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
Problem: We are comparing the wrong value when determining whether the Autoscaler event should be completed or not, we compared pool_data["pg_num"] == pool_data["pg_num_target"] which will always return true since pool_data["pg_num_target"] is not actual the target pg we are trying to scale towards, but rather the previous calculated value that we are expected to already reached based on previous values. Solution: Use the correct value which is comparing pool_data[‘pg_num’] == ev.pg_num_target. Fixes: https://tracker.ceph.com/issues/72857 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
1. rename def _refresh() to def _persist() for _persist is more true to what the function actually does. 2. rename pg_stats_active_clean Active Py Module objects such that it is more intuitive and more readable. 3. refractor def global_event_update_progres for better readability. Fixes: https://tracker.ceph.com/issues/72857 Signed-off-by: Kamoltat Sirivadhna <[email protected]> Conflicts: src/pybind/mgr/progress/module.py - Trivial Fix
…erage Fixes: https://tracker.ceph.com/issues/72857 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
make it more obvious for the reader that when setting `bias` in the autoscaler, they need to type in `pg_autoscale_bias` Fixes: https://tracker.ceph.com/issues/72857 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
fb2f3d6 to
cefe4d3
Compare
|
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. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
Summary
This PR fixes an issue where the PG Autoscaler progress event could complete incorrectly due to comparing against the wrong target, and includes readability refactors in the progress module along with new test coverage.
Problem
The Autoscaler event’s completion check compared:
pool_data["pg_num"] == pool_data["pg_num_target"]However, pool_data["pg_num_target"] is not the current scaling target; it reflects the previously computed value (i.e., what the pool was expected to have already reached). As a result, the comparison could erroneously evaluate true and prematurely complete the Autoscaler progress event.
Fix
Use the event’s target recorded at creation time:
pool_data["pg_num"] == ev.pg_num_targetThis ensures the event only completes when the pool’s pg_num actually reaches the intended target for this scaling action.
Additional progress-module cleanup
Rename def _refresh() → def _persist() to better reflect behavior.
Rename variables (e.g., pg_stats_active_clean) to more intuitive names for readability.
Refactor global_event_update_progress() for clearer flow and maintainability.
Tests
Add unit tests for the PgAutoscaler event logic in pybind/mgr/progress/test_progress.py to cover correct completion behavior.
Fixes: https://tracker.ceph.com/issues/72857
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition