[SRU] radosgw-admin user create error message confusing if user with email already exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph |
Unknown
|
Unknown
|
|||
Ubuntu Cloud Archive |
Fix Released
|
Low
|
Unassigned | ||
Queens |
Won't Fix
|
Low
|
Unassigned | ||
Rocky |
Won't Fix
|
Low
|
Unassigned | ||
Stein |
Won't Fix
|
Low
|
Unassigned | ||
Train |
Won't Fix
|
Low
|
Unassigned | ||
Ussuri |
New
|
Low
|
Unassigned | ||
Victoria |
New
|
Low
|
Unassigned | ||
ceph (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Unassigned | ||
Focal |
Won't Fix
|
Low
|
Unassigned | ||
Groovy |
Won't Fix
|
Low
|
Unassigned | ||
Hirsute |
Won't Fix
|
Low
|
Unassigned |
Bug Description
[Impact]
When creating a new S3 user, the error message is confusing if the email address used is already associated with another S3 account.
To reproduce:
radosgw-admin user create --uid=foo --display-name="Foo test" --<email address hidden>
#[ success ]
radosgw-admin user create --uid=test --display-name="AN test" --<email address hidden>
could not create user: unable to parse parameters, user id mismatch, operation id: foo does not match: test
As a result, it's completely unclear what went wrong with the user creation.
[Test case]
Create an S3 account via radosgw-admin. Then create another user but use
the same email address - it should provide a clear description of what
the problem is.
[Where problems could occur]
The new message may yet be unclear or could complain that an email exists even though it doesn't exist (false positive). It's an improved diagnostic by checking if the email id exists. Perhaps, user creation might become problematic if the fix doesn't work.
[Other Info]
- The patch was provided by Matthew Vernon (attached here)
- Upstream tracker: https:/
- Upstream PR: https:/
- Backported to Pacific, Octopus, and Nautilus upstream releases. Luminous is EOL'ed upstream, so we'd like to backport to Luminous (Bionic/queens).
CVE References
Changed in ceph (Ubuntu Bionic): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in ceph (Ubuntu Focal): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in ceph (Ubuntu Groovy): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in ceph (Ubuntu Hirsute): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
tags: |
added: verification-failed verification-failed-focal verification-failed-groovy removed: verification-needed verification-needed-focal verification-needed-groovy |
tags: |
added: verification-ussuri-failed removed: verification-ussuri-needed |
Changed in cloud-archive: | |
status: | Fix Released → New |
Changed in ceph (Ubuntu): | |
status: | Fix Released → New |
Changed in ceph (Ubuntu Bionic): | |
status: | Triaged → New |
Changed in ceph (Ubuntu Focal): | |
status: | Fix Released → New |
Changed in ceph (Ubuntu Groovy): | |
status: | Fix Released → New |
Changed in ceph (Ubuntu Hirsute): | |
status: | Fix Released → New |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in ceph (Ubuntu): | |
status: | New → Fix Released |
Changed in ceph (Ubuntu Bionic): | |
status: | New → Fix Released |
Changed in ceph (Ubuntu Focal): | |
status: | New → Fix Released |
Changed in ceph (Ubuntu Groovy): | |
status: | New → Fix Released |
Changed in ceph (Ubuntu Hirsute): | |
status: | New → Fix Released |
The attachment "Patch to improve error message" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]