I'm wondering how the storage template option "deleteOnExit" works in Cloudify 2.7.1 Stable. I'm working on OpenStack cloud, and in my case, the option "deleteOnExit" in "SMALL_BLOCK" storage template is set to true. Using the dynamic storage allocation way to create (with the SMALL_BLOCK template), attach, mount and format a storage via the context storage API. When I undeploy the application, the storage is not destroyed. Is it a normal behavior?
Thanks.
Yes this is the normal behavior, with dynamic storage, you are also responsible for deleting the volume when you undeploy.
here is an example of deleting the volume when the 'shutdown' lifecycle event is executed: