]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: test the crush ruleset when creating a pool 4807/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 16 Jul 2015 16:02:02 +0000 (18:02 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 16 Jul 2015 16:16:27 +0000 (18:16 +0200)
commitf1e86be589803596e86acc964ac5c5c03b4038d8
tree2d251dc9d147094dacb2c8e6296cb5a0e226017b
parenta44499f7e6609d9a32254dc6f4303122de74db31
mon: test the crush ruleset when creating a pool

We want to fix the following scenario:

 * an erasure code plugin (or another part of the code) creates a
   ruleset
 * the ruleset crashes during mapping (for whatever reason)
 * ceph osd pool create uses the bugous ruleset
 * the monitors try to do mapping a crash

Having a bugous ruleset in the crush map is very difficult prevent. The
catastrophic event of using it with a newly created pool can however be
prevented by calling the CrushTester just before creating the pool and
after all implicit or explicit crush ruleset creation happened.

http://tracker.ceph.com/issues/11814 Fixes: #11814

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/mon/OSDMonitor.cc
src/test/mon/osd-crush.sh