]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: Merge weights if rule contains multiple take 47189/head
authorPrashant D <pdhange@redhat.com>
Wed, 20 Jul 2022 09:00:54 +0000 (05:00 -0400)
committerPrashant D <pdhange@redhat.com>
Wed, 12 Feb 2025 04:41:22 +0000 (23:41 -0500)
commit3bd34683e7977acb84d2921b36487be6f306ca1d
tree4e19edd1deb4312749e44f4ef8426f758de074ec
parent8f415be4a8196c79ac1d613da155bc755fe6d0ae
crush/CrushWrapper: Merge weights if rule contains multiple take

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 <pdhange@redhat.com>
PendingReleaseNotes
qa/standalone/mon/osd-pool-df.sh
src/crush/CrushWrapper.cc