ClusterLabs/pacemaker — pull request #311 by gao-yan (2013-06-19 15:30:49+00:00)
Title: Fix: crmd: Abort transition if the resource of a returned action no longer exists in the lrmd

If a cleanup is performed while a start action is in-flight, when the
start action returns, it won't do cib update since the lrm resource no
longer exists. So tengine won't be aware of the completion of the
action. It will get stuck in S_POLICY_ENGINE state until the action
timer pops. That's not acceptable if the start timeout is quite long.

This patch stops the action timer and abort transition in this case. Does it make sense? I'm not sure if it's neat enough to do this in lrm.c. Do we have a better choice?