Add configuration options for the image cache
The Glance cache uses two conf files: 1. glance-api.conf is for the server and 2. glance-cache.conf is for the utilities. The following options are already in both configuration files but these need the same values otherwise the cache will potentially run into problems, - image_cache_dir - image_cache_max_size - image_cache_stall_time Enabling above parameters in both conf files wherever they are missing. Partial-Implements: blueprint split-controlplane-glance-cache Change-Id: I0d892663dd9aee86f56348175fd31016a17fabf5
This commit is contained in:
parent
a6c77dc381
commit
c8ce009bcd
@ -403,6 +403,8 @@ class glance::api(
|
||||
'DEFAULT/scrub_time': value => $scrub_time;
|
||||
'DEFAULT/delayed_delete': value => $delayed_delete;
|
||||
'DEFAULT/image_cache_dir': value => $image_cache_dir;
|
||||
'DEFAULT/image_cache_stall_time': value => $image_cache_stall_time;
|
||||
'DEFAULT/image_cache_max_size': value => $image_cache_max_size;
|
||||
'DEFAULT/enabled_import_methods': value => $enabled_import_methods_real;
|
||||
'DEFAULT/node_staging_uri': value => $node_staging_uri;
|
||||
'DEFAULT/image_member_quota': value => $image_member_quota;
|
||||
@ -475,6 +477,7 @@ class glance::api(
|
||||
}
|
||||
|
||||
glance_cache_config {
|
||||
'DEFAULT/image_cache_dir': value => $image_cache_dir;
|
||||
'DEFAULT/image_cache_stall_time': value => $image_cache_stall_time;
|
||||
'DEFAULT/image_cache_max_size': value => $image_cache_max_size;
|
||||
'glance_store/os_region_name': value => $os_region_name;
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- Enabled image_cache_stall_time & image_cache_max_size in
|
||||
glance-api.conf & image_cache_dir in glance-cache.conf, as
|
||||
these parameters need the same values in both conf files,
|
||||
otherwise the cache will potentially run into problems.
|
@ -136,6 +136,8 @@ describe 'glance::api' do
|
||||
'delayed_delete',
|
||||
'scrub_time',
|
||||
'image_cache_dir',
|
||||
'image_cache_stall_time',
|
||||
'image_cache_max_size',
|
||||
'node_staging_uri',
|
||||
'image_member_quota',
|
||||
'enable_v1_api',
|
||||
@ -170,6 +172,7 @@ describe 'glance::api' do
|
||||
[
|
||||
'registry_host',
|
||||
'registry_port',
|
||||
'image_cache_dir',
|
||||
'image_cache_stall_time',
|
||||
'image_cache_max_size',
|
||||
].each do |config|
|
||||
|
Loading…
Reference in New Issue
Block a user