Expose [workaround]/disable_compute_service_check_for_ffu

This exposes the nova workaround to set the normal safety check
for old compute services will be treated as a warning instead
of an error.

https://review.opendev.org/c/openstack/nova/+/826097 adds
the service version check workaround for FFU.

Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
Change-Id: Ie60fceb0d51a314ede395db567a8155a773c9b15
This commit is contained in:
Chandan Kumar (raukadah)
2022-02-24 15:05:51 +05:30
committed by Takashi Kajinami
parent 09d7e94070
commit c482a3d86e
3 changed files with 19 additions and 0 deletions

View File

@@ -26,6 +26,13 @@
# plugged events when performing hard reboot.
# Defaults to $::os_service_default
#
# [*disable_compute_service_check_for_ffu*]
# (Optional) If this is set, the normal safety check for old compute services will
# be treated as a warning instead of an error. This is only to be enabled to
# facilitate a Fast-Forward upgrade where new control services are being started
# before compute nodes have been able to update their service record.
# Defaults to $::os_service_default
#
# DEPRECATED
#
# [*enable_numa_live_migration*]
@@ -37,6 +44,7 @@ class nova::workarounds (
$ensure_libvirt_rbd_instance_dir_cleanup = $::os_service_default,
$enable_qemu_monitor_announce_self = $::os_service_default,
$wait_for_vif_plugged_event_during_hard_reboot = $::os_service_default,
$disable_compute_service_check_for_ffu = $::os_service_default,
# DEPRECATED PARAMETER
$enable_numa_live_migration = undef,
) {
@@ -57,6 +65,8 @@ class nova::workarounds (
value => $enable_qemu_monitor_announce_self;
'workarounds/wait_for_vif_plugged_event_during_hard_reboot':
value => join(any2array($wait_for_vif_plugged_event_during_hard_reboot), ',');
'workarounds/disable_compute_service_check_for_ffu':
value => $disable_compute_service_check_for_ffu;
}
}

View File

@@ -0,0 +1,6 @@
---
features:
- |
Added ``disable_compute_service_check_for_ffu`` paramter to
``nova::workarounds`` to configure the configuration option with the same
name.

View File

@@ -14,6 +14,7 @@ describe 'nova::workarounds' do
it { is_expected.to contain_nova_config('workarounds/ensure_libvirt_rbd_instance_dir_cleanup').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_nova_config('workarounds/enable_qemu_monitor_announce_self').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_nova_config('workarounds/wait_for_vif_plugged_event_during_hard_reboot').with_value('<SERVICE DEFAULT>') }
it { is_expected.to contain_nova_config('workarounds/disable_compute_service_check_for_ffu').with_value('<SERVICE DEFAULT>') }
end
context 'with overridden parameters' do
@@ -24,6 +25,7 @@ describe 'nova::workarounds' do
:ensure_libvirt_rbd_instance_dir_cleanup => true,
:enable_qemu_monitor_announce_self => true,
:wait_for_vif_plugged_event_during_hard_reboot => ['normal', 'direct'],
:disable_compute_service_check_for_ffu => true,
}
end
@@ -32,6 +34,7 @@ describe 'nova::workarounds' do
it { is_expected.to contain_nova_config('workarounds/ensure_libvirt_rbd_instance_dir_cleanup').with_value('true') }
it { is_expected.to contain_nova_config('workarounds/enable_qemu_monitor_announce_self').with_value(true) }
it { is_expected.to contain_nova_config('workarounds/wait_for_vif_plugged_event_during_hard_reboot').with_value('normal,direct') }
it { is_expected.to contain_nova_config('workarounds/disable_compute_service_check_for_ffu').with_value(true) }
end
end