Add support for [libvirt] live_migration_bandwidth
Change-Id: I6b066d1b8cb23fcfdd435c934821f2a47f09fea5
This commit is contained in:
parent
d411860b1d
commit
36b05a236c
@ -41,9 +41,13 @@
|
||||
# in place, and are validated.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*live_migration_bandwidth*]
|
||||
# (optional) Maximum bandwidth(in MiB/s) to be used during migration.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*live_migration_downtime*]
|
||||
# (optional) Target maximum period of time Nova will try to keep the instance paused
|
||||
# during the last part of the memory copy, in miliseconds.
|
||||
# (optional) Target maximum period of time Nova will try to keep the instance
|
||||
# paused during the last part of the memory copy, in miliseconds.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*live_migration_downtime_steps*]
|
||||
@ -162,6 +166,7 @@ class nova::migration::libvirt(
|
||||
$migration_inbound_addr = $facts['os_service_default'],
|
||||
$live_migration_inbound_addr = $facts['os_service_default'],
|
||||
$live_migration_with_native_tls = $facts['os_service_default'],
|
||||
$live_migration_bandwidth = $facts['os_service_default'],
|
||||
$live_migration_downtime = $facts['os_service_default'],
|
||||
$live_migration_downtime_steps = $facts['os_service_default'],
|
||||
$live_migration_downtime_delay = $facts['os_service_default'],
|
||||
@ -229,6 +234,7 @@ class nova::migration::libvirt(
|
||||
'libvirt/live_migration_uri': value => $live_migration_uri;
|
||||
'libvirt/live_migration_tunnelled': value => pick($live_migration_tunnelled, $facts['os_service_default']);
|
||||
'libvirt/live_migration_with_native_tls': value => $live_migration_with_native_tls;
|
||||
'libvirt/live_migration_bandwidth': value => $live_migration_bandwidth;
|
||||
'libvirt/live_migration_downtime': value => $live_migration_downtime;
|
||||
'libvirt/live_migration_downtime_steps': value => $live_migration_downtime_steps;
|
||||
'libvirt/live_migration_downtime_delay': value => $live_migration_downtime_delay;
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The new ``nova::migration::libvirt::live_migration_bandwidth`` parameter
|
||||
has been added.
|
@ -40,6 +40,7 @@ describe 'nova::migration::libvirt' do
|
||||
it { is_expected.to contain_nova_config('libvirt/migration_inbound_addr').with_value('<SERVICE DEFAULT>')}
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_tunnelled').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_with_native_tls').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_bandwidth').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime_steps').with_value('<SERVICE DEFAULT>') }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime_delay').with_value('<SERVICE DEFAULT>') }
|
||||
@ -123,6 +124,7 @@ describe 'nova::migration::libvirt' do
|
||||
let :params do
|
||||
{
|
||||
:live_migration_tunnelled => true,
|
||||
:live_migration_bandwidth => 1024,
|
||||
:live_migration_downtime => 800,
|
||||
:live_migration_downtime_steps => 15,
|
||||
:live_migration_downtime_delay => 5,
|
||||
@ -131,6 +133,7 @@ describe 'nova::migration::libvirt' do
|
||||
}
|
||||
end
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_tunnelled').with(:value => true) }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_bandwidth').with_value(1024) }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime').with_value(800) }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime_steps').with_value(15) }
|
||||
it { is_expected.to contain_nova_config('libvirt/live_migration_downtime_delay').with_value(5) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user