Bug #8267
closedBad ceph command syntax sends to mon anyway
0%
Description
ceph osd pool create base 4 erasure teuthologyprofile
2014-04-18T16:57:19.734 DEBUG:teuthology.orchestra.run:Running [10.214.131.27]: "sudo TESTDIR=/home/ubuntu/cephtest bash -c 'ceph osd pool create base 4 erasure teuthologyprofile'"
2014-04-18T16:57:20.032 INFO:teuthology.orchestra.run.err:[10.214.131.27]: erasure not valid: erasure doesn't represent an int
2014-04-18T16:57:22.148 INFO:teuthology.orchestra.run.err:[10.214.131.27]: pool 'base' created
The ceph —help output and documentation say that it should look like:
osd pool create <poolname> <int[0-]> {<int[0-]>} {replicated|erasure} {<erasure_code_profile>} {<ruleset>}
e.g.
ceph osd pool create base 4 4 erasure teuthologyprofile
Since this command syntax error is detected and an error output, the command should NOT send a request to the mon and create the pool anyway.