Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / compile-decompile-recompile.t
1   $ cp "$TESTDIR/need_tree_order.crush" .
2   $ crushtool -c need_tree_order.crush -o nto.compiled
3   $ crushtool -d nto.compiled -o nto.conf
4   $ crushtool -c nto.conf -o nto.recompiled
5
6 # as the input file is actually exactly what decompilation will spit
7 # back out, comments and all, and the compiled format is completely
8 # deterministic, we can compare the files to make sure everything
9 # worked
10   $ cmp need_tree_order.crush nto.conf
11   $ cmp nto.compiled nto.recompiled
12
13   $ crushtool -c "$TESTDIR/missing-bucket.crushmap.txt"
14   in rule 'rule-bad' item 'root-404' not defined
15   [1]