-
Notifications
You must be signed in to change notification settings - Fork 347
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
Decoding file /tmp/sonobuoy/..../error.json cannot unmarshal object into Go value of type string #994
Comments
Thanks for the tarball; it helps immensely when debugging this. So the Also, the
So so I can tell what happened is that the aggregator pod saw that the e2e container had completed and after waiting a while it still never got results from the plugin so it recorded the error and unblocked itself. So I opened up the tarball and looked at the sonobuoy worker logs to see if it tried to report results. It did, but kept getting an error:
So it kept trying to send results to the aggregator but seemed to keep failing due to a timeout. Unfortunately, there doesn't seem to be any particular logs regarding a problem during that time but if the pod isn't able to PUT the results then there isn't much we can do to resolve that. The first/main thing to resolve in this situation is the post-processing error you saw; improperly trying to parse the errors.json file. |
Thanks. I will await further advancements on this issue. 👍 |
@Joseph94m Also I wanted to make sure you knew that, according to the pod logs for the e2e run, the 1 test you ran did succeed (in case you were unsure). The PR to resolve the error parsing is up as well if you want to take a look at it. |
@johnSchnake Thanks. I saw the PR too and the changes seem logical |
Currently we were handling only the simple case where the errors.json file contains a map of strings. However, there are situations where the json file may contain more structured data which needs handled. Fixes #994 Signed-off-by: John Schnake <[email protected]>
What steps did you take and what happened:
We've setup a k8s infra with the following output for kubectl get pods --all-namespaces -o wide
Then we've run:
sonobuoy run --wait --mode quick
results=$(sonobuoy retrieve)
sonobuoy status
returns:sonobuoy e2e $results
returns:ERRO[0000] could not get tests from archive: failed to find results file "plugins/e2e/results/global/junit_01.xml" in archive
I decided to view the logs on the concerned pod using:
sonobuoy logs -p e2e -f
The truncated result is the following:
What did you expect to happen:
I would expect the Unmarshal error not to occur.
Environment:
kubectl version
): 1.15.3/etc/os-release
): Centos el7, Linux ns3150165 3.10.0-1062.4.1.el7.x86_64 # 1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux201911130912_sonobuoy_d5b45f6d-c3bb-40d2-bf42-93e700855c86.tar.gz
The text was updated successfully, but these errors were encountered: