Add image_member_quota to Glance API configuration
Allow the configuration of image_member_quota in Glance API. This error blocks the ability of sharing images if the default value (128) is reached. Closes-bug: 1724879 Change-Id: Idc72c85943baf3d720500d2c30a813663f2927da
This commit is contained in:
parent
7ca105a684
commit
72984f9f12
|
@ -190,6 +190,10 @@
|
|||
# (optional) Base directory that the Image Cache uses.
|
||||
# Defaults to '/var/lib/glance/image-cache'.
|
||||
#
|
||||
# [*image_member_quota*]
|
||||
# (optional) The maximum number of image members allowed per image.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*task_time_to_live*]
|
||||
# (optional) Time in hours for which a task lives after.
|
||||
# Defaults to $::os_service_default
|
||||
|
@ -324,6 +328,7 @@ class glance::api(
|
|||
$image_cache_max_size = $::os_service_default,
|
||||
$image_cache_stall_time = $::os_service_default,
|
||||
$image_cache_dir = '/var/lib/glance/image-cache',
|
||||
$image_member_quota = $::os_service_default,
|
||||
$task_time_to_live = $::os_service_default,
|
||||
$task_executor = $::os_service_default,
|
||||
$task_work_dir = $::os_service_default,
|
||||
|
@ -375,6 +380,7 @@ 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_member_quota': value => $image_member_quota;
|
||||
'DEFAULT/enable_v1_api': value => $enable_v1_api;
|
||||
'DEFAULT/enable_v2_api': value => $enable_v2_api;
|
||||
'DEFAULT/limit_param_default': value => $limit_param_default;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
fixes:
|
||||
- Allow the configuration of image_member_quota
|
||||
in Glance API. This error blocks the ability
|
||||
of sharing images if the default value (128)
|
||||
is reached.
|
|
@ -32,6 +32,7 @@ describe 'glance::api' do
|
|||
:scrub_time => '<SERVICE DEFAULT>',
|
||||
:default_store => false,
|
||||
:image_cache_dir => '/var/lib/glance/image-cache',
|
||||
:image_member_quota => '<SERVICE DEFAULT>',
|
||||
:image_cache_stall_time => '<SERVICE DEFAULT>',
|
||||
:image_cache_max_size => '<SERVICE DEFAULT>',
|
||||
:os_region_name => 'RegionOne',
|
||||
|
@ -69,6 +70,7 @@ describe 'glance::api' do
|
|||
:delayed_delete => 'true',
|
||||
:scrub_time => '10',
|
||||
:image_cache_dir => '/tmp/glance',
|
||||
:image_member_quota => '128',
|
||||
:image_cache_stall_time => '10',
|
||||
:image_cache_max_size => '10737418240',
|
||||
:os_region_name => 'RegionOne2',
|
||||
|
@ -126,6 +128,7 @@ describe 'glance::api' do
|
|||
'delayed_delete',
|
||||
'scrub_time',
|
||||
'image_cache_dir',
|
||||
'image_member_quota',
|
||||
'enable_v1_api',
|
||||
'enable_v2_api',
|
||||
'limit_param_default',
|
||||
|
|
Loading…
Reference in New Issue