Bug #19411
openradosgw-admin create user sometimes shows details of existing user instead of creating a new one / fail with error
0%
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...