'pcs cluster auth' fails with "Unable to connect to pcsd" or "Unable to communicate" in a High Availability cluster with pacemaker

Solution Verified - Updated -

Issue

  • While configuring the pacemaker cluster, pcs cluster auth command is failing with the below error message
# pcs cluster auth node1 node2
Username: hacluster
Password:
Error: unable to connect to pcsd on node1
Unable to connect to node1 ([Errno -2] Name or service not known)
  • A cluster node was not authorized:
# pcs cluster auth 10.X.X.1 10.X.X.2
Username: hacluster
Password: 
10.X.X.1: Already authorized
Error: Unable to communicate with 10.X.X.2

Environment

  • Red Hat Enterprise Linux (RHEL) 6, 7, or 8 with the High Availability Add On
  • Pacemaker
  • pcs

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content