Run tasks on primary role first

This patch adds the primary role name as the first host pattern in the
individual plays in deploy-steps.j2. This will ensure that the primary
role will execute tasks first, which is needed so that all Pacemaker
nodes run the same step at the same time.

Change-Id: I9c499be87ce51ae28914b013b4b91446a3a68015
Closes-Bug: #1768238
This commit is contained in:
James Slagle
2018-05-01 13:21:23 -04:00
parent aeb5a8b077
commit 1497da08d5

View File

@@ -414,7 +414,7 @@ outputs:
tags: tags:
- common_roles - common_roles
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Overcloud deploy step tasks for step 0 name: Overcloud deploy step tasks for step 0
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
@@ -429,7 +429,7 @@ outputs:
tags: tags:
- overcloud - overcloud
- deploy_steps - deploy_steps
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Server deployments name: Server deployments
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
@@ -445,7 +445,7 @@ outputs:
- overcloud - overcloud
- pre_deploy_steps - pre_deploy_steps
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Host prep steps name: Host prep steps
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
@@ -476,7 +476,7 @@ outputs:
- external - external
- external_deploy_steps - external_deploy_steps
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Overcloud deploy step tasks for {{step}} name: Overcloud deploy step tasks for {{step}}
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
@@ -495,7 +495,7 @@ outputs:
- overcloud - overcloud
- deploy_steps - deploy_steps
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Overcloud common deploy step tasks {{step}} name: Overcloud common deploy step tasks {{step}}
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes
@@ -509,7 +509,7 @@ outputs:
- deploy_steps - deploy_steps
{%- endfor %} {%- endfor %}
- hosts: overcloud - hosts: {{primary_role_name}}:overcloud
name: Server Post Deployments name: Server Post Deployments
gather_facts: no gather_facts: no
any_errors_fatal: yes any_errors_fatal: yes