Skip to content

Fix Consul --retry-join failure - #73

Merged
tgross merged 3 commits into
autopilotpattern:masterfrom
tgross:gh71
Dec 9, 2016
Merged

tgross merged 3 commits into
autopilotpattern:masterfrom
tgross:gh71

Conversation

@tgross

@tgross tgross commented Dec 9, 2016 •

Copy link
Copy Markdown
Contributor

This PR is for problems discovered with Consul clustering as part of debugging #71.

The Consul server was continually trying to join itself because I switched it to use autopilotpattern/consul when it's only a single-node cluster.

Also, when we reload the config for the primary, the logic in manager/containerpilot.py includes the port 8500 in the -retry-join field which it should not. So we join Consul just fine and then keep trying to re-join on a port that doesn't work after the reload.

cc @misterbisson @jasonpincin @mbbender

@tgross tgross mentioned this pull request Dec 9, 2016
@tgross tgross changed the title Work-in-progress for #71 Fix Consul --retry-join failure Dec 9, 2016
Comment thread docker-compose.yml
-ui-dir /ui
image: consul:0.7.1
command: >
agent -server -client=0.0.0.0 -bootstrap -ui

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well isn't that clean?

@tgross
tgross merged commit 62878e0 into autopilotpattern:master Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants