Remove cache invalidation when using expired token
This can create a race condition for long running services that reuse
their token (eg. Kubernetes Cinder CSI plugin) in this case for
example:
1 [user] Asks nova to attach a volume to a server
2 ...the user's token expires
3 [user] Asks cinder if the volume has been attached
4 [nova] Asks cinder to attach the volume
In step 3 the token is marked as invalid in the cache and step 4 fails
even if allow_expired is true
Reviewed: https:/ /review. opendev. org/c/openstack /keystonemiddle ware/+/ 873924 /opendev. org/openstack/ keystonemiddlew are/commit/ 11eef7db7591d12 acbc9d6e449a871 ce21b76b94
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 11eef7db7591d12 acbc9d6e449a871 ce21b76b94
Author: Jorge Merlino <email address hidden>
Date: Wed Oct 5 14:41:06 2022 -0300
Remove cache invalidation when using expired token
This can create a race condition for long running services that reuse
their token (eg. Kubernetes Cinder CSI plugin) in this case for
example:
1 [user] Asks nova to attach a volume to a server
2 ...the user's token expires
3 [user] Asks cinder if the volume has been attached
4 [nova] Asks cinder to attach the volume
In step 3 the token is marked as invalid in the cache and step 4 fails
even if allow_expired is true
Closes-Bug: #1987355 baa370646ed70b5 e085c4af70e
Change-Id: Ice8e34440a5fe1