HA Consul leaves all Swarm nodes in Pending state #2320
Comments
Update: I was able to bypass this issue for the most part by creating nodes with the following command:
Just by adding the
I can now run HA consul and HA swarm but I still think this is an issue and not an optimal solution. |
issue on docker machine? |
It's possible. The only thing I found that's similar is docker/machine#3321 |
I had the same issue with Consul behind ELB. Perhaps some special ELB configuration needed? I opted to dnsmasq until solved. |
Thanks @mixman! The ELB seems to have been the problem. Before I had a CNAME point to the ELB that I had made. I seem to have fixed it by changing it from a CNAME pointing to an ELB to an A record pointing to the private IP's of the consul nodes. Then when I was running the swarm managers/nodes I simply put Closing this as it seems to be a consul issue and not a swarm issue. |
I set up a 3 node consul cluster as follows.
Then I ran the
progrium/consul
image and got a running cluster.They are running on the private network so I created an internal loadbalancer.
Then I created 3 swarm nodes as follows:
To make sure it was accessible I ran
curl -I internal-consul-628946685.us-east-1.elb.amazonaws.com/v1/catalog/datacenters
on all of the swarm nodes and they all returned 200.Then I created 3 swarm managers as follows
and I did the same to join the 3 nodes to the cluster.
Now when I
docker info
against the manager I get the follow:Tailing the logs of the manager I see that a new manager is elected every minute or so. Consul knows that the nodes exist because I can see them in the UI view.
and I can also see that a manager has been elected
I'm fairly sure this is a problem with HA consul because I have run single node consul before with swarm and everything works just fine.
I've googled about everything I can but I haven't been able to find a solution. Any help would be appreciated.
EDIT: I have tried the same thing with the official consul image by running this command :
The results are the same. Swarm still has all three nodes stuck in a pending state.
The text was updated successfully, but these errors were encountered: