Bug 1452153 - Hooks are not being cleared on failed updates
Summary: Hooks are not being cleared on failed updates
Keywords:
Status: CLOSED DUPLICATE of bug 1428845
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-18 12:40 UTC by Yolanda Robla
Modified: 2017-05-30 07:28 UTC (History)
5 users (show)

Fixed In Version: openstack-heat-5.0.3-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-30 07:28:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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...


Note You need to log in before you can comment on or make changes to this bug.