[openstack-dev] [heat]How does heat work when deleting the stack?

Oleksii Chuprykov ochuprykov at mirantis.com
Tue Dec 29 17:46:48 UTC 2015


Hi! In this situation you get C in DELETE_COMPLETE, B in DELETE_FAILED and
A in CREATE_COMPLETE. After your second try, heat will try to delete stack
again, starting with C resource. But this resource already in
DELETE_COMPLETE, so heat will do nothing and move to next resource (B). You
can see it here
https://github.com/openstack/heat/blob/master/heat/engine/resource.py#L1238
.

On Tue, Dec 29, 2015 at 5:50 PM, zhu4236926 <zhu4236926 at 126.com> wrote:

> Hi guys,
>     I created a stack with several resources, for example, resource
> A,B,C,and B depends on A, C depends on B,.Now I delete the stack , then
> heat would delete resource C, then resource B, at last, resource A, isn't
> it?
> Suppose that the resource C has been deleted, but an error occurred when
> deleteing the reousrce B,  then the deleting stack task is failed. I try
> again delete the stack, heat would delele the resource C again,but resource
> C
> has been deleted, so what would happen? Raise a exception or work by other
> way to avoid this, or could you give me a hand to understand this.
>     Thank you very much.
>
>     By
>     Sylvernass
>
>
>
>
>
>
>
>
>
>
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151229/6ebc9ea2/attachment.html>


More information about the OpenStack-dev mailing list