Run facts gathering always for upgrades.
Up to now, each of the upgrade steps to gather facts from the Undercloud and Overcloud nodes did contain a tag named facts. This allowed us to run the facts gathering at will, however there is a problem with the upgrade_tasks. As it is allowed to pass a specific tag during its execution. So, if the task passed is different than facts, for example system_upgrade, then the facts gathering tasks wont be executed and the upgrade tasks will fail when trying to access some of the ansible facts (as it could be ansible_hostname). The solution for this is to run always the facts gathering, no matter what tag is being passed we'll have the facts available during the execution. Change-Id: Ibee072bec9916804163dab29e164eb1423cd08f8
This commit is contained in:
parent
6403ff68ce
commit
205ac0f123
|
@ -1086,14 +1086,12 @@ outputs:
|
||||||
name: Gather facts from undercloud
|
name: Gather facts from undercloud
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: false
|
become: false
|
||||||
tags:
|
tags: always
|
||||||
- facts
|
|
||||||
|
|
||||||
- hosts: DEPLOY_TARGET_HOST
|
- hosts: DEPLOY_TARGET_HOST
|
||||||
name: Gather facts from overcloud
|
name: Gather facts from overcloud
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
tags:
|
tags: always
|
||||||
- facts
|
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
name: Load global variables
|
name: Load global variables
|
||||||
|
|
Loading…
Reference in New Issue