Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions roles/update/tasks/update_variant_split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,28 @@
{{ cifmw_update_artifacts_basedir }}/update_event.sh
Services update sequence complete

- name: Stop the continuous control plane test before post-services tests
when:
- cifmw_update_control_plane_check | bool
- not cifmw_update_run_dryrun | bool
ansible.builtin.command: |
{{ cifmw_update_artifacts_basedir }}/control_plane_test_stop.sh
register: _cifmw_update_cp_stop_result
failed_when: false
Comment thread
ciecierski marked this conversation as resolved.

- name: Report control plane test results from services update phase
when:
- _cifmw_update_cp_stop_result is defined
- _cifmw_update_cp_stop_result.rc is defined
- _cifmw_update_cp_stop_result.rc != 0
ansible.builtin.debug:
msg: >-
Control plane test reported failures during services update phase.
Some failures may occur during service restarts, but failures exceeding
thresholds (max {{ cifmw_update_ctl_plane_max_fail }} total,
{{ cifmw_update_ctl_plane_max_cons_fail }} consecutive) indicate real issues:
{{ _cifmw_update_cp_stop_result.stdout | default('') }}

- name: Run tests after Services update
vars:
cifmw_test_operator_artifacts_basedir: "{{ cifmw_basedir }}/tests/test_operator_update"
Expand All @@ -29,6 +51,13 @@
tasks_from: run_tests.yml
when: cifmw_run_tests | default(false) | bool

- name: Restart the continuous control plane test after post-services tests
when:
- cifmw_update_control_plane_check | bool
- not cifmw_update_run_dryrun | bool
ansible.builtin.command: |
{{ cifmw_update_artifacts_basedir }}/control_plane_test_start.sh

- name: Set update step to Starting the system update sequence
ansible.builtin.command:
cmd: >
Expand Down
Loading