Merge "Role parameter for tripleo_kernel_defer_reboot" into stable/victoria

This commit is contained in:
Zuul 2021-07-27 00:58:47 +00:00 committed by Gerrit Code Review
commit 4949cfc419
2 changed files with 23 additions and 0 deletions

View File

@ -38,6 +38,19 @@ parameters:
description: Kernel Args to apply to the host
tags:
- role_specific
KernelArgsDeferReboot:
default: false
type: boolean
description: >
When enabled, nodes will not get rebooted automatically by tripleo-kernel
if KernelArgs have been changed. Operators will have to manually reboot
nodes after the deployment or update process is completed.
Leaving this enabled during a scale-up operation will prevent reboot on
new nodes. This might cause deployment errors as the KernelArgs will not
be applied.
tags:
- role_specific
TunedProfileName:
default: 'throughput-performance'
type: string
@ -69,11 +82,13 @@ resources:
- tuned_profile: TunedProfileName
isolated_cores: IsolCpusList
kernel_args: KernelArgs
kernel_args_defer_reboot: KernelArgsDeferReboot
- values: {get_param: [RoleParameters]}
- values:
TunedProfileName: {get_param: TunedProfileName}
IsolCpusList: {get_param: IsolCpusList}
KernelArgs: {get_param: KernelArgs}
KernelArgsDeferReboot: {get_param: KernelArgsDeferReboot}
outputs:
role_data:
@ -97,6 +112,7 @@ outputs:
tasks_from: kernelargs.yml
vars:
tripleo_kernel_args: {get_attr: [RoleParametersValue, value, kernel_args]}
tripleo_kernel_defer_reboot: {get_attr: [RoleParametersValue, value, kernel_args_defer_reboot]}
tripleo_kernel_reboot_timeout: {get_param: NodeRebootWaitTimeout}
upgrade_tasks:
- name: upgrade prepare for leapp to align kernel arg shortcommings in leapp

View File

@ -0,0 +1,7 @@
---
features:
- |
To help operators protect their workload, they can now enable the
KernelArgsDeferReboot role parameter. This will prevent the tripleo-kernel
ansible module from automatically rebooting nodes even if KernelArgs
were changed unexpectedly.