Ask Your Question

How to clear token in Neutron client?

asked 2014-09-28 22:39:26 -0500

wangrich gravatar image

updated 2014-09-29 08:50:38 -0500

Neutron client will need a token to request for creating a port on tenant-network to Neutron server. The token-requesting process has succeed before, so the token might be cached.

Now I want to clear all the cached tokens. Is that possible? Or how can I force the Keystone server to reset all the tokens?

Thank you!


In my deployment, the Neutron client and server are on different hosts. So it might not helpful to remove the token files from server side. What I want is removing the cached tokens from the client side, which might keep the token unchanged but force the client request for it before sending port-creating request.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-09-29 00:05:16 -0500

Vinoth gravatar image


rm -rf /var/lib/neutron/keystone-signing

edit flag offensive delete link more


It might be useful in removing the files from server side. But what I need is delete token cache from client side. And in my deployment the server and client are on different hosts.

wangrich gravatar imagewangrich ( 2014-09-29 08:47:05 -0500 )edit

answered 2014-09-29 01:37:00 -0500

tim gravatar image

Try, keystone-manage token flush

You might want to read a little bit about it before using it. I havana there is a bug in keystone. Keystone won't delete the expired tokens so the table will get big. It is recommended to clean it once in a while.

edit flag offensive delete link more


I checked the log and found the token cache was still there. The log did not show the client requested for token before port-creating request - it just used the cached one.

wangrich gravatar imagewangrich ( 2014-09-29 08:48:21 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-28 22:39:26 -0500

Seen: 623 times

Last updated: Sep 29 '14