]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: Sanely set the default CRUSH rule when creating pools in stretch mode 42909/head
authorGreg Farnum <gfarnum@redhat.com>
Thu, 17 Jun 2021 19:56:20 +0000 (19:56 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 24 Aug 2021 17:54:00 +0000 (17:54 +0000)
commita569c37abb41253b2a87a0c1ca00d254822cb195
tree12c5da525063dedeb94ffc97971b7d9dd3d1e0f9
parent7282d81d2c500b5b0e929c07971b72444c6ac424
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>
(cherry picked from commit 4f9fdca136bde10479fc173c9bcf4288ea960ace)
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/script/set_up_stretch_mode.sh