Hi All,
I was trying to enable WAN discovery with Consul and running into some issues.
I have two data centers running on Openstack - dc-richardson and dc-texas.
dc-texas uses floating ip for communicating outside. dc-richardson has a public ip.
I did a consul join -wan from primary consul node in dc-richardson to primary node in dc-texas using
consul join -wan "richardson_public_ip texas_floating_ip"
It responded with " Successfully joined cluster by contacting 2 nodes. "
Output of consul membes -wan below
[root@pb-dc-richardson-control-01 state846218620]# consul members -wan
Node Address Status Type Build Protocol DC
pb-dc-richardson-control-01.dc-richardson <public_ip>:8302 alive server 0.5.2 2 dc-richardson
pb-dc-texas-control-01.dc-texas 192.168.128.10:8302 alive server 0.5.2 2 dc-texasAs you can see in the dc-texas IP it doesn't show floating / elastic ip , instead shows the private ip.
In the log message I see raft failure as it can't reach the private IP.
Aug 14 22:14:52 pb-dc-richardson-control-01 consul: 2015/08/14 22:14:52 [INFO] memberlist: Suspect pb-dc-texas-control-01.dc-texas has failed, no acks received
Aug 14 22:14:57 pb-dc-richardson-control-01 consul: 2015/08/14 22:14:57 [INFO] memberlist: Marking pb-dc-texas-control-01.dc-texas as failed, suspect timeout reached
Aug 14 22:14:57 pb-dc-richardson-control-01 consul: 2015/08/14 22:14:57 [INFO] serf: EventMemberFailed: pb-dc-texas-control-01.dc-texas 192.168.128.10
Aug 14 22:14:57 pb-dc-richardson-control-01 consul: 2015/08/14 22:14:57 [INFO] consul: removing server pb-dc-texas-control-01.dc-texas (Addr: 192.168.128.10:8300) (DC: dc-texas)
Aug 14 22:14:57 pb-dc-richardson-control-01 consul[13228]: consul: removing server pb-dc-texas-control-01.dc-texas (Addr: 192.168.128.10:8300) (DC: dc-texas)
Now I am not able to unjoin the two either.
consul force-leave 192.168.128.10
consul force-leave <floating_ip>
consul can't reach 192.168.128.10 , so that command fails.
force-leave for floating ip also fails.
Is this a configuration problem , bug or wan discovery using floating ip has not been implemented yet ?
Thanks,
Saswat