conductor should cache barbican certs for periodic tasks

Bug #1659545 reported by Ricardo Rocha
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Kirsten G.

Bug Description

When running the periodic tasks the Magnum conductor gets each cluster's certificate to contact them and perform some checks. This is ok, but as we increase the number of clusters it seems to do quite a few queries to Barbican in sequence, and every time the periodic tasks run.

Looking forward it might be a good idea to cache the certs in the conductor after retrieval from Barbican? This should prevent too much load in the future as the number of clusters increases.

Kirsten G. (oikiki)
Changed in magnum:
assignee: nobody → Kirsten G. (oikiki)
Kirsten G. (oikiki)
Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/534364

Changed in magnum:
assignee: Kirsten G. (oikiki) → Spyros Trigazis (strigazi)
Changed in magnum:
assignee: Spyros Trigazis (strigazi) → Kirsten G. (oikiki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/534364
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=d9e590bdc615e0c23b790a65023d01a9e9611176
Submitter: Zuul
Branch: master

commit d9e590bdc615e0c23b790a65023d01a9e9611176
Author: Kirsten G <email address hidden>
Date: Mon Jan 15 22:04:49 2018 -0800

    Cache barbican certs for periodic tasks

    Added configuration parameter, temp_cache_dir, to magnum.conf with
    default value of "/var/lib/magnum/certificate-cache". This local
    directory will hold cached cluster TLS credentials that are generated
    during periodic tasks, to reduce load as the number of clusters
    increases. If the temp_cache_dir does not exist, the certificates
    will be created as tempfiles.

    Closes-Bug: #1659545

    Change-Id: I8808c4098a7c8d22dbfc841142c9f9c8b976dde1

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 7.0.0

This issue was fixed in the openstack/magnum 7.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.