Bug #11340
closedrados mkpool works for duplicate pool names in firefly
0%
Description
example - The ceph pool, "data" is already present. if I try to create a new pool named data again, there is no error -
host-44-0-2-109:~ # rados mkpool data
successfully created pool data
I learned that that's a feature rather than a bug because all commands should be idempotent where possible. However, if you look at rados rmpool, then it's the opposite. It does throw an error message -
rados rmpool data2 data2 --yes-i-really-really-mean-it
pool data2 does not exist
error 2: (2) No such file or directory
P.S - This seems to be ficed in Hammer and I do get ecxpected error emssage -
jenkins@host-44-0-2-109:~> rados -p data mkpool data
error creating pool data: (17) File exists
Updated by Sage Weil about 9 years ago
- Status changed from New to Won't Fix
If it's fixed in hammer is this improtant to fix in firefly? would prefer not to futz with return codes if we can avoid it.