I have all my Redis servers configured like this:
Masters: 192.168.0.106:7001, 192.168.0.105.7001, 192.168.0.112:7001
Slaves: 192.168.0.106:7002, 192.168.0.105:7002, 192.168.0.122:7002
Where the 192.168.0.106:7002 server is a slave of the 192.168.0.106:7001 server and so on. I have all servers up ana running and can do redis-cli to all of them. I can see the 17001 and 17002 ports open too. But when I run:
./redis-trib.rb create --replicas 1 192.168.0.106:7001 192.168.0.105:7001 192.168.0.112:7001 192.168.0.106:7002 192.168.0.105:7002 192.1268.0.112:7002
I get an error:
Creating cluster
[ERR] Sorry, can't connect to node 192.168.0.106:7001
I have no idea how to troubleshoot this when all servers are working and their ports are open?
One thing is that I do have the masters protected with a password. Maybe redis-trib.rb is not able to handle servers which are password protected?