]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: Sanely set the default CRUSH rule when creating pools in stretch mode
authorGreg Farnum <gfarnum@redhat.com>
Thu, 17 Jun 2021 19:56:20 +0000 (19:56 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Thu, 17 Jun 2021 19:56:20 +0000 (19:56 +0000)
commit4f9fdca136bde10479fc173c9bcf4288ea960ace
tree7495565ef5a4942863128dca9a91119652973182
parent5871240363e9912ece5e9bc9a02673ba6ba5ef8d
mon: Sanely set the default CRUSH rule when creating pools in stretch mode

If we get a pool create request while in stretch mode that does not explicitly
specify a crush rule, look at the stretch-mode pools and their rules, and
select the most common one.

Also update set_up_stretch_mode.sh to add a few more rules that let me test
this locally.

Fixes: https://tracker.ceph.com/issues/51270
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/script/set_up_stretch_mode.sh