From 78d5ecad86991badd971a95b7eb99640920933ed Mon Sep 17 00:00:00 2001 From: Arne Wiebalck Date: Fri, 20 Jul 2018 10:34:35 +0200 Subject: [PATCH] Add support for sync_power_state_pool_size param Change-Id: I31f9e58b82564cc35776846f8595adcdf59906ae --- manifests/compute.pp | 6 ++++++ ...d_sync_power_state_pool_size_param-e61b3860a4e9b806.yaml | 4 ++++ spec/classes/nova_compute_spec.rb | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/add_sync_power_state_pool_size_param-e61b3860a4e9b806.yaml diff --git a/manifests/compute.pp b/manifests/compute.pp index 9914987a5..c28d53ff3 100644 --- a/manifests/compute.pp +++ b/manifests/compute.pp @@ -143,6 +143,10 @@ # (optional) Maximum number of live migrations to run in parallel. # Defaults to $::os_service_default # +# [*sync_power_state_pool_size*] +# (optional) Maximum number of greenthreads to use when syncing power states. +# Defaults to $::os_service_default +# # [*consecutive_build_service_disable_threshold*] # (optional) Max number of consecutive build failures before the nova-compute # will disable itself. @@ -201,6 +205,7 @@ class nova::compute ( $barbican_endpoint = $::os_service_default, $barbican_api_version = $::os_service_default, $max_concurrent_live_migrations = $::os_service_default, + $sync_power_state_pool_size = $::os_service_default, $consecutive_build_service_disable_threshold = $::os_service_default, $keymgr_backend = 'nova.keymgr.conf_key_mgr.ConfKeyManager', $verify_glance_signatures = $::os_service_default, @@ -262,6 +267,7 @@ class nova::compute ( 'barbican/barbican_endpoint': value => $barbican_endpoint; 'barbican/barbican_api_version': value => $barbican_api_version; 'DEFAULT/max_concurrent_live_migrations': value => $max_concurrent_live_migrations; + 'DEFAULT/sync_power_state_pool_size': value => $sync_power_state_pool_size; 'compute/consecutive_build_service_disable_threshold': value => $consecutive_build_service_disable_threshold; } diff --git a/releasenotes/notes/add_sync_power_state_pool_size_param-e61b3860a4e9b806.yaml b/releasenotes/notes/add_sync_power_state_pool_size_param-e61b3860a4e9b806.yaml new file mode 100644 index 000000000..bba76dbda --- /dev/null +++ b/releasenotes/notes/add_sync_power_state_pool_size_param-e61b3860a4e9b806.yaml @@ -0,0 +1,4 @@ +--- +features: + - Add sync_power_state_pool_size as a parameter to nova::compute. + diff --git a/spec/classes/nova_compute_spec.rb b/spec/classes/nova_compute_spec.rb index ac84c78ec..881ab3683 100644 --- a/spec/classes/nova_compute_spec.rb +++ b/spec/classes/nova_compute_spec.rb @@ -36,6 +36,7 @@ describe 'nova::compute' do it { is_expected.to contain_nova_config('barbican/auth_endpoint').with_value('') } it { is_expected.to contain_nova_config('glance/verify_glance_signatures').with_value('') } it { is_expected.to contain_nova_config('DEFAULT/max_concurrent_live_migrations').with_value('') } + it { is_expected.to contain_nova_config('DEFAULT/sync_power_state_pool_size').with_value('') } it { is_expected.to contain_nova_config('compute/consecutive_build_service_disable_threshold').with_value('') } it { is_expected.to contain_nova_config('DEFAULT/reserved_huge_pages').with_value('') } @@ -83,6 +84,7 @@ describe 'nova::compute' do :barbican_api_version => 'v1', :barbican_auth_endpoint => 'http://127.0.0.1:5000/v3', :max_concurrent_live_migrations => '4', + :sync_power_state_pool_size => '10', :verify_glance_signatures => true, :consecutive_build_service_disable_threshold => '9', } @@ -140,6 +142,8 @@ describe 'nova::compute' do it { is_expected.to contain_nova_config('DEFAULT/max_concurrent_live_migrations').with_value('4') } + it { is_expected.to contain_nova_config('DEFAULT/sync_power_state_pool_size').with_value('10') } + it { is_expected.to contain_nova_config('compute/consecutive_build_service_disable_threshold').with_value('9') } it { is_expected.to contain_nova_config('DEFAULT/resume_guests_state_on_host_boot').with_value(true) }