Browse Source

Merge "Force facts cache refreshing before upgrade." into stable/train

changes/20/704220/1
Zuul Gerrit Code Review 1 month ago
parent
commit
289c20712c
1 changed files with 10 additions and 16 deletions
  1. +10
    -16
      common/deploy-steps.j2

+ 10
- 16
common/deploy-steps.j2 View File

@@ -1231,16 +1231,14 @@ outputs:
BOOTSTRAP_SERVER_ID: {get_attr: [BootstrapServerId, value]}
ENABLE_DEBUG: {get_param: ConfigDebug}
template: |
- hosts: DEPLOY_SOURCE_HOST
- hosts: DEPLOY_SOURCE_HOST:DEPLOY_TARGET_HOST
name: Gather facts from undercloud
gather_facts: yes
gather_facts: no
become: false
tags: always

- hosts: DEPLOY_TARGET_HOST
name: Gather facts from overcloud
gather_facts: yes
tags: always
tasks:
- name: Force facts refresh before upgrade.
setup:

- hosts: all
name: Load global variables
@@ -1495,23 +1493,19 @@ outputs:
CONTAINER_CLI: {get_param: ContainerCli}
CONTAINER_LOG_STDOUT_PATH: {get_param: ContainerLogStdoutPath}
template: |
- hosts: DEPLOY_SOURCE_HOST
name: Gather facts from undercloud
gather_facts: yes
become: false
tags:
- always
- facts
# Collect the facts from the overcloud nodes but ignore unreachable
# nodes in the case of a dead node which needs to be part of the
# scale-down operation.
- hosts: DEPLOY_TARGET_HOST
- hosts: DEPLOY_SOURCE_HOST:DEPLOY_TARGET_HOST
name: Gather facts from overcloud
gather_facts: yes
gather_facts: no
ignore_unreachable: True
tags:
- always
- facts
tasks:
- name: Force facts refresh before scale.
setup:
- hosts: all
name: Load global variables
gather_facts: {{ '"{{' }} gather_facts | default(false) {{ '}}"' }}


Loading…
Cancel
Save