From 3f6bd98f087e9689fb235bb88284ac07b023cc92 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 30 Jul 2025 21:20:12 +0900 Subject: [PATCH] Add support for [DEFAULT] cell_worker_thread_pool_size ... which was added during this cycle. Depends-on: https://review.opendev.org/947966 Change-Id: I9c2ad06715e94aacd53e966e5d8ddf3ef9e7e165 Signed-off-by: Takashi Kajinami --- manifests/init.pp | 7 +++++++ .../cell_worker_thread_pool_size-0b0cb310bbcfcdbe.yaml | 4 ++++ spec/classes/nova_init_spec.rb | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/cell_worker_thread_pool_size-0b0cb310bbcfcdbe.yaml diff --git a/manifests/init.pp b/manifests/init.pp index 8e75fca26..1f112bebc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -346,6 +346,11 @@ # (optional) Template string to be used to generate instance names # Defaults to $facts['os_service_default'] # +# [*cell_worker_thread_pool_size*] +# (optional) The number of tasks that can run concurrently, one for each +# cell, for operations requires cross cell data gathering. +# Defaults to $facts['os_service_default'] +# # DEPRECATED PARAMETERS # # [*auth_strategy*] @@ -434,6 +439,7 @@ class nova( $my_ip = $facts['os_service_default'], $dhcp_domain = $facts['os_service_default'], $instance_name_template = $facts['os_service_default'], + $cell_worker_thread_pool_size = $facts['os_service_default'], # DEPRECATED PARAMETERS $auth_strategy = undef, $rabbit_heartbeat_in_pthread = undef, @@ -531,6 +537,7 @@ class nova( 'DEFAULT/initial_disk_allocation_ratio': value => $initial_disk_allocation_ratio; 'DEFAULT/dhcp_domain': value => $dhcp_domain; 'DEFAULT/instance_name_template': value => $instance_name_template; + 'DEFAULT/cell_worker_thread_pool_size': value => $cell_worker_thread_pool_size; } oslo::messaging::rabbit {'nova_config': diff --git a/releasenotes/notes/cell_worker_thread_pool_size-0b0cb310bbcfcdbe.yaml b/releasenotes/notes/cell_worker_thread_pool_size-0b0cb310bbcfcdbe.yaml new file mode 100644 index 000000000..8da21b8f1 --- /dev/null +++ b/releasenotes/notes/cell_worker_thread_pool_size-0b0cb310bbcfcdbe.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``nova::cell_worker_thread_pool_size`` parameter has been added. diff --git a/spec/classes/nova_init_spec.rb b/spec/classes/nova_init_spec.rb index 4000bc0ac..f8f57bb96 100644 --- a/spec/classes/nova_init_spec.rb +++ b/spec/classes/nova_init_spec.rb @@ -99,6 +99,7 @@ describe 'nova' do is_expected.to contain_nova_config('console/ssl_minimum_version').with_value('') is_expected.to contain_nova_config('DEFAULT/dhcp_domain').with_value('') is_expected.to contain_nova_config('DEFAULT/instance_name_template').with_value('') + is_expected.to contain_nova_config('DEFAULT/cell_worker_thread_pool_size').with_value('') end end @@ -164,6 +165,7 @@ describe 'nova' do :console_ssl_minimum_version => 'tlsv1_2', :dhcp_domain => 'foo', :instance_name_template => 'instance-%08x', + :cell_worker_thread_pool_size => 5, } end @@ -260,6 +262,7 @@ describe 'nova' do is_expected.to contain_nova_config('console/ssl_minimum_version').with_value('tlsv1_2') is_expected.to contain_nova_config('DEFAULT/dhcp_domain').with_value('foo') is_expected.to contain_nova_config('DEFAULT/instance_name_template').with_value('instance-%08x'); + is_expected.to contain_nova_config('DEFAULT/cell_worker_thread_pool_size').with_value(5); end context 'with multiple notification_driver' do