Skip to content

Commit a595969

Browse files
committed
[update] Possibility to activate kpatch during update.
By setting cifmw_update_openstack_update_kpatch to true, one can have the edmp kpatch code turn on. Depends-On: openstack-k8s-operators/install_yamls#1098
1 parent ffe7f2a commit a595969

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

roles/update/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ Role to run update
2121
* `cifmw_update_ansible_ssh_private_key_file`: (String) Define the path to the private key file used for the compute nodes.
2222
* `cifmw_update_wait_retries_reboot`: (Integer) Number of retries to wait for a compute node reboot. One retry is done every five seconds. Default to 60, so five minutes.
2323
* `cifmw_update_resources_monitoring_interval`: (Integer) Interval, in seconds, between two resources monitor during update. Default to 10 seconds.
24+
* `cifmw_update_openstack_update_kpatch`: (Boolean) Activate kpatch during update. Default to false.
2425

2526
## Examples

roles/update/defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ cifmw_update_openstack_cmd: >-
4848
oc rsh -n {{ cifmw_update_namespace }} openstackclient openstack
4949
5050
## User facing
51+
cifmw_update_openstack_update_kpatch: false
52+
5153
cifmw_update_reboot_test: false
5254
cifmw_update_ansible_ssh_private_key_file: >-
5355
"{{ ansible_ssh_private_key_file | default(ansible_user_dir ~ '/.ssh/id_cifw') }}"

roles/update/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
ansible.builtin.set_fact:
152152
_make_update_params: |
153153
TIMEOUT: {{ cifmw_update_openstack_update_run_timeout }}
154+
KPATCH_UPDATE: {{ cifmw_update_openstack_update_kpatch }}
154155
{% if _cifmw_update_use_fake_update | bool -%}
155156
FAKE_UPDATE: true
156157
CONTAINERS_NAMESPACE: {{ cifmw_update_openstack_update_run_containers_namespace }}

0 commit comments

Comments
 (0)