-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.21
-
None
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
While running oc adm must-gather if there are any errors reported, they show up on the oc cli process on the terminal but are not persisted to the gathered directory. The collected "must-gather.logs" do not have the stderr messages.
Version-Release number of selected component (if applicable):
Any OpenShift version
How reproducible:
During collection of must-gather through oc adm must-gather, a ClusterRoleBinding is created (https://github.com/openshift/oc/blob/main/pkg/cli/admin/mustgather/mustgather.go#L1078-L1107) in between collection process while oc is active, remove the binding forcefully to induce some RBAC errors.
Steps to Reproduce:
1.
2.
3.
Actual results:
The errors are reported on the terminal but not on the collected must-gather.logs
Expected results:
The must-gather.logs file should keep the collection error messages too.
Additional info:
When oc adm must-gather reports some issues there is no way for us to read the errors back from the must-gather.logs, this is an issue because that means we never what went wrong.