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

Move bulk of scope script logic into entrypoint.sh, extend testing #524

Merged
merged 5 commits into from
Sep 30, 2015

Conversation

tomwilkie
Copy link
Contributor

Fixes #523 by moving the detection and communication with Weave into the Scope container (and out of the scope script).

Will also help towards #329.

Also

  • Add test for clustering without weave
  • Update test image to docker 1.8
  • Stop publishers when they are replaces (fixes MultiPublisher leaks go routines #531)
  • Poll DNS every 10s to speed up scope clustering

@tomwilkie tomwilkie force-pushed the testing branch 2 times, most recently from 453db41 to 4af13ad Compare September 29, 2015 11:13
@@ -15,4 +15,7 @@ echo Installing weave
for HOST in $HOSTS; do
run_on $HOST "sudo curl -sL git.io/weave -o /usr/local/bin/weave"
run_on $HOST "sudo chmod a+x /usr/local/bin/weave"
weave_on $HOST setup

This comment was marked as abuse.

@tomwilkie tomwilkie changed the title Make integration test check API responses container expected containers. Make integration test check API responses contains expected containers. Sep 29, 2015
@tomwilkie tomwilkie changed the title Make integration test check API responses contains expected containers. Move bulk of scope script logic into entrypoint.sh, extend testing Sep 29, 2015
@tomwilkie tomwilkie force-pushed the testing branch 4 times, most recently from aee5a03 to 441b014 Compare September 29, 2015 16:03
Tom Wilkie added 4 commits September 30, 2015 11:54
Also
- Add test for clustering without weave.
- Update test template for docker 1.8
- Prefetch images
- Stop all containers when test finishes.
- Add small sleep after weave launch, and supply all the hosts to ensure IPAM works correctly.
@paulbellamy
Copy link
Contributor

Why not move most of the logic straight into the go code? instead of the bash? Just expediency?

WEAVEDNS_CONTAINER_NAME=weavedns
HOSTNAME=scope
DOMAINNAME=weave.local
FQDN=$HOSTNAME.$DOMAINNAME
DOCKER_BRIDGE=${DOCKER_BRIDGE:-docker0}

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor Author

Why not move most of the logic straight into the go code? instead of the bash? Just expediency?

Yeah we should do that at some point; that would help with #510. But thats a bigger change, and this gets us some of the way there for now.

@@ -73,15 +107,34 @@ while true; do
shift
done

echo "$APP_ARGS" >/etc/weave/scope-app.args
echo "$PROBE_ARGS" >/etc/weave/scope-probe.args
if is_running $WEAVE_CONTAINER_NAME; then

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@tomwilkie tomwilkie assigned paulbellamy and unassigned tomwilkie Sep 30, 2015
paulbellamy added a commit that referenced this pull request Sep 30, 2015
Move bulk of scope script logic into entrypoint.sh, extend testing
@paulbellamy paulbellamy merged commit 58ef2b5 into master Sep 30, 2015
peterbourgon added a commit that referenced this pull request Sep 30, 2015
@tomwilkie tomwilkie deleted the testing branch October 5, 2015 10:08
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.

MultiPublisher leaks go routines Weave integration has false negatives
2 participants