The previously introduced token caching mechanism [1] reduces token
requests to subclouds and also effectively handles Keystone endpoint
caching, as the endpoint catalog is cached alongside tokens.
This commit applies the endpoint_cache logic to DCCertmon.
[1] https://review.opendev.org/c/starlingx/distcloud/+/931830
Test Plan:
- PASS: Deploy a subcloud, manage it and verify that the dc-cert
status is updated to in-sync.
- PASS: In the systemcontroller, delete the secret for the
adminep-ca-certificate of a managed subcloud and verify that
it is updated both on the system controller and the subcloud.
- PASS: Deploy a subcloud and wait for dccertmon to audit. Turn off
the subcloud and wait an hour after turning it on. Verify it
is audited correctly and the dc-cert status is updated to
in-sync.
Story: 2011311
Task: 52382
Change-Id: If2d05a1e3b6ac0466b8a15c70c6b8ada851a009f
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>