Skip to content

Commit c722046

Browse files
committed
[update] Stop control plane check during split variant post-services tests
In the split update variant, the continuous control plane check runs in the background creating and deleting VMs in a loop. When post-services tests (tobiko) execute between the services and system update phases, they discover transient VMs in BUILD state and fail with HTTP 409 conflicts. Stop the control plane check before running the post-services tests and restart it afterward so it continues monitoring during the system update phase. The ping test is left running since it only pings an existing VM and does not create new resources. Closes: OSPCIX-1381 Signed-off-by: Vito Castellano <vcastell@redhat.com>
1 parent 2b5d825 commit c722046

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

roles/update/tasks/update_variant_split.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
{{ cifmw_update_artifacts_basedir }}/update_event.sh
2121
Services update sequence complete
2222
23+
- name: Stop the continuous control plane test before post-services tests
24+
when:
25+
- cifmw_update_control_plane_check | bool
26+
- not cifmw_update_run_dryrun | bool
27+
ansible.builtin.command: |
28+
{{ cifmw_update_artifacts_basedir }}/control_plane_test_stop.sh
29+
2330
- name: Run tests after Services update
2431
vars:
2532
cifmw_test_operator_artifacts_basedir: "{{ cifmw_basedir }}/tests/test_operator_update"
@@ -29,6 +36,13 @@
2936
tasks_from: run_tests.yml
3037
when: cifmw_run_tests | default(false) | bool
3138

39+
- name: Restart the continuous control plane test after post-services tests
40+
when:
41+
- cifmw_update_control_plane_check | bool
42+
- not cifmw_update_run_dryrun | bool
43+
ansible.builtin.command: |
44+
{{ cifmw_update_artifacts_basedir }}/control_plane_test_start.sh
45+
3246
- name: Set update step to Starting the system update sequence
3347
ansible.builtin.command:
3448
cmd: >

0 commit comments

Comments
 (0)