Node deletion error

Bug #1469953 reported by Haiwei Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
High
Haiwei Xu

Bug Description

Currently when deleting a node which is in ACTIVE state, will get this error:

Traceback (most recent call last):
  File "/opt/stack/senlin/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 457, in fire_timers
    timer()
  File "/opt/stack/senlin/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/opt/stack/senlin/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
    result = function(*args, **kwargs)
  File "/opt/stack/senlin/senlin/engine/actions/base.py", line 455, in ActionProc
    result, reason = action.execute()
  File "/opt/stack/senlin/senlin/engine/actions/node_action.py", line 117, in execute
    res, reason = self._execute(node)
  File "/opt/stack/senlin/senlin/engine/actions/node_action.py", line 83, in _execute
    result, reason = method(node)
  File "/opt/stack/senlin/senlin/engine/actions/node_action.py", line 44, in do_delete
    res = node.do_delete(self.context)
  File "/opt/stack/senlin/senlin/engine/node.py", line 268, in do_delete
    res = profile_base.Profile.delete_object(context, self)
  File "/opt/stack/senlin/senlin/profiles/base.py", line 147, in delete_object
    return profile.do_delete(obj)
  File "/opt/stack/senlin/senlin/profiles/os/heat/stack.py", line 168, in do_delete
    while not self._check_action_complete(obj, 'DELETE'):
  File "/opt/stack/senlin/senlin/profiles/os/heat/stack.py", line 133, in _check_action_complete
    reason=msg)
ResourceStatusError: The resource 731ebbc3-a119-4cea-acb7-7b26cb934202 is in error status - 'CREATE_COMPLETE' due to 'Node action mismatch detected: expected=DELETE actual=CREATE'.

And the node deleting will stay in DELETING state, can't be removed, though physical object can be removed properly.
This is because when deleting a heat stack, senlin excepts heat stack changes to DELETE_IN_PROCESS very fast, but heat just needs a little time to change the status .

Haiwei Xu (xu-haiwei)
Changed in senlin:
assignee: nobody → Haiwei Xu (xu-haiwei)
Changed in senlin:
status: New → In Progress
Changed in senlin:
status: In Progress → Fix Committed
Qiming Teng (tengqim)
Changed in senlin:
status: Fix Committed → Fix Released
importance: Undecided → High
milestone: none → mitaka-2
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.