Ask Your Question

keystone keep creating new token for the same user

asked 2013-06-04 22:11:04 -0500

chen-li gravatar image

Every time I run command "keystone user-list", keystone will create a new token for me. This make my keystone database size increase really fast. Isn't a token can valid for 24 hours? Why it just reply me the token created by first command?

Thanks. -chen

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-09 07:12:39 -0500

darragh-oreilly gravatar image

The keystone CLI can reuse tokens:

$ keystone --help
  --os-token <service-token>
                        Specify an existing token to use instead of retrieving
                        one via authentication (e.g. with username &
                        password). Defaults to env[OS_SERVICE_TOKEN]

And the same goes for the other clients (nova, quantum, etc)

edit flag offensive delete link more


Its right that clients can cache and re-use the token but Question was about re-use of token in keystone itself. Say client requests for new token, keystone can get one from its DB if it already exists. It doesnot.. why!!

ravivsn gravatar imageravivsn ( 2013-06-13 18:53:17 -0500 )edit

Ok, I see. I don't know why. But my answer does prevent the problem in the question of the DB filling up.

darragh-oreilly gravatar imagedarragh-oreilly ( 2013-06-14 05:14:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-06-04 22:11:04 -0500

Seen: 296 times

Last updated: Jun 09 '13