Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port missing sometimes when announcing userland units #12

Open
lukebond opened this issue Apr 22, 2015 · 0 comments
Open

Port missing sometimes when announcing userland units #12

lukebond opened this issue Apr 22, 2015 · 0 comments
Labels

Comments

@lukebond
Copy link
Contributor

When the user creates a service and it gets deployed on the platform, often the port is missing from the announce data written into etcd by the announce sidekick.

e.g.:

core@yld-paz-2 ~ $ etcdctl get /paz/services/intranet/6/1
10.131.238.241:

But if you restart the announce unit it will be fixed. E.g.:

core@yld-paz-2 ~ $ fleetctl stop intranet-announce-6-1 && sleep 2 && fleetctl start intranet-announce-6-1
Unit intranet-announce-6-1.service loaded on 76f05a29.../178.62.94.203
Unit intranet-announce-6-1.service launched on 76f05a29.../178.62.94.203
core@yld-paz-2 ~ $ etcdctl get /paz/services/intranet/6/1
10.131.238.241:49192

My guess it that it isn't correctly waiting for the port to be assigned before trying to fetch it with docker inspect.

Given that the hand-written announce unitfiles for the internal Paz services are more battle-tested, I propose re-writing lib/unitfile.js to write announce unitfiles the same as paz-orchestrator (for e.g.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant