Add parameter to set the libvirt max_number of guests with encrypted memory
Depends-On: https://review.opendev.org/c/openstack/nova/+/666616 Change-Id: I92af8c82febbcdd09512aa05130e9bba0b21e83f
This commit is contained in:
parent
a0a5349796
commit
6d1bad02a9
@ -210,6 +210,11 @@
|
||||
# based on the reported kernel major version will be used.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*num_memory_encrypted_guests*]
|
||||
# (optional) The maximum number of guests with encrypted memory which can
|
||||
# run concurrently on this compute host.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
class nova::compute::libvirt (
|
||||
$ensure_package = 'present',
|
||||
$virt_type = 'kvm',
|
||||
@ -250,6 +255,7 @@ class nova::compute::libvirt (
|
||||
$tls_priority = undef,
|
||||
$ovs_timeout = undef,
|
||||
$max_queues = $::os_service_default,
|
||||
$num_memory_encrypted_guests = $::os_service_default,
|
||||
) inherits nova::params {
|
||||
|
||||
include nova::deps
|
||||
@ -402,6 +408,7 @@ class nova::compute::libvirt (
|
||||
'libvirt/swtpm_user' : value => $swtpm_user;
|
||||
'libvirt/swtpm_group': value => $swtpm_group;
|
||||
'libvirt/max_queues': value => $max_queues;
|
||||
'libvirt/num_memory_encrypted_guests': value => $num_memory_encrypted_guests;
|
||||
}
|
||||
|
||||
validate_legacy(Array, 'validate_array', $cpu_models)
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds parameter nova::compute::libvirt::num_memory_encrypted_guests
|
||||
to configure the libvirt maximum number of guests with encrypted memory.
|
@ -69,6 +69,7 @@ describe 'nova::compute::libvirt' do
|
||||
it { is_expected.to contain_nova_config('libvirt/swtpm_user').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/swtpm_group').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/max_queues').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/num_memory_encrypted_guests').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_libvirtd_config('log_outputs').with_ensure('absent')}
|
||||
it { is_expected.to contain_libvirtd_config('log_filters').with_ensure('absent')}
|
||||
it { is_expected.to contain_libvirtd_config('tls_priority').with_ensure('absent')}
|
||||
@ -110,6 +111,7 @@ describe 'nova::compute::libvirt' do
|
||||
:tls_priority => 'NORMAL:-VERS-SSL3.0',
|
||||
:ovs_timeout => 10,
|
||||
:max_queues => 4,
|
||||
:num_memory_encrypted_guests => 255,
|
||||
}
|
||||
end
|
||||
|
||||
@ -142,6 +144,7 @@ describe 'nova::compute::libvirt' do
|
||||
it { is_expected.to contain_nova_config('libvirt/swtpm_user').with_value('libvirt')}
|
||||
it { is_expected.to contain_nova_config('libvirt/swtpm_group').with_value('libvirt')}
|
||||
it { is_expected.to contain_nova_config('libvirt/max_queues').with_value(4)}
|
||||
it { is_expected.to contain_nova_config('libvirt/num_memory_encrypted_guests').with_value(255)}
|
||||
it { is_expected.to contain_libvirtd_config('log_outputs').with_value('"1:file:/var/log/libvirt/libvirtd.log"')}
|
||||
it { is_expected.to contain_libvirtd_config('log_filters').with_value('"1:qemu"')}
|
||||
it { is_expected.to contain_libvirtd_config('tls_priority').with_value('"NORMAL:-VERS-SSL3.0"')}
|
||||
|
Loading…
Reference in New Issue
Block a user