I'm trying to configure pacemaker cluster with two hosts, I'm using two centos 7(CentOS Linux release 7.2.1511 (Core)) virtual machines.
What I did so far: I installed packages:
yum install pacemaker corosync haproxy pcs fence-agents-all
Set password for user hacluster on both servers. Edit /etc/hosts on both machines
10.0.0.14 vm_haproxy1 10.0.0.15 vm_haproxy2
After that enabled services on both servers
systemctl enable pcsd.service pacemaker.service corosync.service haproxy.service
And started pcsd (on both servers)
systemctl start pcsd.service
Service is running on both, I can telnet from one to another on port 2224
telnet vm_haproxy1 2224 Trying 10.0.0.14... Connected to vm_haproxy1. Escape character is '^]'.
Output from the netstat:
[root@vm_haproxy2 ~]# netstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 849/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 946/master tcp6 0 0 :::2224 :::* LISTEN 1949/ruby tcp6 0 0 :::22 :::* LISTEN 849/sshd tcp6 0 0 ::1:25 :::* LISTEN 946/master udp 0 0 127.0.0.1:323 0.0.0.0:* 619/chronyd udp6 0 0 ::1:323 :::* 619/chronyd
Pcsd is binding to ipv6 but like I already said telnet works Selinux and firewalld are disabled.
Then I tried to authorise hosts with
pcs cluster auth vm_haproxy1 vm_haproxy2
but I got an error:
pcs cluster auth vm_haproxy1 vm_haproxy2 Username: hacluster Password: Error: Unable to communicate with vm_haproxy1 Error: Unable to communicate with vm_haproxy2
I didn't find any help on google. Maybe there is some one who had already solved that problem with pcs authorisation.