简体   繁体   English

开堆热量:如果将卷作为热模板的一部分附着,则堆栈删除行为

[英]Openstack heat : Stack deletion behaviour in case of attaching a volume as a part of HEAT templete

I have a HEAT template where I am creating one server instance and attaching the CINDER volume with the instance. 我有一个HEAT模板,可以在其中创建一个服务器实例,并将CINDER卷附加到该实例。 CINDER volume is created manually and cinder_instance_id is passed as an environmental variable in HEAT template. CINDER卷是手动创建的,并且cinder_instance_id作为环境变量传递到HEAT模板中。

Now, when I delete the stack it deletes the server instance but NOT the CINDER volume. 现在,当我删除堆栈时,它将删除服务器实例,但不会删除CINDER卷。

For, me it is correct behavior as we have not created volume as part of OpenStack HEAT template, we are not able to delete the volume as part of stack deletion. 对于我来说,这是正确的行为,因为我们尚未将卷创建为OpenStack HEAT模板的一部分,而无法将卷删除为堆栈删除的一部分。

Same applies to the network. 同样适用于网络。 We pass network id, which we want to bring our server instance on, to HEAT template. 我们将网络ID传递给HEAT模板,我们希望将其加入服务器实例。 This network doesn't get deleted when we delete our stack. 当我们删除堆栈时,不会删除该网络。

I was not able to find any official document where this behavior is mention, assuming my understanding is correct. 假设我的理解是正确的,那么我找不到任何提及此行为的官方文件。 Is this correct behavior? 这是正确的行为吗? If yes, where it is mentioned? 如果是,在何处提及?

In heat template, when the network_id is passed the heat service requests the neutron to allocate one ip for the instance specified by user in the network_id . 在热量模板中,当network_id通过时,热量服务请求neutronnetwork_id用户指定的实例分配一个IP。

So when the heat stack is terminated, the IP is released and it makes free. 因此,当热堆栈终止时,IP被释放并释放。 but not the network itself. 但不是网络本身。

Whatever resources are created by stack those are get deleted once the stack is terminated. 不管由堆栈创建的资源是什么,一旦终止堆栈,这些资源都会被删除。

When the request for stack launch is given, the heat service communicates with other services like nova , neutron , glance , keystone and launches the stack. 发出堆栈发射请求后, heat服务会与其他服务(例如novaneutronglancekeystone并启动堆栈。 All the created resources are associated with stack_id . 所有创建的资源都与stack_id关联。

When the request for deletion of stack is given, then the heat service terminates the stack which means all the resources those are associated with stack_id gets deleted. 当给出删除堆栈的请求时, heat服务将终止堆栈,这意味着与stack_id相关联的所有资源都将被删除。

More information can be known at: 有关更多信息,请访问:

** https://docs.openstack.org/heat/latest/ ** https://docs.openstack.org/heat/latest/

** https://docs.openstack.org/heat/queens/admin/ ** https://docs.openstack.org/heat/queens/admin/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM