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:
Jose Luis Franco Arza 2019-09-04 11:04:53 +02:00
parent 6403ff68ce
commit 205ac0f123
1 changed files with 2 additions and 4 deletions

View File

@ -1086,14 +1086,12 @@ outputs:
name: Gather facts from undercloud
gather_facts: yes
become: false
tags:
- facts
tags: always
- hosts: DEPLOY_TARGET_HOST
name: Gather facts from overcloud
gather_facts: yes
tags:
- facts
tags: always
- hosts: all
name: Load global variables