-
Notifications
You must be signed in to change notification settings - Fork 183
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
Error reporting in a collection script cause "oc adm must-gather" to fail #85
Comments
To add more information :
|
Do you get the same thing with:
|
No, same result :
|
And just to show that the command works under normal circonstance :
|
Unfortunately, the pod's logs don't tell you much. This is what I get:
I got this by running:
In a different terminal run the following:
@sanchezl we may want to improve the logging around: https://github.com/openshift/origin/blob/master/pkg/oc/cli/admin/mustgather/mustgather.go#L239-L241 to output the pods logs to the user (or at the very least save them to a file). @djfjeff can you try setting the following at the top of your bash script:
|
@sferich888 Same result with |
If the script fails, the pod fails.
|
@sanchezl Adding the However, it would be great if |
@djfjeff @sanchezl and I discussed that today, and I think we want to make it so that all commands out of the 'gather' container returns For now, adding |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I created a custom image with a new collection script called gather-cnv (https://github.com/djfjeff/must-gather/blob/gather-cnv-support/collection-scripts/gather-cnv).
Basically, for now, the new collection script only do :
openshift-must-gather inspect ns/kubevirt
Manually running the inspect command above fetch the information but still produce some error output :
The issue I have is when running it with
oc adm must-gather
, it seems the error reporting break the gather init container and make the whole process to fail :To confirm, I try changing the namespace I gather in gather-cnv from ns/kubevirt to ns/default (which does not produce any error reporting) and everything works fine.
The text was updated successfully, but these errors were encountered: