Repository navigation
crush/CrushWrapper: Merge weights if rule contains multiple take - #47189
Conversation
|
TBD : [osd-pool-df.sh] -- Need to remove unnecessary ceph commands and uncomment teardown testcase dir. |
|
@kamoltat Do you recommend any pg autoscaler specific test coverage for this PR? I see pg autoscaler frequently request |
you're right, pybind/mgr/pg_autoscaler/module.py:_get_pool_status() calls mgr/ActivePyModules.cc: pg_map.dump_pool_stats_full() a lot and dump_pool_stats_full() calls PGMap::get_rule_avail() and that calls osdmap.crush->get_rule_weight_osd_map. However, I think the autoscaler just uses Maybe a sanity check where we enable autoscaler for a pool and use the command: |
|
Other than that I think this is ready for qa. |
gregsfortytwo
left a comment
There was a problem hiding this comment.
Somebody who's familiar with the crush shadow trees needs to take a look at this. I'm not sure who that would be.
Reason being, this looks fine to me as far as it goes (is it really this simple a change? Wow!), but I think the reason that FIXME was left in was because there are concerns about overlapping CRUSH hierarchies. Perhaps with the advent of these stretch crush rules that's a better corner case to get wrong, though? :/
|
Hi, is there anything new on this? Really looking forward for the fix to get merged ... Thanks |
|
@neha-ojha Is it too late to qualify this for reef? It's getting more reports from users and would be good to resolve. |
|
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. |
|
@rzarzynski I guess I should tag you on queries about stuff like this now. |
|
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. |
|
@gregsfortytwo reef is close to it's release (RC2) ... any chance we will see this getting released anytime soon? |
|
Pinging @rzarzynski @neha-ojha on this again. I'll poke in #ceph-devel as well. |
|
This was on the agenda of the yesterday's RADOS Team Meeting. In short:
|
|
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 can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@pdvian pls rebase and it can be merged now |
|
jenkins test make check |
If there are multiple takes in a crush rule that place a different number of objects we do not take that into account. This creates a MAX AVAIL stat inconsistency for a given pool from crush rule having multiple takes. Merge weights before normalizing the weight map. Fixes: https://tracker.ceph.com/issues/56650 Signed-off-by: Prashant D <[email protected]>
|
jenkins test make check |
|
jenkins test api |
Unrelated. |
|
jenkins test make check |
|
jenkins test api |
|
jenkins test make check |
|
jenkins test api |
|
Unrelated: |
|
jenkins test make check |
|
jenkins test api |
|
|
jenkins test make check |
|
The API bot signals the same failure that the now green make check bot was. Really looks unrelated: |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
jenkins test make check arm64 |
There was a problem hiding this comment.
Much clearer, thanks for the change LGTM
If there are multiple takes in a crush rule that place a different
number of objects we do not take that into account. This creates
a MAX AVAIL stat inconsistency for a given pool from crush rule
having multiple takes. Merge weights before normalizing the
weight map.
Fixes: https://tracker.ceph.com/issues/56650
Signed-off-by: Prashant D [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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 windows