Erase mnesia if a rabbit node cannot join the cluster
Erase mnesia if a rabbit node cannot join the cluster

W/o this fix, the situation is possible when a
rabbit node would stuck in a start/stop loop failing
to join the cluster with an error:
"no_running_cluster_nodes, You cannot leave a cluster
if no online nodes are present."

This is an issue because the rabbit node should always
be able to join the cluster, if it was ordered to start
by pacemaker RA.

The solution is to force the mnesia reset, if the
rabbit node cannot join the cluster on post-start
notify. Note, that for the master starting, the node
wouldn't be reset. So, the mnesia will be kept intact
at least on the resource master.

Partial-bug: #1461509

Change-Id: I69bc13266a1dc784681b2677ae5616bfc28cf54f
Signed-off-by: Bogdan Dobrelya <0b23cd1e586d5f091fecb3391314c2b9ec1fd641@mirantis.com>

xarses/fuel-library,xarses/fuel-library,ddepaoli3/fuel-library-dev,ddepaoli3/fuel-library-dev,stackforge/fuel-library,huntxu/fuel-library,ddepaoli3/fuel-library-dev,stackforge/fuel-library,ddepaoli3/fuel-library-dev,stackforge/fuel-library,eayunstack/fuel-library,eayunstack/fuel-library,xarses/fuel-library,stackforge/fuel-library,ddepaoli3/fuel-library-dev,huntxu/fuel-library,eayunstack/fuel-library,xarses/fuel-library,huntxu/fuel-library,huntxu/fuel-library,eayunstack/fuel-library,huntxu/fuel-library,eayunstack/fuel-library