Merge "Relax facts gathering plays on the overcloud" into stable/train

This commit is contained in:
Zuul 2020-12-16 19:13:00 +00:00 committed by Gerrit Code Review
commit d9c57ff092
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,10 @@
---
# If a new play with potential facts gathering is added, make sure we set:
# any_errors_fatal: false
# ignore_unreachable: true
# So we don't break the MaxFailPercentage feature since these plays can't use
# Ansible strategies.
- hosts: all
name: Clear cached facts
tasks:
@ -9,7 +16,7 @@
name: Gather facts from undercloud
gather_facts: yes
any_errors_fatal: true
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
ignore_unreachable: false
become: false
tags:
- facts
@ -19,7 +26,11 @@
gather_facts: yes
# False because https://github.com/ansible/ansible/issues/70663
any_errors_fatal: false
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
# If an overcloud node is down, we will let MaxFailPercentage
# figuring out if the deployment can continue. For the facts gathering tasks,
# we will simply ignore unreachable nodes and errors, and let the
# Ansible reports the failure in the next plays.
ignore_unreachable: true
tags:
- facts
@ -27,7 +38,7 @@
name: Load global variables
gather_facts: "{{ gather_facts | default(false) }}"
any_errors_fatal: false
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
ignore_unreachable: true
tasks:
- include_vars: global_vars.yaml
no_log: true
@ -55,7 +66,7 @@
name: Set all_nodes data as group_vars for overcloud
gather_facts: "{{ gather_facts | default(false) }}"
any_errors_fatal: false
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
ignore_unreachable: true
tasks:
- name: Set all_nodes data as group_vars for overcloud
include_vars: "{{ playbook_dir }}/group_vars/overcloud.json"

View File

@ -1071,7 +1071,6 @@ outputs:
vars:
deploy_source_host: "DEPLOY_SOURCE_HOST"
deploy_target_host: "DEPLOY_TARGET_HOST"
scale_ignore_unreachable: true
- hosts: DEPLOY_TARGET_HOST
name: Scaling