Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1302828

Summary: Hooks can remain set after a stack operation is stopped
Product: Red Hat OpenStack Reporter: Zane Bitter <zbitter>
Component: openstack-heatAssignee: Zane Bitter <zbitter>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: high Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: mburns, rhel-osp-director-maint, sbaker, shardy, ssainkar, yeylon
Target Milestone: z4Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-2015.1.2-8.el7ost Doc Type: Bug Fix
Doc Text:
Previously, if a thread was cancelled (including if heat-engine is restarted) while a user hook (aka breakpoint) was active, the hook was still marked as active in the database. If the user modified the environment to disable the hook, then the next time Heat reached the point in traversing the stack where the hook was invoked, Heat would pause and wait for the hook to be cleared; however there was no log message to indicate that the hook was invoked, nor a corresponding event in the event list, nor any indication from the "hook-poll" command that the hook is active. This workaround clears an active user hook when an exit exception occurs (e.g. the thread is cancelled) which resolves the issue. Previously, only Exception was caught, so exit exceptions were excluded.
Story Points: ---
Clone Of:
: 1302831 1309817 (view as bug list) Environment:
Last Closed: 2016-02-18 16:43:22 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: 1302831, 1309817    

Description Zane Bitter 2016-01-28 18:05:52 UTC
If a thread is cancelled (including if heat-engine is restarted) while a user hook (aka breakpoint) is active, the hook is still marked as active in the database. If the user modifies the environment to disable the hook, then the next time Heat reaches the point in traversing the stack where the hook was invoked Heat will pause and wait for the hook to be cleared; however there will be no log message to indicate that the hook was invoked, nor a corresponding event in the event list, nor any indication from the "hook-poll" command that the hook is active.

A simple workaround exists: just clear the hooks and everything will proceed. However, the problem is almost impossible to diagnose.

Comment 1 Zane Bitter 2016-01-28 18:06:46 UTC
*** Bug 1302827 has been marked as a duplicate of this bug. ***

Comment 5 errata-xmlrpc 2016-02-18 16:43:22 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/RHSA-2016-0266.html