-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Enable --log-level=info for docker daemons for scalability jenkins jo… #22453
Conversation
Labelling this PR as size/S |
@@ -69,6 +69,7 @@ ENABLE_CLUSTER_MONITORING="${KUBE_ENABLE_CLUSTER_MONITORING:-influxdb}" | |||
# Default Log level for all components in test clusters and variables to override it in specific components. | |||
TEST_CLUSTER_LOG_LEVEL="${TEST_CLUSTER_LOG_LEVEL:---v=4}" | |||
KUBELET_TEST_LOG_LEVEL="${KUBELET_TEST_LOG_LEVEL:-$TEST_CLUSTER_LOG_LEVEL}" | |||
DOCKER_TEST_LOG_LEVEL="${DOCKER_TEST_LOG_LEVEL:---log-level=info}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have it default to info
instead of empty?
- That's redundant with the change in
kubernetes-e2e.yaml
; - If the default drifts elsewhere, this default won't drift with it, which is probably bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubernetes-e2e.yaml only affects jenkins project. I also want to enable this for dev's e2e tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally we'd prefer that test clusters look as similar to prod clusters as possible. cc @spxtr @kubernetes/goog-testing
I'm a bit skeptical of the default, otherwise LGTM. |
Also I know ~zero about the salt stuff, so @mikedanese should still review that. |
GCE e2e build/test passed for commit 84689a7. |
LGTM |
@@ -139,6 +139,8 @@ | |||
export REGISTER_MASTER="true" | |||
# Reduce logs verbosity | |||
export TEST_CLUSTER_LOG_LEVEL="--v=2" | |||
# TODO: Remove when we figure out #22166 and other docker potential slowness | |||
export DOCKER_TEST_LOG_LEVEL="--log-level=info" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably don't need this, since it's also specified in config-test.sh?
Enable --log-level=info for docker daemons for scalability jenkins jo…
This appears to have broken all gke e2e runs. I tried creating a test cluster and got the same failure. Tailing
Reverting this to unbreak e2e, we can roll forward after. |
@@ -7,5 +7,9 @@ | |||
{% if pillar.get('network_provider', '').lower() == 'kubenet' %} | |||
{% set bridge_opts = "" %} | |||
{% endif -%} | |||
DOCKER_OPTS="{{grains_opts}} {{e2e_opts}} {{bridge_opts}} --iptables=false --ip-masq=false --log-level=warn" | |||
{% set log_level = pillar['log_level'] -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
{% set log_level = "--log-level=warn" -%}
or
{% set log_level = "" -%}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault! Copy&paste this code and forgot to remove. Sorry about this.
…b and e2e test.
This should help with debugging #22166, #21866 and #22259