The problem was due to OCF script not cleaning up mnesia directory at all. pacemaker log contained a lot of entries about resetting mnesia, but looking into /var/lib/rabbitmq/rabbit@<nodename> directory revealed a lot of files with modification time predating every log record about reset - which shouldn't happen if reset happened correctly.
The problem was due to OCF script not cleaning up mnesia directory at all. pacemaker log contained a lot of entries about resetting mnesia, but looking into /var/lib/ rabbitmq/ rabbit@ <nodename> directory revealed a lot of files with modification time predating every log record about reset - which shouldn't happen if reset happened correctly.