]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Update the metadata if an alarm action makes changes
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 25 Feb 2013 00:44:19 +0000 (11:44 +1100)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 25 Feb 2013 22:16:44 +0000 (09:16 +1100)
commitcca4de0c855f7224902900a0489df322e09a5bf5
tree92b66b75d02afd71b5361b40772ba0cccb9adf42
parent06f4f858715f89100644867a1aad95bdb3352e41
Update the metadata if an alarm action makes changes

The point of this change?
- You have another instances' ip in your metadata and if it
  gets restarted you want cfn-hup to see the new ip.

How is it achieved?
- poll for the metadata so you can see these changes (cfn-hup)
- when ever an alarm action is run we make sure the metadata is refreshed.

bug #1131024
Change-Id: I0798c4da9689b126c3c98cafa63138ff2c484ea9
heat/engine/resource.py
heat/engine/resources/instance.py
heat/engine/resources/wait_condition.py
heat/engine/service.py
heat/tests/test_loadbalancer.py
heat/tests/test_metadata_refresh.py [new file with mode: 0644]
heat/tests/test_waitcondition.py