title: unable to connect to node rabbit@localhost: nodedown , despite I copied the cookie all over
body: <p>I'm trying to follow this guide <a href="https://www.rabbitmq.com/pacemaker.html" rel="nofollow noreferrer">https://www.rabbitmq.com/pacemaker.html</a> to install RabbitMQ on top of pacemaker.
  (I know there is already a newer system but I'm trying this one).</p>
  
  <p>I have two ubuntu 16.04 machine called rabbitmq1 &amp; rabbitmq2 which able to ping each other by name (rabbitmq version 3.6.15 Erlang 20.2) with working pacemaker, DRDB and Corosync.</p>
  
  <p>After all was set I added a this resource to pacemaker:
  configure primitive bunny ocf:rabbitmq:rabbitmq-server params mnesia_base="/media/drbd1"</p>
  
  <p>This is the error I got:</p>
  
  <blockquote>
    <p>Hostname mismatch: node "rabbit@rabbitmq1" believes its host is
    different. Please ensure that hostnames resolve the same way locally
    and on "rabbit@rabbitmq1"  </p>
  </blockquote>
  
  <p>current node details:</p>
  
  <blockquote>
    <ul>
    <li>node name: 'rabbitmq-cli-65@rabbitmq1'</li>
    <li>home dir: /var/lib/rabbitmq - </li>
    <li>cookie hash: O9bMZ3LMnkSPaakjdRYHuw==</li>
    </ul>
  </blockquote>
  
  <p>I  tried copying this erlang cookie file to all usere home folder from this location /var/lib/rabbitmq/.erlang.cookie (both to the home folder of root user and to the home folder or rabbitmq user) but it's not helping.
  what am I doing wrong?</p>