Bug 1452153

Summary: Hooks are not being cleared on failed updates
Product: Red Hat OpenStack Reporter: Yolanda Robla <yroblamo>
Component: openstack-tripleoAssignee: James Slagle <jslagle>
Status: CLOSED DUPLICATE QA Contact: Arik Chernetsky <achernet>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: mburns, mcornea, rhel-osp-director-maint, sathlang, yroblamo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-5.0.3-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-30 07:28:47 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:

Description Yolanda Robla 2017-05-18 12:40:46 UTC
Description of problem:


After a failed update, if i restart it, i get errrors about hooks not being cleared properly:

failed to remove breakpoint on overcloud-controller-0: ERROR: The "pre-update" hook is not defined on SoftwareDeployment "UpdateDeployment" [a9aee457-6eb9-4504-86ee-c1690ead9d16] Stack "overcloud-Controller-vqque5b6lqx3-0-e7e7hwrooo37" [86c38ea4-b05a-45f4-a064-7de30570ec5d]

I had to manually follow this recipe to clear those:

heat resource-list -n5 overcloud | grep " OS::TripleO::Controller "
heat resource-list <<resource_id>> | grep UpdateDeployment
heat hook-clear <<resource_id>> UpdateDeployment

To be able to retry an update. Hook shall be cleared automatically after a failed update.

Comment 1 Marius Cornea 2017-05-22 14:52:18 UTC
A similar issue has been addressed by bug 1428845 for OSP8 (in openstack-heat-5.0.3-2.el7ost). Could you please confirm that you have this version installed on your system? Thanks!

Comment 2 Yolanda Robla 2017-05-22 15:31:18 UTC
I have 5.0.1-9 version . I was getting this version after executing minor upgrades for OSP8. Actually:

 openstack-heat-api
                   noarch 1:5.0.1-9.el7ost rhel-7-server-openstack-8-rpms 

So if there is a higher version, repos will need to be updated properly...