-
Notifications
You must be signed in to change notification settings - Fork 339
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
Plugins getting cleaned up too early? #1657
Comments
Checked and this bug does not occur with v0.50.0; havent checked other versions yet though. Notable difference is that on v0.50.0 the pod reads as 'NotReady 1/2' where the e2e container completed by the sonobuoy worker is still running. |
Mistakenly thought v0.55 had the problem but it didnt. Still investigating. |
So now I can't reproduce at all. 👎 I know this was happening because it was happening while I was trying to debug a different, new plugin and I really wanted to see those logs. Keeping this open in case others have similar reports. |
I am able to reproduce it. See the steps:
$ sonobuoy run --mode=certified-conformance --dns-namespace=openshift-dns \
> --dns-pod-labels=dns.operator.openshift.io/daemonset-dns=default
INFO[0002] create request issued name=sonobuoy namespace= resource=namespaces
INFO[0002] create request issued name=sonobuoy-serviceaccount namespace=sonobuoy resource=serviceaccounts
INFO[0002] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterrolebindings
INFO[0002] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterroles
INFO[0002] create request issued name=sonobuoy-config-cm namespace=sonobuoy resource=configmaps
INFO[0003] create request issued name=sonobuoy-plugins-cm namespace=sonobuoy resource=configmaps
INFO[0003] create request issued name=sonobuoy namespace=sonobuoy resource=pods
INFO[0003] create request issued name=sonobuoy-aggregator namespace=sonobuoy resource=services
What did you expect to happen: The logs of plugins are present inside Anything else you would like to add: I will try to reproduce it in custom plugins and share feedback. Environment:
|
I just tried with custom plugins and also did not work, all the logs from the plugin's pods were not included on the tarball. |
5577b2d confirmed as the point at which this bug was introduced. When refactoring the query logic it accidentally got bumped to after the cleanup routine. I want to do a release today and would love to include a patch for this in it. |
Came down sick on Friday; fixing this up today and getting a release out though. |
@johnSchnake version |
What steps did you take and what happened:
Run
sonobuoy run -m quick --wait && sonobuoy retrieve -x tmpout && find tmpout/podlogs/sonobuoy
. Notice that there are no podlogs for the e2e plugin.What did you expect to happen:
See the pod logs for the e2e plugin. We're supposed to be waiting to clean up the pods until after cleanup occurs. I thought it was the case that the pod stuck around in a completed state even though both containers were done.
Anything else you would like to add:
This seems to be a regression; I'd have to find the old ticket but this has come up before a long time ago.
The text was updated successfully, but these errors were encountered: