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

Bug 1488211

Summary: Backport request: Do not replace failed server always
Product: Red Hat OpenStack Reporter: Andreas Karis <akaris>
Component: openstack-heatAssignee: Thomas Hervé <therve>
Status: CLOSED ERRATA QA Contact: Ronnie Rasouli <rrasouli>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 10.0 (Newton)CC: anande, aschultz, athomas, augol, dbecker, dcadzow, hjensas, jjoyce, lruzicka, mburns, morazi, pmannidi, ramishra, rcernin, rhel-osp-director-maint, sbaker, sbandyop, shardy, srevivo, therve, zbitter
Target Milestone: z6Keywords: FeatureBackport, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-heat-7.0.5-3.el7ost Doc Type: If docs needed, set a value
Doc Text:
This update enables heat to resync the state of resources from nova and neutron when the heat resources are in `FAILED` state but the back-end resources are fine. This allows recovering from upgrade failures without replacing the resources.
Story Points: ---
Clone Of: 1487849
: 1559191 (view as bug list) Environment:
Last Closed: 2017-11-15 13:44:01 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: 1487849    
Bug Blocks:    

Comment 1 Andreas Karis 2017-09-04 16:54:35 UTC
Making the backport request part of this public so that customers can see what's going on:

Please backport https://github.com/openstack/heat/commit/82a11ceb727b3c8b93fd1e3bf82767f476ad973c into OSP 10. This is related to BZ1385190

From the email conversation and from the other bugzilla:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I can see events for compute nodes with status_reason  'UPDATE aborted'

MariaDB [heat]> select physical_resource_id, resource_action, resource_status from event where resource_status_reason='UPDATE aborted' and physical_resource_id in (select nova_instance from resource where name='NovaCompute');
+--------------------------------------+-----------------+-----------------+
| physical_resource_id                 | resource_action | resource_status |
+--------------------------------------+-----------------+-----------------+
| 681fa1bd-6e48-47d5-a9e5-1431b8ab1dc2 | UPDATE          | FAILED          |
| 949cb9f0-87e8-4001-b45e-93a35a4172b8 | UPDATE          | FAILED          |
+--------------------------------------+-----------------+-----------------+
2 rows in set (0.07 sec)


So I would assume the UPDATE operation of these NovaCompute  resource were cancelled (may be by killing heat-engine). Once the resource goes into a failed state, for all subsequent updates heat would try to replace the resource and hence call InterfaceDetach (which would fail with error as it's not supported for nova ironic driver).


We've a better way to handle this in OSP11 onwards. We had the same issue with another customer last Friday and we worked around it by just updating the status of the NovaCompute resources in heat db to 'UPDATE_COMPLETE' which is worth a try.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    4. Since you said you have a better way to handle this OSP 11. Can that be backported in OSP10?

https://github.com/openstack/heat/commit/82a11ceb727b3c8b93fd1e3bf82767f476ad973c. As this is part of a BP that landed in ocata, we can't backport it upstream. We've to see if we can do someting downstream.

Comment 2 Andreas Karis 2017-09-04 16:55:54 UTC
And sorry, this of course related to BZ 1487849

Comment 6 Thomas Hervé 2017-09-21 14:20:55 UTC
*** Bug 1487849 has been marked as a duplicate of this bug. ***

Comment 7 Thomas Hervé 2017-09-21 14:37:30 UTC
*** Bug 1487463 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2017-11-15 13:44:01 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://access.redhat.com/errata/RHBA-2017:3232

Comment 14 Shatadru Bandyopadhyay 2019-08-06 21:53:52 UTC
*** Bug 1737032 has been marked as a duplicate of this bug. ***