heat and nova compute are inconsistent

asked 2016-01-20 21:55:04 -0500

samanta gravatar image

I am using Openstack Juno. I created a stack using a nested resource, whichconsists of few neutron:ports and a nova:server. Using dashboard, I delete a compute instance which is a nova:server. Now when I list the resources in the stack it returns the resource which is correct as its a nested resource. However, when I get the resource details, it still returns me the deleted nova:server and the existing neutron:ports. Ideally, if the nova:server is deleted, the resource which has the nova:server should not list it.

edit retag flag offensive close merge delete


Is there a question here?

zaneb gravatar imagezaneb ( 2016-02-01 11:08:17 -0500 )edit

Sorry for the confusion. I wanted to know if this is a known bug. I do find a api which checks stack and update the status of the stack with the missing server.

samanta gravatar imagesamanta ( 2016-02-01 14:36:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-02-02 08:12:27 -0500

zaneb gravatar image

This is not really what Heat does... Heat's job is to construct reality based on a model, not to construct a model based on reality. If you want to remove something from the stack, remove it from the template and update the stack. It is recommended not to modify resources created by Heat without going through Heat.

Heat has the ability to bring reality back into line with the model after a resource is deleted externally, by running heat stack-check to put the resource into a CHECK_FAILED state and then running heat stack-update with the existing template to replace the missing resource. It is likely that this capability will be enhanced and extended over time, but it is unlikely that Heat will ever do the reverse - modify its model in response to a change in real-world state.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-20 21:55:04 -0500

Seen: 399 times

Last updated: Feb 02 '16