What -s option is for, in add-account & add-user CLIs,What is the usecase

Asked by pushpesh

This is What Usage info says,

-s SUFFIX, --suffix=SUFFIX
                        The suffix to use with the reseller prefix as the
                        storage account name (default: <randomly-generated-
                        uuid4>) Note: If the account already exists, this will
                        have no effect on existing service URLs. Those will
                        need to be updated with gswauth-set-account-service

I did the following:

# gswauth-prep -K gswauthkey
# gswauth-add-account test -s crap -K gswauthkey
# gswauth-add-user test admin testing -s crapadmin -K gswauthkey
# gswauth-add-user -a test admin testing -s crapadmin -K gswauthkey
# gswauth-add-user -r test re_admin testing -s crapreadmin -K gswauthkey
# gswauth-add-user test tester testing -s testerscrap -K gswauthkey
#gswauth-list --json test -K gswauthkey
{"services": {"storage": {"default": "local", "local": "http://127.0.0.1:8080/v1/AUTH_test"}}, "account_id": "AUTH_test", "users": [{"name": "admin"}, {"name": "re_admin"}, {"name": "tester"}]}

I am not able to see where suffix is placed.Or will be be used somewhere?

Revision history for this message
Thiago da Silva (thiagodasilva) said :
#1

In the original version of swauth, admin users had the option of defining the account suffix, such that the account would be accessed like this AUTH_suffix. This suffix would then map to the actual account id.

 In the current version of gswauth, the account name must directly map to the gluster volume, so we removed the option and all accounts are accessed by their volume name (e.g., AUTH_test)

Revision history for this message
Luis Pabón (lpabon) said :
#2

Luis Pabon suggests this article as an answer to your question:
FAQ #2472: “What -s option is for, in add-account & add-user CLIs,What is the usecase”.

Can you help with this problem?

Provide an answer of your own, or ask pushpesh for more information if necessary.

To post a message you must log in.