Serialize AllNodesDeployment and UpdateWorkflow
authorSteven Hardy <shardy@redhat.com>
Thu, 6 Oct 2016 18:15:29 +0000 (19:15 +0100)
committermarios <marios@redhat.com>
Fri, 7 Oct 2016 08:39:20 +0000 (11:39 +0300)
Otherwise there may be a race between updating the hiera
and running the UpdateWorkflow

Change-Id: I22cd893e0db3df6d39504fbd61d7d9024cebb1c5
Related-Bug: 1631297

overcloud.j2.yaml

index bb50395..6d655c7 100644 (file)
@@ -487,6 +487,10 @@ resources:
 
   UpdateWorkflow:
     type: OS::TripleO::Tasks::UpdateWorkflow
+    depends_on:
+{% for role in roles %}
+      - {{role.name}}AllNodesDeployment
+{% endfor %}
     properties:
       servers:
 {% for role in roles %}