]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat templates : fix IHA HeartbeatFailureAlarm during instance build
authorSteven Hardy <shardy@redhat.com>
Thu, 17 Jan 2013 11:22:09 +0000 (11:22 +0000)
committerSteven Hardy <shardy@redhat.com>
Thu, 17 Jan 2013 15:40:51 +0000 (15:40 +0000)
The HeartbeatFailureAlarm triggers prematurely while the instance is
building, because cfn-init doesn't create the files (hence the
heartbeat cron-job) until after the packges are all installed.
If we make the HeartbeatFailureAlarm depend on the WaitCondition, it
won't be created until the instance is fully built.

fixes bug 1100719

Change-Id: Iae73aa0974a3061f56aa3ee52598687f32c0f19b
Signed-off-by: Steven Hardy <shardy@redhat.com>
templates/WordPress_Single_Instance_With_IHA.template

index 72093899619eccf7b2785f3fd6b38ff54ed68b1a..6a392a41b6a84cdce652c48f20e9b770cfb1e1fe 100644 (file)
     },
     "HeartbeatFailureAlarm": {
      "Type": "AWS::CloudWatch::Alarm",
+     "DependsOn" : "WaitCondition",
      "Properties": {
         "AlarmDescription": "Restart the WikiDatabase if we miss a heartbeat",
         "MetricName": "Heartbeat",