From: Steven Hardy Date: Thu, 17 Jan 2013 11:22:09 +0000 (+0000) Subject: heat templates : fix IHA HeartbeatFailureAlarm during instance build X-Git-Tag: 2014.1~989 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=42f2134ff723be5b3539224ab8f33aac63a71965;p=openstack-build%2Fheat-build.git heat templates : fix IHA HeartbeatFailureAlarm during instance build 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 --- diff --git a/templates/WordPress_Single_Instance_With_IHA.template b/templates/WordPress_Single_Instance_With_IHA.template index 72093899..6a392a41 100644 --- a/templates/WordPress_Single_Instance_With_IHA.template +++ b/templates/WordPress_Single_Instance_With_IHA.template @@ -114,6 +114,7 @@ }, "HeartbeatFailureAlarm": { "Type": "AWS::CloudWatch::Alarm", + "DependsOn" : "WaitCondition", "Properties": { "AlarmDescription": "Restart the WikiDatabase if we miss a heartbeat", "MetricName": "Heartbeat",