pcs cluster setup does not connect to nodes using the IP addresses specified in the addr options
Issue
pcs cluster setup
tries to connect over public IP addresses even though I specified alternate heartbeat addresses in theaddr
options.
[root@rhel-8-node1 ~]# grep rhel-8 /etc/hosts
1.1.1.1 rhel-8-node1
1.1.1.2 rhel-8-node2
2.2.2.1 rhel-8-node1-priv
2.2.2.2 rhel-8-node2-priv
[root@rhel-8-node1 ~]# pcs host auth rhel-8-node1 rhel-8-node2
Username: hacluster
Password:
rhel-8-node2: Authorized
rhel-8-node1: Authorized
[root@rhel-8-node1 ~]# # AFTER BLOCKING PCSD TRAFFIC TO THE 1.1.1.* IP ADDRESSES
[root@rhel-8-node1 ~]# pcs cluster setup rhel-8-testcluster rhel-8-node1 addr=2.2.2.1 rhel-8-node2 addr=2.2.2.2 --debug --force
...
Sending HTTP Request to: https://rhel-8-node1:2224/remote/check_host
Sending HTTP Request to: https://rhel-8-node2:2224/remote/check_host
^CTraceback (most recent call last):
...
Environment
- Red Hat Enterprise Linux (RHEL) 8 with the High Availability Add-on
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.