support for max_concurrent_live_migrations param
Change-Id: Id8f0de2b5b9dc8939f29c6b5469d0c7eccb7f844
This commit is contained in:
parent
4801dd0ce3
commit
65c063c205
|
@ -123,6 +123,10 @@
|
|||
# (optional) Barbican API version.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*max_concurrent_live_migrations*]
|
||||
# (optional) Maximum number of live migrations to run in parallel.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*default_availability_zone*]
|
||||
|
@ -170,6 +174,7 @@ class nova::compute (
|
|||
$barbican_auth_endpoint = $::os_service_default,
|
||||
$barbican_endpoint = $::os_service_default,
|
||||
$barbican_api_version = $::os_service_default,
|
||||
$max_concurrent_live_migrations = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
$default_availability_zone = undef,
|
||||
$default_schedule_zone = undef,
|
||||
|
@ -231,6 +236,7 @@ is used. It will be removed once Nova removes it.")
|
|||
'barbican/auth_endpoint': value => $barbican_auth_endpoint;
|
||||
'barbican/barbican_endpoint': value => $barbican_endpoint;
|
||||
'barbican/barbican_api_version': value => $barbican_api_version;
|
||||
'DEFAULT/max_concurrent_live_migrations': value => $max_concurrent_live_migrations;
|
||||
}
|
||||
|
||||
ensure_resource('nova_config', 'DEFAULT/allow_resize_to_same_host', { value => $allow_resize_to_same_host })
|
||||
|
|
|
@ -31,6 +31,7 @@ describe 'nova::compute' do
|
|||
it { is_expected.to contain_nova_config('barbican/barbican_endpoint').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('barbican/barbican_api_version').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('barbican/auth_endpoint').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('DEFAULT/max_concurrent_live_migrations').with_value('<SERVICE DEFAULT>') }
|
||||
|
||||
it { is_expected.to_not contain_package('cryptsetup').with( :ensure => 'present' )}
|
||||
|
||||
|
@ -77,6 +78,7 @@ describe 'nova::compute' do
|
|||
:barbican_endpoint => 'http://localhost',
|
||||
:barbican_api_version => 'v1',
|
||||
:barbican_auth_endpoint => 'http://127.0.0.1:5000/v3',
|
||||
:max_concurrent_live_migrations => '4',
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -129,6 +131,8 @@ describe 'nova::compute' do
|
|||
|
||||
it { is_expected.to contain_nova_config('DEFAULT/vcpu_pin_set').with(:value => '4-12,^8,15') }
|
||||
|
||||
it { is_expected.to contain_nova_config('DEFAULT/max_concurrent_live_migrations').with_value('4') }
|
||||
|
||||
it 'configures nova pci_passthrough_whitelist entries' do
|
||||
is_expected.to contain_nova_config('DEFAULT/pci_passthrough_whitelist').with(
|
||||
'value' => "[{\"vendor_id\":\"8086\",\"product_id\":\"0126\"},{\"vendor_id\":\"9096\",\"product_id\":\"1520\",\"physical_network\":\"physnet1\"}]"
|
||||
|
|
Loading…
Reference in New Issue