Bug 1334468

Summary: [RFE] Support for pre-delete hooks
Product: Red Hat OpenStack Reporter: Jaromir Coufal <jcoufal>
Component: openstack-heatAssignee: Thomas Hervé <therve>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 9.0 (Mitaka)CC: jjoyce, mburns, nlevinki, rhel-osp-director-maint, sbaker, shardy, srevivo
Target Milestone: gaKeywords: FutureFeature
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-6.0.0-1.el7ost Doc Type: Enhancement
Doc Text:
Using the resource registry in the environment, a user can set a hook which will pause delete actions on these resources. This allows users to take specific actions when a resource is deleted, and perform extra validation when critical elements are removed. As a result, when a resource with a pre-delete hook is about to be deleted, Heat will pause until the resource is signaled with {'unset_hook': 'pre-delete'} as data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-11 12:19:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1362719    

Description Jaromir Coufal 2016-05-09 16:58:08 UTC
We provide hooks for pre-create and pre-update, but not for pre-delete. Such a	hook would allow users to make specific actions when a resource is deleted, like deregistration with external systems, and will provide the ability to validate deletion of critical elements.

Blueprint: https://blueprints.launchpad.net/heat/+spec/pre-delete-hook

Comment 5 errata-xmlrpc 2016-08-11 12:19:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-1597.html