From 07709c44f3615a8241e02ba4561f5dc39a2d88a3 Mon Sep 17 00:00:00 2001 From: Alan Bishop Date: Mon, 11 Feb 2019 12:24:51 -0500 Subject: [PATCH] Enable glance image cache's cleaner and pruner When glance's image cache is enabled, configure the cron jobs to periodically run the image cache's "cleaner" and "pruner". This ensures the cache contents is properly maintained, and does not exceed the size limit. blueprint: split-controlplane-glance-cache Change-Id: Ie358cce307420b5ec76bb95f90bc1ca7b97fe83b --- deployment/glance/glance-api-container-puppet.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment/glance/glance-api-container-puppet.yaml b/deployment/glance/glance-api-container-puppet.yaml index 960e522160..3381569812 100644 --- a/deployment/glance/glance-api-container-puppet.yaml +++ b/deployment/glance/glance-api-container-puppet.yaml @@ -435,6 +435,12 @@ outputs: - glance_netapp_nfs_enabled - include ::tripleo::profile::base::glance::netapp - '' + - if: + - glance_cache_enabled + - | + include ::glance::cache::cleaner + include ::glance::cache::pruner + - '' - {get_attr: [MySQLClient, role_data, step_config]} config_image: {get_param: DockerGlanceApiConfigImage} kolla_config: