]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
destroy failed instances created by auto scaling
authorLiang Chen <cbjchen@cn.ibm.com>
Sat, 29 Jun 2013 13:45:43 +0000 (21:45 +0800)
committerLiang Chen <cbjchen@cn.ibm.com>
Mon, 1 Jul 2013 03:15:00 +0000 (11:15 +0800)
commit4a5ddb64f4095d0af8a2c7e87862486a8e34d0a2
tree15ca4e9ccbab20f21c1f9eeedb47d7101b12b7fe
parentda3b5ecfdd0c64805b40ecb535c077f9f0044988
destroy failed instances created by auto scaling

The ResourceFailure exception was silently eaten when raise_on_error
set to False. This patch handles the ResourceFailure exception locally
when raise_on_error set to False - called from ScalingPolicy alarm
(i.e. runtime adjustment). So users will not be charged for orphaned
instances. But they can still see what happened through event list.

Fixes bug #1192554

Change-Id: I01106d2e443dbc37af066b04ef7064bfa5656675
heat/engine/resources/autoscaling.py
heat/tests/test_autoscaling.py