[openstack-dev] [keystone]How do we avoid token expired?

Clark Boylan cboylan at sapwetik.org
Sun Dec 20 19:22:01 UTC 2015

On Sun, Dec 20, 2015, at 07:43 AM, zhu4236926 wrote:
> Hi guys,
>     I'm using cinder-clinet to backup a volume and query the status of
>     the backup-volume in a loop per 3 seconds. I got the token from
>     keystone when I begin to backup the volume,assuming that the token is
>     expired in 2 minutes, but the backup need 5 minutes to finish, so
>     after 3 minutes the token is expired and authentication-failed, how
>     should I solve this problems by using cinder-client or
>     keystone-client, or could you provide other solution to avoid this
>     problems.
I believe that if you use a keystoneauth session [0] that it will renew
tokens that are near to expiring or have already expired. Support is per
client so you will need to check if cinderclient supports this and if
not probably add support first.

[0] http://docs.openstack.org/developer/keystoneauth/using-sessions.html

Hope this helps,

More information about the OpenStack-dev mailing list