"Already has an action" is frustrating for the user when trying to delete an in-progress stack

Bug #1214230 reported by Clint Byrum
This bug report is a duplicate of:  Bug #1211276: can't cancel wedged stack-create. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Triaged
Medium
Unassigned

Bug Description

After creating a stack and have it stall, I tried to delete it, but got this error from python-heatclient:

Traceback (most recent call last):
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/eventlet/wsgi.py", line 384, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/common/wsgi.py", line 306, in __call__
    response = req.get_response(self.application)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/keystoneclient/middleware/auth_token.py", line 461, in __call__
    return self.app(env, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/common/wsgi.py", line 306, in __call__
    response = req.get_response(self.application)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
    response = self.app(environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/common/wsgi.py", line 612, in __call__
    raise translate_exception(err, request.best_match_language())
ActionInProgress_Remote: Stack bignested already has an action (CREATE) in progress
Traceback (most recent call last):

  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py", line 435, in _process_data
    **args)

  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/openstack/common/rpc/dispatcher.py", line 172, in dispatch
    result = getattr(proxyobj, method)(ctxt, **kwargs)

  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/engine/service.py", line 55, in wrapped
    return func(self, ctx, *args, **kwargs)

  File "/opt/stack/venvs/heat/local/lib/python2.7/site-packages/heat/engine/service.py", line 389, in delete_stack
    self.stg[st.id].stop()

ActionInProgress: Stack bignested already has an action (CREATE) in progress

Restarting heat-engine got rid of the error, but it should never have shown up in the first place IMO. Delete means you want to get rid of it. So we should queue it up and do it if the user has requested it and we can't quite make it happen right away.

Revision history for this message
Steven Hardy (shardy) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.