-
Notifications
You must be signed in to change notification settings - Fork 345
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
Failed e2e tests don't appear to be stored #910
Comments
Could you share your tarball with me? This is a somewhat common failure mode where the plugin fails to report the results to Sonobuoy. Without seeing the logs it is hard to diagnose though. |
The logs from the e2e container (captured in a terminal session running
|
Thanks so much for the logs. Some things expected, some things not:
Unexpected
Note:
2 possible things right now I'm most concerned about:
Continuing to investigate. |
From pod info, the container exited 1 at
And in the Sonobuoy logs, it stopped waiting for results at:
So it did wait 5 more miniutes after the container terminated to see results.
|
So it does seem the problem lays in the upstream image. kubernetes/kubernetes@2242718#diff-0efd26687540ba2cbfd9547019622551R70 modified the code to run the tests in the foreground and eliminated a race. However, when it exits non-zero it causes the script to exit immediately without saving results and sending them to sonobuoy. Remediation: You can leverage the go-based runner which was added this release as well by setting It may be that we need to make this default for Sonobuoy sooner than expected. We wanted to use it in our testing but let it soak a bit but if the e2e image isn't reporting results in failure situations then we need to address it. We may be able to publish a new e2e conformance image once fixing it, but in the past, I think we had to just wait until the next release, especially if Sonobuoy was able to mitigate the problem. |
In Kubernetes 1.16.0 a problem in the bash runner of the conformance tests caused the plugin to fail to report results whenever a test failure occured. This problem does not impact the golang-based runner which was introduced also in Kubernetes 1.16.0. By default we would like to use this feature as a result. It is a new feature but has been shown so far to be functional and an improvement over the bash-based runner (e.g. like this issue in general). Users of Sonobuoy v0.16.0 should update to a version which utilizes this env var by default, but they can also specify --plugin-env e2e.E2E_USE_GO_RUNNER=true to workaround the issue. If users of new versions of Sonobuoy wish to NOT use the go runner they can also set --plugin-env e2e.E2E_USE_GO_RUNNER to unset the value. Fixes #910 Signed-off-by: John Schnake <[email protected]>
What steps did you take and what happened:
e2e fails some conformance tests, but sonobuoy retrieve doesn't store the failures.
What did you expect to happen:
To be able to inspect and list the failures that have occurred.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Running the logs on the e2e containers shows that the test ran and displayed errors. Two sig-network tests failed.
The e2e container has gone once the run completes.
Environment:
kubectl version
):Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:27:17Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
kubeadm version: &version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:34:01Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Brightbox
/etc/os-release
):Ubuntu 18.04.3 LTS
The text was updated successfully, but these errors were encountered: