Add node_staging_uri parameter
Adding node_staging_uri parameter to set the staging location to /var/lib/staging/glance instead of the default one /tmp/staging as it would be a shared across the nodes in case of 'glance-direct' image import method. Change-Id: Id9b35d5781448f22549d741ab797f656f96c6562 Closes-Bug: #1765439
This commit is contained in:
parent
3a09d6f040
commit
761b90937d
|
@ -190,6 +190,11 @@
|
|||
# (optional) Base directory that the Image Cache uses.
|
||||
# Defaults to '/var/lib/glance/image-cache'.
|
||||
#
|
||||
# [*node_staging_uri*]
|
||||
# (optional) The URL provides location where the temporary data will be
|
||||
# stored when image import method is set to 'glance-direct'
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*image_member_quota*]
|
||||
# (optional) The maximum number of image members allowed per image.
|
||||
# Defaults to $::os_service_default
|
||||
|
@ -343,6 +348,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',
|
||||
$node_staging_uri = $::os_service_default,
|
||||
$image_member_quota = $::os_service_default,
|
||||
$task_time_to_live = $::os_service_default,
|
||||
$task_executor = $::os_service_default,
|
||||
|
@ -398,6 +404,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/node_staging_uri': value => $node_staging_uri;
|
||||
'DEFAULT/image_member_quota': value => $image_member_quota;
|
||||
'DEFAULT/enable_v1_api': value => $enable_v1_api;
|
||||
'DEFAULT/enable_v2_api': value => $enable_v2_api;
|
||||
|
|
|
@ -32,6 +32,7 @@ describe 'glance::api' do
|
|||
:scrub_time => '<SERVICE DEFAULT>',
|
||||
:default_store => false,
|
||||
:image_cache_dir => '/var/lib/glance/image-cache',
|
||||
:node_staging_uri => '<SERVICE DEFAULT>',
|
||||
:image_member_quota => '<SERVICE DEFAULT>',
|
||||
:image_cache_stall_time => '<SERVICE DEFAULT>',
|
||||
:image_cache_max_size => '<SERVICE DEFAULT>',
|
||||
|
@ -70,6 +71,7 @@ describe 'glance::api' do
|
|||
:delayed_delete => 'true',
|
||||
:scrub_time => '10',
|
||||
:image_cache_dir => '/tmp/glance',
|
||||
:node_staging_uri => '/tmp/staging',
|
||||
:image_member_quota => '128',
|
||||
:image_cache_stall_time => '10',
|
||||
:image_cache_max_size => '10737418240',
|
||||
|
@ -128,6 +130,7 @@ describe 'glance::api' do
|
|||
'delayed_delete',
|
||||
'scrub_time',
|
||||
'image_cache_dir',
|
||||
'node_staging_uri',
|
||||
'image_member_quota',
|
||||
'enable_v1_api',
|
||||
'enable_v2_api',
|
||||
|
|
Loading…
Reference in New Issue