]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Make a template that demonstrates instance monitoring and restarting.
authorAngus Salkeld <asalkeld@redhat.com>
Wed, 25 Jul 2012 11:45:09 +0000 (21:45 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Wed, 25 Jul 2012 11:45:09 +0000 (21:45 +1000)
commit3c6e40f2bb9039dfae60307ea730199973ddc247
treedbe0435346b5ba91417ab71c5b471d8ecd34acaa
parent783b1112490ef07db05251c1258c04f8b1caa5a0
Make a template that demonstrates instance monitoring and restarting.

We use cfn-push-stats to send a heartbeat and if we don't get
it within the set interval we restart the instance.

Other changes to make this work:
- clear the waitcondition when it is deleted.
- set the resource id to None when deleted, else it won't re-create
  properly.
- don't run watch alarms if the stack is not completed.

Change-Id: I5dfc8b372f557cf43379c6c5b7436d1010f83e3c
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/manager.py
heat/engine/parser.py
heat/engine/resources.py
heat/engine/wait_condition.py
templates/WordPress_Single_Instance_With_IHA.template [new file with mode: 0644]