<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Many thanks! Works like a charm!</div><div><br></div><div>Suggestion: document default value of 'delete_on_termination'. 😉</div><div><br></div><div>Kind regards</div><div><br></div><div>Andre</div><div><br></div><div><br></div><div>On Wed, 2019-09-04 at 12:04 +0530, Rabi Mishra wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>On Wed, Sep 4, 2019 at 11:41 AM Andreas Florath <<a href="mailto:andre@florath.net">andre@florath.net</a>> wrote:<br></div><div class="gmail_quote"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">Hello!<br>
<br>
<br>
Can please anybody tell me, if all resources which are created <br>
within a Heat stack belong to the stack in the way that<br>
all the resources are freed / deleted when the stack is deleted?<br>
<br>
IMHO all resources which are created during the initial creation or<br>
update of a stack, even if they are ephemeral or only internal<br>
created, must be deleted when the stack is deleted by OpenStack Heat<br>
itself. Correct?<br>
<br>
My question might see obvious, but I did not find an explicit hint in<br>
the documentation stating this.<br>
<br>
<br>
The reason for my question: I have a Heat template which uses two<br>
images to create a server (using block_device_mapping_v2). Every time<br>
I run an 'openstack stack create' and 'openstack stack delete' cycle<br>
one ephemeral volume is left over / gets not deleted.<br>
<br></blockquote><div>I think it's due toe delete_on_termination[1] property of bdmv2 which is interpreted as 'False', if not specified. You can set it to 'True' to delete the volumes along with server. I've not checked if it's different from how nova api behaves though.<br></div><div><br></div><div>[1] <a href="https://review.opendev.org/#/c/341008/" rel="noreferrer" target="_blank">https://docs.openstack.org/heat/latest/template_guide/openstack.html#OS::Nova::Server-prop-block_device_mapping_v2-*-delete_on_termination</a></div><div> </div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">For me this sounds like a problem in OpenStack (Heat).<br>
(It looks that this is at least similar to <br>
<a href="https://review.opendev.org/#/c/341008/" rel="noreferrer" target="_blank">https://review.opendev.org/#/c/341008/</a><br>
which never made it into master.)<br>
<br>
<br>
Kind regards<br>
<br>
Andre<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><br></div></blockquote></body></html>