Using os_token

Eric K. Miller emiller at genesishosting.com
Fri Aug 21 07:43:04 UTC 2020


Hi,

 

It looks like the OS_TOKEN environment variable can be set so a token
can be re-used instead of a new authentication for each CLI command with
the OpenStack Client.  I'm a little confused as to how this works and
haven't found any good documentation on the subject.

 

I would have expected to be able to:

0) set appropriate OS_* variables for password authentication 

1) create a token using "openstack token issue"

2) unset all OS_* environment variables

3) set OS_TOKEN to the token's value provided in #1

4) set OS_AUTH_TYPE to "v3token"

5) set OS_AUTH_URL to the respective KeyStone endpoint

6) set OS_IDENTITY_API_VERSION to "3"

7) use the CLI as normal

 

However, I get a "The service catalog is empty." message.  Maybe I'm
missing something above or am I completely misunderstanding the purpose
of the OS_TOKEN variable?

 

>From examples I have seen, it looks like the token can be used in a REST
API call.  Is there a way to use an existing token with the CLI,
instead, so a new token is not issued for every CLI command
instantiation?

 

Thanks!

 

Eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200821/d520d11e/attachment.html>


More information about the openstack-discuss mailing list