Fix node scaling
The playbook fails when removing unreachable nodes from deployment with
`openstack overcloud delete node`. Some `ignore_unreachable: true` are
missing. Also, one cannot use `any_errors_fatal: true` when ignoring
unreachable nodes, otherwise the playbook execution will stop after the
current task.
Change-Id: Ibcb84e58bac1975490df281c0de950cdf74337b2
(cherry picked from commit f14007220f
)
This commit is contained in:
parent
7b2c249105
commit
7778c19a4d
|
@ -1,7 +1,7 @@
|
||||||
- hosts: "{{ deploy_source_host }}"
|
- hosts: "{{ deploy_source_host }}"
|
||||||
name: Gather facts from undercloud
|
name: Gather facts from undercloud
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
any_errors_fatal: yes
|
any_errors_fatal: "{{ not ignore_unreachable | default(true) }}"
|
||||||
ignore_unreachable: "{{ ignore_unreachable | default(false) }}"
|
ignore_unreachable: "{{ ignore_unreachable | default(false) }}"
|
||||||
become: false
|
become: false
|
||||||
tags:
|
tags:
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
- hosts: "{{ deploy_target_host }}"
|
- hosts: "{{ deploy_target_host }}"
|
||||||
name: Gather facts from overcloud
|
name: Gather facts from overcloud
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
any_errors_fatal: yes
|
any_errors_fatal: "{{ not ignore_unreachable | default(true) }}"
|
||||||
ignore_unreachable: "{{ ignore_unreachable | default(false) }}"
|
ignore_unreachable: "{{ ignore_unreachable | default(false) }}"
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
@ -18,7 +18,8 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
name: Load global variables
|
name: Load global variables
|
||||||
gather_facts: "{{ gather_facts | default(false) }}"
|
gather_facts: "{{ gather_facts | default(false) }}"
|
||||||
any_errors_fatal: yes
|
any_errors_fatal: "{{ not ignore_unreachable | default(true) }}"
|
||||||
|
ignore_unreachable: "{{ ignore_unreachable | default(false) }}"
|
||||||
tasks:
|
tasks:
|
||||||
- include_vars: global_vars.yaml
|
- include_vars: global_vars.yaml
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
|
@ -1158,7 +1158,7 @@ outputs:
|
||||||
# Without up-to-date facts, we're creating a potential failure
|
# Without up-to-date facts, we're creating a potential failure
|
||||||
# scenario.
|
# scenario.
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
any_errors_fatal: yes
|
ignore_unreachable: true
|
||||||
become: false
|
become: false
|
||||||
vars:
|
vars:
|
||||||
bootstrap_server_id: BOOTSTRAP_SERVER_ID
|
bootstrap_server_id: BOOTSTRAP_SERVER_ID
|
||||||
|
|
Loading…
Reference in New Issue