[Bug 1914584] [NEW] radosgw-admin user create error message confusing if user with email already exists

Matthew Vernon 1914584 at bugs.launchpad.net
Thu Feb 4 11:27:22 UTC 2021


Public bug reported:

Hi,

The error message if you try and create an S3 user with an email address
that is already associated with another S3 account is very confusing.

To reproduce:

radosgw-admin user create --uid=foo --display-name="Foo test" --email=bar at domain.invalid
#[ success ]
radosgw-admin user create --uid=test --display-name="AN test" --email=bar at domain.invalid
could not create user: unable to parse parameters, user id mismatch, operation id: foo does not match: test

I've reported this upstream as https://tracker.ceph.com/issues/49137 and
will send a patch against master there in due course, but that won't get
backported to Luminous.

I attach a patch that improves the error message thus:
radosgw-admin user create --uid=test --display-name="AN test" --email=bar at domain.invalid
could not create user: unable to create user test because user id foo already exists with email bar at domain.invalid

Could this be applied to the luminous Ceph packages you ship please?

Thanks,

Matthew

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ceph-common 12.2.13-0ubuntu0.18.04.6
ProcVersionSignature: Ubuntu 4.15.0-106.107-generic 4.15.18
Uname: Linux 4.15.0-106-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.23
Architecture: amd64
Date: Thu Feb  4 11:13:55 2021
ProcEnviron:
 LANG=en_US.UTF-8
 TERM=xterm
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, no user)
SourcePackage: ceph
UpgradeStatus: Upgraded to bionic on 2018-11-20 (807 days ago)
modified.conffile..etc.logrotate.d.ceph-common: [modified]
mtime.conffile..etc.default.ceph: 2018-03-13T17:08:17.501935
mtime.conffile..etc.logrotate.d.ceph-common: 2019-06-17T16:40:55.496716

** Affects: ceph
     Importance: Unknown
         Status: Unknown

** Affects: ceph (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

** Patch added: "Patch to improve error message"
   https://bugs.launchpad.net/bugs/1914584/+attachment/5459939/+files/rgw-admin-message-fix.diff

** Bug watch added: tracker.ceph.com/issues #49137
   http://tracker.ceph.com/issues/49137

** Also affects: ceph via
   http://tracker.ceph.com/issues/49137
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1914584

Title:
  radosgw-admin user create error message confusing if user with email
  already exists

Status in Ceph:
  Unknown
Status in ceph package in Ubuntu:
  New

Bug description:
  Hi,

  The error message if you try and create an S3 user with an email
  address that is already associated with another S3 account is very
  confusing.

  To reproduce:

  radosgw-admin user create --uid=foo --display-name="Foo test" --email=bar at domain.invalid
  #[ success ]
  radosgw-admin user create --uid=test --display-name="AN test" --email=bar at domain.invalid
  could not create user: unable to parse parameters, user id mismatch, operation id: foo does not match: test

  I've reported this upstream as https://tracker.ceph.com/issues/49137
  and will send a patch against master there in due course, but that
  won't get backported to Luminous.

  I attach a patch that improves the error message thus:
  radosgw-admin user create --uid=test --display-name="AN test" --email=bar at domain.invalid
  could not create user: unable to create user test because user id foo already exists with email bar at domain.invalid

  Could this be applied to the luminous Ceph packages you ship please?

  Thanks,

  Matthew

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: ceph-common 12.2.13-0ubuntu0.18.04.6
  ProcVersionSignature: Ubuntu 4.15.0-106.107-generic 4.15.18
  Uname: Linux 4.15.0-106-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.23
  Architecture: amd64
  Date: Thu Feb  4 11:13:55 2021
  ProcEnviron:
   LANG=en_US.UTF-8
   TERM=xterm
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
   PATH=(custom, no user)
  SourcePackage: ceph
  UpgradeStatus: Upgraded to bionic on 2018-11-20 (807 days ago)
  modified.conffile..etc.logrotate.d.ceph-common: [modified]
  mtime.conffile..etc.default.ceph: 2018-03-13T17:08:17.501935
  mtime.conffile..etc.logrotate.d.ceph-common: 2019-06-17T16:40:55.496716

To manage notifications about this bug go to:
https://bugs.launchpad.net/ceph/+bug/1914584/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list