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

scope: use same Docker args for early dry run #2326

Merged
merged 1 commit into from
Mar 14, 2017

Conversation

schu
Copy link
Contributor

@schu schu commented Mar 13, 2017

launch first does a scope --dry-run to parse and validate Scope
cmdline arguments before starting the main Scope container and
processes. Use the same Docker args for the dry run to make sure the
container has the same privileges and mount points. Otherwise valid
$WEAVESCOPE_DOCKER_ARGS might fail here.

@schu
Copy link
Contributor Author

schu commented Mar 13, 2017

We want to do something like

 WEAVESCOPE_DOCKER_ARGS="-v /dev/net:/sys/kernel/debug/tracing" ./scope launch -probe.ebpf.connections=true

to test the fallback for #2215 Currently, that's not possible due to dry run with $WEAVESCOPE_DOCKER_ARGS

@schu
Copy link
Contributor Author

schu commented Mar 13, 2017

cc @alban

@2opremio
Copy link
Contributor

I am thinking that, instead, it may be better to simply dry-run with the exact same docker arguments as launch (privileges and all). In that way we will detect more problems early. Thoughts?

@schu
Copy link
Contributor Author

schu commented Mar 13, 2017

I am thinking that, instead, it may be better to simply dry-run with the exact same docker arguments as launch (privileges and all). In that way we will detect more problems early. Thoughts?

Sound ok to me, will prepare a fixup to do that.

@schu schu mentioned this pull request Mar 13, 2017
2 tasks
`launch` first does a `scope --dry-run` to parse and validate Scope
cmdline arguments before starting the main Scope container and
processes. Use the same Docker args for the dry run to make sure the
container has the same privileges and mount points. Otherwise valid
`$WEAVESCOPE_DOCKER_ARGS` might fail here.
@schu schu force-pushed the schu/scope-dry-run branch from 7f05f42 to 5f85256 Compare March 14, 2017 09:17
@schu
Copy link
Contributor Author

schu commented Mar 14, 2017

Updated.

@2opremio
Copy link
Contributor

LGTM, please update the PR title

@schu schu changed the title [RFC] scope: don't use WEAVESCOPE_DOCKER_ARGS in dry run scope: use same Docker args for early dry run Mar 14, 2017
@schu
Copy link
Contributor Author

schu commented Mar 14, 2017

Done.

@2opremio 2opremio merged commit 250718d into weaveworks:master Mar 14, 2017
@schu schu deleted the schu/scope-dry-run branch March 14, 2017 10:56
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