Merge "Relax facts gathering plays on the overcloud"
This commit is contained in:
commit
962fcd5819
@ -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
|
- hosts: all
|
||||||
name: Clear cached facts
|
name: Clear cached facts
|
||||||
tasks:
|
tasks:
|
||||||
@ -7,7 +14,7 @@
|
|||||||
name: Gather facts from undercloud
|
name: Gather facts from undercloud
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
any_errors_fatal: true
|
any_errors_fatal: true
|
||||||
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
|
ignore_unreachable: false
|
||||||
become: false
|
become: false
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
@ -17,7 +24,11 @@
|
|||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
# False because https://github.com/ansible/ansible/issues/70663
|
# False because https://github.com/ansible/ansible/issues/70663
|
||||||
any_errors_fatal: false
|
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:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
@ -25,7 +36,7 @@
|
|||||||
name: Load global variables
|
name: Load global variables
|
||||||
gather_facts: "{{ gather_facts | default(false) }}"
|
gather_facts: "{{ gather_facts | default(false) }}"
|
||||||
any_errors_fatal: false
|
any_errors_fatal: false
|
||||||
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
|
ignore_unreachable: true
|
||||||
tasks:
|
tasks:
|
||||||
- include_vars: global_vars.yaml
|
- include_vars: global_vars.yaml
|
||||||
no_log: true
|
no_log: true
|
||||||
@ -38,7 +49,7 @@
|
|||||||
become: true
|
become: true
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
any_errors_fatal: false
|
any_errors_fatal: false
|
||||||
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
|
ignore_unreachable: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure /var/lib/config-data context
|
- name: Ensure /var/lib/config-data context
|
||||||
shell: |-
|
shell: |-
|
||||||
@ -77,7 +88,7 @@
|
|||||||
name: Set all_nodes data as group_vars for overcloud
|
name: Set all_nodes data as group_vars for overcloud
|
||||||
gather_facts: "{{ gather_facts | default(false) }}"
|
gather_facts: "{{ gather_facts | default(false) }}"
|
||||||
any_errors_fatal: false
|
any_errors_fatal: false
|
||||||
ignore_unreachable: "{{ scale_ignore_unreachable | default(false) }}"
|
ignore_unreachable: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set all_nodes data as group_vars for overcloud
|
- name: Set all_nodes data as group_vars for overcloud
|
||||||
include_vars: "{{ playbook_dir }}/group_vars/overcloud.json"
|
include_vars: "{{ playbook_dir }}/group_vars/overcloud.json"
|
||||||
|
@ -1155,7 +1155,6 @@ outputs:
|
|||||||
vars:
|
vars:
|
||||||
deploy_source_host: "DEPLOY_SOURCE_HOST"
|
deploy_source_host: "DEPLOY_SOURCE_HOST"
|
||||||
deploy_target_host: "DEPLOY_TARGET_HOST"
|
deploy_target_host: "DEPLOY_TARGET_HOST"
|
||||||
scale_ignore_unreachable: true
|
|
||||||
|
|
||||||
- hosts: DEPLOY_TARGET_HOST
|
- hosts: DEPLOY_TARGET_HOST
|
||||||
name: Scaling
|
name: Scaling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user