-
Notifications
You must be signed in to change notification settings - Fork 344
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
untarring sonobuoy retrieve
tarball sometimes results in EOF in archive error
#572
Comments
/assign @chuckha This isn't actually a problem with sonobuoy but an issue with streaming to tar and how messages are propagated. This has existed for quite some time. |
@timothysc can you recommend a workaround to deterministically download a correct results tarball? Maybe just keep downloading and extracting it locally until the tar extract command succeeds? |
I'm having trouble finding a reference to the streaming tar/msg propagation issue you mention. Could you provide a link or some more details to make it searchable? I had thought it had to do with simply having a large tarball so I was using a custom kube-conformance image to test that theory but haven't been able to repro locally. It seemed like I would get this often though whenever I was using a cluster in the cloud and had networking/latency to contend with. |
In my analysis so far I've now been able to repro this and I think I know the issue, but a sanity check is good. It seems just that the root issue is that the The issue is that once they report done, the master node still compresses everything into a tar.gz which takes time if it is large. I was able to repro this by using a custom kube-conformance image ( So it seems like the fix is that the master itself needs to report another status that we monitor indicating if the roundup/prep of the results is really ready or not. |
A work around an issue in sonobuoy, retry to fetch the results. See vmware-tanzu/sonobuoy#572 https://gitlab.noris.net/PI/koris/-/jobs/52929 Also fix a small issue in the code.
What steps did you take and what happened:
I have a script used in CI that:
complete
Occasionally the last step fails with the following output:
Which suggests to me that
sonobuoy retrieve
is not waiting for the tarball to be complete before pulling it locally.What did you expect to happen:
I expect to be able to untar the tarball and grep files of interest to display results.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Seems potentially related to the following two issues:
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: