commit 74fe8858a5f19f8bf49bbd451fdec9feaa2283b9
Author: Edward Hope-Morley <email address hidden>
Date: Wed Jun 7 14:14:14 2023 +0100
Make role-cache-expiration configurable
We use a default expiration_time (dogpile-expiration-time)
of 600s which means that role assignments will take up to
this amount of time before all caches are updated to
reflect changes. This may not be suitable for some clouds
that make frequent changes to role assignments and lowering
the global value is not recommended so this overrides the
[role] cache_time to a more appropriate value and also
makes it configurable. We leave default value as None so
that the global value is still inherited but this at least
allows it to be customised.
Change-Id: I49e46e010c543f831959581b2122f59068f2c07b
Closes-Bug: #1771114
(cherry picked from commit 0cb787bb9d2e8a5c87821646f2387ae1f2dcd8a0)
Reviewed: https:/ /review. opendev. org/c/openstack /charm- keystone/ +/886494 /opendev. org/openstack/ charm-keystone/ commit/ 74fe8858a5f19f8 bf49bbd451fdec9 feaa2283b9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/yoga
commit 74fe8858a5f19f8 bf49bbd451fdec9 feaa2283b9
Author: Edward Hope-Morley <email address hidden>
Date: Wed Jun 7 14:14:14 2023 +0100
Make role-cache- expiration configurable
We use a default expiration_time (dogpile- expiration- time)
of 600s which means that role assignments will take up to
this amount of time before all caches are updated to
reflect changes. This may not be suitable for some clouds
that make frequent changes to role assignments and lowering
the global value is not recommended so this overrides the
[role] cache_time to a more appropriate value and also
makes it configurable. We leave default value as None so
that the global value is still inherited but this at least
allows it to be customised.
Change-Id: I49e46e010c543f 831959581b2122f 59068f2c07b c87821646f2387a e1f2dcd8a0)
Closes-Bug: #1771114
(cherry picked from commit 0cb787bb9d2e8a5