]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: robust test for the pool create crushmap test 6201/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 22 Jul 2015 08:42:32 +0000 (10:42 +0200)
committerLoic Dachary <ldachary@redhat.com>
Thu, 8 Oct 2015 08:55:55 +0000 (10:55 +0200)
commit698d75c11fa116d6546b09d14484d094fae8f6d7
tree5f6ee79cd9009eea427d2d567fb380aa4f3bb35f
parent70e612a395f7f5daf2fa289d8ae522824ef7a38f
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>
(cherry picked from commit e47903727b5d53f795014bf29b417d357f2bd65a)
src/test/mon/osd-crush.sh