heat tests : remove debug print

Remove SHDEBUG line which I accidentally left in test_identifier.py

Change-Id: Ic965958e28b1c825408ce5ff44ced1398663bcb0
Signed-off-by: Steven Hardy <shardy@redhat.com>
Merge "heat tests : remove debug print"
heat templates : add missing credentials to IHA template

WordPress_Single_Instance_With_IHA lacks credentials so
cfn-push-stats can't authenticate with the cloudwatch api

ref bug 1100719

Change-Id: I218eea927a00b6cef58a4a1ee5d930c57ebb8a2e
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat templates : IHA HeartbeatFailureAlarm should be Ref

cfn-push-stats reference to HeartbeatFailureAlarm should be a
Ref not a hard-coded string, or the engine fails to find the
watch because the name lacks the stack prefix

ref bug 1100719

Change-Id: I0fbec026b883348b674327ae6e097a9452ce375f
Signed-off-by: Steven Hardy <shardy@redhat.com>
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 <shardy@redhat.com>
heat templates : IHA enable cfn-hup

The IHA template mentions cfn-hup in several places but doesn't
actually enable it, so do so by adding the config file and crontab
entry

Change-Id: Ie852bba24a57c262a8d813d3b3fc76ba9b5e54b4
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat engine : watchrule don't run rule for every SampleCount

We should not be triggering a run_rule (which is an alarm action)
for every datapoint when the SampleCount statistic is specified,
otherwise e.g IHA instances get replaced every heartbeat signal!
run_rule should only be called in response to a rule evaluate(),
or an explicit override via set_watch_state()

ref bug 1100719

Change-Id: I91b144f24b542f48aa7fa98d8d8c404479e13483
Signed-off-by: Steven Hardy <shardy@redhat.com>