Heat stack delete using loadbalancer resource fails

Solution Verified - Updated

Environment

  • Red Hat OpenStack 5.0
  • openstack-heat-engine-2014.1.2-1.1

Issue

  • I tried to delete a stack but when i did it a get nothing else than: DELETE_FAILED
  • Heat stack delete using loadbalancer resource fails

Resolution

This issue has been fixed with RHBA-2014-1930

Root Cause

Prior to this update, Orchestration (heat) did not expect partial deletion of OS::Neutron::LoadBalancer resources.
As a result, it was not possible to completely delete the resource if deletion previously failed after some members
had already been removed.
With this update, Orchestration is able to delete partially-deleted OS::Neutron::LoadBalancer resources. Consequently,
should resource deletion fail for any reason partially through the process, it can still be deleted in a subsequent attempt.

Diagnostic Steps

  • heat engine.log :
2014-11-19 16:28:53.720 31094 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.20.12
2014-11-19 16:28:53.724 31094 ERROR heat.engine.resource [-] Delete LoadBalancer "loadbalancer" Stack "proxy" [10780734-79ef-431c-a277-8111e92d513c]
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource Traceback (most recent call last):
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 707, in delete
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource     handle_data = self.handle_delete()
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/neutron/loadbalancer.py", line 617, in handle_delete
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource     try:
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/db/api.py", line 62, in resource_data_get
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource     return IMPL.resource_data_get(resource, key)
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/db/sqlalchemy/api.py", line 157, in resource_data_get
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource     key)
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/db/sqlalchemy/api.py", line 188, in resource_data_get_by_key
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource     raise exception.NotFound(_('No resource data found'))
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource NotFound: No resource data found
2014-11-19 16:28:53.724 31094 TRACE heat.engine.resource 

Upstream bug https://bugs.launchpad.net/heat/+bug/1381700

Components
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.