order of resource via stack delete

asked 2015-02-15 13:32:31 -0600

Shurik gravatar image


Can I control the order of delete resource when I delete the stack?

For example I have stack that contains nova.server cinder volume and attach volume resource.

I want that attached volume will be deleted first.

edit retag flag offensive close merge delete


Did you find any way to do this? During my heat stack deletion, it is attempting to delete the subnet first before deleting VM and failing. How to solve this?

Veena gravatar imageVeena ( 2016-02-11 07:03:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-15 13:43:11 -0600

updated 2015-02-15 13:44:33 -0600

You can change the order of lines in unstack.sh script. For example you can bring the following lines on top of the script(unstack.sh) to be executed before for example nova stop command:

if is_service_enabled cinder; then
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-02-15 13:32:31 -0600

Seen: 304 times

Last updated: Feb 15 '15