Remove automatic deletion of failed stacks

Prior to this patch, Magnum would delete stacks that entered the
FAILED state.  This resulted in the information about why the
orchestration failed being lost to the user, and only avaialble
in the system logs.

Instead, keep the stack around so it can be inspected and delete
it when the bay is deleted.

Change-Id: Ie61b84ee00ea4f96580f5725e72ca35b855e0417
Closes-Bug: 1412213
This commit is contained in:
Steven Dake 2015-01-18 10:35:54 -07:00
parent c91ab4f571
commit f579bc8235
1 changed files with 0 additions and 1 deletions

View File

@ -136,7 +136,6 @@ class Handler(object):
(attempts_count > cfg.CONF.k8s_heat.max_attempts)):
# TODO(yuanying): update status to failed
LOG.error('Unable to create bay, stack_id: %s' % bay.stack_id)
osc.heat().stacks.delete(bay.stack_id)
raise loopingcall.LoopingCallDone()
lc = loopingcall.FixedIntervalLoopingCall(f=poll_and_check)