From abc5b5f139b05da0be0fbaa99282be16386980db Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sun, 20 Sep 2015 23:42:45 +0200 Subject: [PATCH] tests: update to match crushmap validation message http://tracker.ceph.com/issues/13182 Fixes: #13182 Signed-off-by: Loic Dachary (cherry picked from commit 21a1e75d8a7bad89a48cd9d36902c5d609be5015) Conflicts: qa/workunits/cephtool/test.sh the test structure in hammer is different, adapt the relevant test. --- qa/workunits/cephtool/test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index b1bfeb3996e..3c39a241282 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1483,6 +1483,7 @@ function test_mon_crushmap_validation() { local map=$TMPDIR/map ceph osd getcrushmap -o $map + # crushtool validation timesout and is ignored cat > $TMPDIR/crushtool <&1 | grep 'took too long' + + # crushtool validation fails and is ignored + cat > $TMPDIR/crushtool <&2 +exit 1 # failure +EOF + chmod +x $TMPDIR/crushtool + ceph tell mon.* injectargs --crushtool $TMPDIR/crushtool + ceph osd setcrushmap -i $map 2>&1 | grep 'Failed crushmap test' + ceph tell mon.* injectargs --crushtool crushtool + # crushtool validation succeeds ceph osd setcrushmap -i $map } -- 2.47.3