]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: robust test for the pool create crushmap test 5314/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 22 Jul 2015 08:42:32 +0000 (10:42 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 22 Jul 2015 08:42:32 +0000 (10:42 +0200)
commite47903727b5d53f795014bf29b417d357f2bd65a
tree86203e5e7a09d49cdc4759967caf483eed266045
parentb3a3e0e509eb9530994723ed9d68f85b8434a22d
tests: robust test for the pool create crushmap test

The test that goes with f1e86be589803596e86acc964ac5c5c03b4038d8 to
verify that a bugous crush ruleset will prevent the creation of a pool
trying to use it was fragile. I depends on the implementation of the
erasure code lrc plugin and turns out to not work on i386.

The test is modified to use a fake crushtool that always returns false
and validate that it prevents the creation of a pool, which demonstrate
it is used for crushmap validation prior to the pool creation.

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

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