Project

General

Profile

Actions

Bug #19411

open

radosgw-admin create user sometimes shows details of existing user instead of creating a new one / fail with error

Added by Matthew Vernon about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Target version:
-
% Done:

0%

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

Description

radosgw-admin create user sometimes seem to misbehave when trying to create similarly-named accounts with the same email address:

radosgw-admin -n client.rgw.sto-1-2 user create --uid=XXXDELETEME --display-name=carthago --email=hc7 at sanger.ac.uk {
"user_id": "XXXDELETEME",
[...]

radosgw-admin -n client.rgw.sto-1-2 user create --uid=DELETEME --display-name=carthago --email=hc7 at sanger.ac.uk {
"user_id": "XXXDELETEME",
[...]

This second command should surely say
"could not create user: unable to create user, email: hc7 at sanger.ac.uk is the email address an existing user"
Rather than returning the credential of a different uid?

I tripped over this when doing some testing, and it confused my script because it was expecting the 'create' to fail...

Actions #1

Updated by Yehuda Sadeh about 7 years ago

  • Assignee set to Orit Wasserman
Actions

Also available in: Atom PDF