]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: Check for uneven weights & != 2 buckets stretch mode
authorKamoltat <ksirivad@redhat.com>
Thu, 22 Sep 2022 03:41:16 +0000 (03:41 +0000)
committerKamoltat <ksirivad@redhat.com>
Fri, 14 Jul 2023 15:50:10 +0000 (15:50 +0000)
commit251d4eded29fa9da4e0552825693fd0f27a2b166
tree9e30c23dd49b0a2e9d7aae025b5f7af13bc8e0b2
parent4114ca7eb9bbc4fcdfe3765570eaf7bd3399ec76
osd/OSDMap: Check for uneven weights & != 2 buckets stretch mode

Added additional health warnings in
``OSDMap::check_health()``.

1. Check for uneven weights of the two dividing
buckets if stretch mode is enabled and spit out
warnings if true.

2. Check for != 2 buckets if stretch mode is enabled
and spit out warnings if true.

Fixes: https://tracker.ceph.com/issues/57570
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 78baf23ea214dce3c1a7cf3f3515706d03f950ed)
src/osd/OSDMap.cc