Project

General

Profile

Actions

Bug #11340

closed

rados mkpool works for duplicate pool names in firefly

Added by Kapil Sharma about 9 years ago. Updated about 9 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
ceph cli
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rados
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions #1

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.

Actions

Also available in: Atom PDF