From 38fcc17219bc2457be42e323295784fd0e04747c Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Mon, 25 Nov 2013 13:31:02 -0800 Subject: Wait for o-r-c on nova compute as well. We have seen situations where nova-compute is not ready when notcompute has run its waitcondition. That leads to errors while we fail to boot instances until there is at least one nova compute available. We also update nova-compute-instance.yaml so that it continues to work stand-alone. Change-Id: Iadea7a34e2cd4576cc78659b99c12e1041af5b45 --- nova-compute-instance.yaml | 11 +++++++++++ overcloud-source.yaml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nova-compute-instance.yaml b/nova-compute-instance.yaml index 91520659..2aadea8d 100644 --- a/nova-compute-instance.yaml +++ b/nova-compute-instance.yaml @@ -67,6 +67,15 @@ Resources: Properties: UserName: Ref: ComputeUser + CompletionCondition: + Type: AWS::CloudFormation::WaitCondition + DependsOn: notcompute + Properties: + Handle: {Ref: CompletionHandle} + Count: '1' + Timeout: '1800' + CompletionHandle: + Type: AWS::CloudFormation::WaitConditionHandle NovaCompute0: Type: OS::Nova::Server Properties: @@ -90,6 +99,8 @@ Resources: InstanceType: '0' ImageId: '0' Metadata: + completion-handle: + Ref: CompletionHandle os-collect-config: cfn: access_key_id: diff --git a/overcloud-source.yaml b/overcloud-source.yaml index 798ca8dc..3e83684d 100644 --- a/overcloud-source.yaml +++ b/overcloud-source.yaml @@ -100,7 +100,7 @@ Resources: DependsOn: notcompute Properties: Handle: {Ref: CompletionHandle} - Count: '1' + Count: '2' Timeout: '1800' CompletionHandle: Type: AWS::CloudFormation::WaitConditionHandle -- cgit 1.2.3-korg