Skip check-reboot from post update validation.
check-reboot will report a failure if reboot is needed, which is often the case after update. Just skip this informative check to avoid ci failure. We add a new variable because skiplist_validations will be overwriten by infrared. So to be able to define a hardcoded check to skip at the stage level, we need a brand new variable. Change-Id: I2248263386b9d581c2e75707d0c9fdf1fb888355
This commit is contained in:
parent
46e78ab1c9
commit
044882ae35
|
@ -169,6 +169,11 @@ URL of an iperf binary.
|
|||
|
||||
tripleo_upgrade_iperf_bin_url: https://github.com/userdocs/iperf3-static/releases/download/3.12%2B/iperf3-amd64
|
||||
|
||||
Add validations to skip for a certain stage (post-update, pre-update, ...) in the form of comma separated string. Added to the list of validation to skip. Default to empty list.
|
||||
|
||||
skiplist_validations_stage: ''
|
||||
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ run_validations: false
|
|||
|
||||
# comma separated list of skipped validations
|
||||
skiplist_validations: ''
|
||||
skiplist_validations_stage: ''
|
||||
|
||||
# Validation Ansible inventory for Upgrade
|
||||
upgrade_validation_inventory: "{{ working_dir }}/overcloud-deploy/{{ overcloud_stack_name }}/config-download/{{ overcloud_stack_name }}/tripleo-ansible-inventory.yaml"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
# validation_group: validation group to execute
|
||||
# skiplist_validations: comma separated string of the validations to be skipped in a group
|
||||
# skiplist_validations_stage: comma separated string of the validations to be skipped in a group defined for a stage, added to the list.
|
||||
# validation_allowed_groups: list of allowed groups to run
|
||||
# validation_args: string containing extra arguments for the validation command. (defaults to empty string)
|
||||
- block:
|
||||
|
@ -9,7 +10,7 @@
|
|||
register: validations_in_group
|
||||
- name: Set fact validations_filtered which removes validations from skiplist
|
||||
set_fact:
|
||||
validations_filtered: "{{ validations_in_group.stdout_lines | difference( skiplist_validations.split(',') ) }}"
|
||||
validations_filtered: "{{ validations_in_group.stdout_lines | difference( skiplist_validations.split(',') + skiplist_validations_stage.split(',') ) }}"
|
||||
- name: "Running validations {{ validations_filtered }}"
|
||||
register: validations_result
|
||||
shell: |
|
||||
|
|
|
@ -273,6 +273,7 @@
|
|||
vars:
|
||||
validation_group: "post-update"
|
||||
validation_allowed_groups: "{{ updates_validations_groups }}"
|
||||
skiplist_validations_stage: check-reboot
|
||||
when: run_validations|bool
|
||||
tags:
|
||||
- updates_validations
|
||||
|
|
Loading…
Reference in New Issue