OpenStack Havana flush token manually
It has always been a huge pain to manage token in MySQL espacially with PKI token since they are larger than UUID token. Almost a year ago I wrote an article to purge token via a script. So finally, we have an easy option to purge all expired token.
$ sudo keystone-manage token_flush |
Script to execute periodically:
|
For those of you who are curious this is what the command does:
DELETE FROM token WHERE token.expires < %s' (datetime.datetime(2013, 11, 19, 15, 20, 26, 115332),)
Where 2013, 11, 19, 15, 20, 26, 115332
are your current date and time.
Hope it helps!
Comments