Add new conf parameter required for distribute image import
To support distributed image import new configuration parameter 'worker_self_reference_url' has been added. Adding support of 'worker_self_reference_url' parameter. Change-Id: Ib14a126bde1ecc2e55b0f5bace06a81c9cfa1011
This commit is contained in:
parent
a6c51c3232
commit
d05a5760c7
|
@ -146,6 +146,11 @@
|
|||
# stored when image import method is set to 'glance-direct'
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*worker_self_reference_url*]
|
||||
# (optional) The self-reference URL by which other workers will get to know
|
||||
# how to contact the worker which has staged the image.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*image_member_quota*]
|
||||
# (optional) The maximum number of image members allowed per image.
|
||||
# Defaults to $::os_service_default
|
||||
|
@ -350,6 +355,7 @@ class glance::api(
|
|||
$image_conversion_output_format = $::os_service_default,
|
||||
$enabled_import_methods = $::os_service_default,
|
||||
$node_staging_uri = $::os_service_default,
|
||||
$worker_self_reference_url = $::os_service_default,
|
||||
$image_member_quota = $::os_service_default,
|
||||
$task_time_to_live = $::os_service_default,
|
||||
$task_executor = $::os_service_default,
|
||||
|
@ -483,6 +489,7 @@ removed in a future realse. Use glance::api::db::database_max_overflow instead')
|
|||
'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/worker_self_reference_url': value => $worker_self_reference_url;
|
||||
'DEFAULT/image_member_quota': value => $image_member_quota;
|
||||
'DEFAULT/limit_param_default': value => $limit_param_default;
|
||||
'DEFAULT/api_limit_max': value => $api_limit_max;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Add 'worker_self_reference_url' parameter to allow other glance workers
|
||||
to contact the worker which has staged the image.
|
|
@ -30,6 +30,7 @@ describe 'glance::api' do
|
|||
:ignore_user_roles => '<SERVICE DEFAULT>',
|
||||
:enabled_import_methods => '<SERVICE DEFAULT>',
|
||||
:node_staging_uri => '<SERVICE DEFAULT>',
|
||||
:worker_self_reference_url => '<SERVICE DEFAULT>',
|
||||
:image_member_quota => '<SERVICE DEFAULT>',
|
||||
:image_cache_stall_time => '<SERVICE DEFAULT>',
|
||||
:image_cache_max_size => '<SERVICE DEFAULT>',
|
||||
|
@ -71,6 +72,7 @@ describe 'glance::api' do
|
|||
:ignore_user_roles => 'admin',
|
||||
:enabled_import_methods => 'glance-direct,web-download',
|
||||
:node_staging_uri => '/tmp/staging',
|
||||
:worker_self_reference_url => 'http://worker1',
|
||||
:image_member_quota => '128',
|
||||
:image_cache_stall_time => '10',
|
||||
:image_cache_max_size => '10737418240',
|
||||
|
@ -128,6 +130,7 @@ describe 'glance::api' do
|
|||
'image_cache_max_size',
|
||||
'cache_prefetcher_interval',
|
||||
'node_staging_uri',
|
||||
'worker_self_reference_url',
|
||||
'image_member_quota',
|
||||
'limit_param_default',
|
||||
'api_limit_max',
|
||||
|
|
Loading…
Reference in New Issue