Skip to contentSkip to conversation

radosgw-admin: mildly confusing man page and usage message

DISCUSSION Florian Haas 2 participants 3 messages Jun 11, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

just noticed that radosgw-admin comes with a bit of confusing content in its man page and usage message:

EXAMPLES
Generate a new user:

$ radosgw-admin user gen --display-name="johnny rotten"
[email protected]

As far as I remember "user gen" is gone, and it's now "user create". However:

radosgw-admin user create --display-name="test" --email=test@demo user_id was not specified, aborting

... is followed by a usage message that doesn't mention user_id anywhere (the option string is --uid). So conceivably the example could also use a mention of --uid.

Also, is there a way to retrieve the "next available" user_id or just tell radosgw-admin to use max(user_id)+1?

If one of the Ceph guys could provide a quick comment on this, I can send a patch to the man page RST. Thanks.

Cheers,
Florian

#1 lore raw
Quoted 21 lines · Florian Haas

Hi,

just noticed that radosgw-admin comes with a bit of confusing content in its man page and usage message:

EXAMPLES
      Generate a new user:

      $ radosgw-admin user gen --display-name="johnny rotten"
[email protected]

As far as I remember "user gen" is gone, and it's now "user create". However:

radosgw-admin user create --display-name="test" --email=test@demo user_id was not specified, aborting

... is followed by a usage message that doesn't mention user_id anywhere (the option string is --uid). So conceivably the example could also use a mention of --uid.

Quoted 6 lines

Also, is there a way to retrieve the "next available" user_id or just tell radosgw-admin to use max(user_id)+1?

If one of the Ceph guys could provide a quick comment on this, I can send a patch to the man page RST. Thanks.

Minimum required to create a user:

radosgw-admin user create --uid=<user id> --display-name=<display name>

The user id is actually a user 'account' name, not necessarily a numeric value. The email param is optional.

Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 10 lines · Yehuda Sadeh
Quoted 3 lines

If one of the Ceph guys could provide a quick comment on this, I can send a patch to the man page RST. Thanks.

Minimum required to create a user:

radosgw-admin user create --uid=<user id> --display-name=<display name>

The user id is actually a user 'account' name, not necessarily a numeric value. The email param is optional.

Thanks. https://github.com/ceph/ceph/pull/13

Cheers,
Florian