Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat stack delete fails but all the resources have been deleted

I have a heat template that I've used to create stacks of resources and delete several times. However it looks like one time when it was deleting my horizon session expired and the delete failed. Now in Horizon or via the command line I'm not able to delete this stack. When I try I see the below error in the logs

2015-03-13 17:48:09.372 5920 INFO heat.engine.service [req-8f555b3f-31ad-460e-b964-ed03de3d714d None] Deleting stack jetspviptest1
2015-03-13 17:48:09.407 5920 INFO heat.engine.stack [-] Stack DELETE IN_PROGRESS (jetspviptest1): Stack DELETE started
2015-03-13 17:48:14.529 5920 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.200.2
2015-03-13 17:48:14.705 5920 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.200.2
2015-03-13 17:48:14.730 5920 ERROR heat.engine.stack [-] Could not find project: 27c1023fb7ad4b3bbe663c85e6594574 (HTTP 404)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack Traceback (most recent call last):
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/heat/engine/stack.py", line 942, in delete
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     project_id=self.stack_user_project_id)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/heat/common/heat_keystoneclient.py", line 506, in delete_stack_domain_project
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     project = self.domain_admin_client.projects.get(project=project_id)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/v3/projects.py", line 83, in get
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     project_id=base.getid(project))
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/base.py", line 71, in func
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     return f(*args, **new_kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/base.py", line 333, in get
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     self.key)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/base.py", line 135, in _get
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     resp, body = self.client.get(url, **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/httpclient.py", line 629, in get
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     return self._cs_request(url, 'GET', **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/httpclient.py", line 621, in _cs_request
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     return self.request(url, method, **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/httpclient.py", line 596, in request
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     resp = super(HTTPClient, self).request(url, method, **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/baseclient.py", line 21, in request
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     return self.session.request(url, method, **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/utils.py", line 318, in inner
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     return func(*args, **kwargs)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack   File "/usr/lib/python2.6/site-packages/keystoneclient/session.py", line 346, in request
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack     raise exceptions.from_response(resp, method, url)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack NotFound: Could not find project: 27c1023fb7ad4b3bbe663c85e6594574 (HTTP 404)
2015-03-13 17:48:14.730 5920 TRACE heat.engine.stack
2015-03-13 17:48:14.748 5920 INFO heat.engine.stack [-] Stack DELETE FAILED (jetspviptest1): Error deleting project: Could not find project: 27c1023fb7ad4b3bbe663c85e6594574 (HTTP 404)