Skip to content
Open
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions roles/validations/tasks/edpm/hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,18 @@
ansible.builtin.assert:
that:
- cifmw_validations_hotfixed_edpm_nova_compute_image == post_change_nova_compute_image.stdout

- name: Wait for all nova-compute services to be up after hotfix rollout
cifmw.general.ci_script:
output_dir: "{{ cifmw_validations_basedir }}/artifacts"
script: >-
oc -n {{ cifmw_validations_namespace }} rsh openstackclient
openstack compute service list --service nova-compute -f value -c State |
grep -v '^ *$' | sort -u
register: _hotfix_nova_states
until:
- _hotfix_nova_states.rc == 0
- "'down' not in _hotfix_nova_states.stdout"
- "'up' in _hotfix_nova_states.stdout"
retries: 20
delay: 30
6 changes: 5 additions & 1 deletion roles/validations/tasks/edpm/scaledown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
script: >-
oc -n {{ cifmw_validations_namespace }} rsh openstackclient openstack hypervisor list
register: hypervisors_before_scale_down
failed_when: '"{{ cifmw_validations_edpm_scale_down_hostname }}" not in hypervisors_before_scale_down.stdout'
until:
- hypervisors_before_scale_down.rc == 0
- cifmw_validations_edpm_scale_down_hostname in hypervisors_before_scale_down.stdout
retries: 15
delay: 20

- name: Disable nova-compute for node being removed
cifmw.general.ci_script:
Expand Down
Loading