Bug 1748372 - oc adm must-gather must prefix lines from stdout and stderr
Summary: oc adm must-gather must prefix lines from stdout and stderr
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.2.0
Assignee: Luis Sanchez
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-03 12:55 UTC by Maciej Szulik
Modified: 2019-10-16 06:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-16 06:39:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 83 0 None closed Bug 1748372: oc adm must-gather must prefix lines from stdout and stderr 2020-10-07 00:54:52 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:40:03 UTC

Description Maciej Szulik 2019-09-03 12:55:25 UTC
Currently oc adm must-gather prints all log lines together, but we need a prefix to tell which is coming from stdout and which from stderr.

Comment 1 David Eads 2019-09-03 13:02:41 UTC
More precisely, we need to know which lines come from the pod we're running and which lines are from the command itself.  We're getting bugs about output from other product's gather scripts.

Comment 3 zhou ying 2019-09-05 03:32:40 UTC
Confirmed with latest oc version: 4.2.0-201909041019.git.1.c97b1af.el7
the stdout and stderr prefixed like this : 
[must-gather-np8xr] POD Error: one or more errors ocurred while gathering pod-specific data for namespace: openshift-etcd

.......
[must-gather-np8xr] POD INFO: Audit logs for kube-apiserver collected.
[must-gather-np8xr] POD WARNING: Collecting one or more service logs on ALL master nodes in your cluster. This could take a large amount of time.
[must-gather-np8xr] POD INFO: Collecting host service logs for kubelet
[must-gather-np8xr] POD INFO: Collecting host service logs for crio
[must-gather-np8xr] POD INFO: Waiting for worker host service log collection to complete ...
[must-gather-np8xr] POD INFO: Worker host service log collection to complete.
[must-gather-np8xr] OUT waiting for gather to complete
[must-gather-np8xr] OUT downloading gather output
[must-gather-np8xr] OUT receiving incremental file list
[must-gather-np8xr] OUT created directory must-gather.local.7355098706727993903
[must-gather-np8xr] OUT ./
[must-gather-np8xr] OUT audit_logs/
[must-gather-np8xr] OUT audit_logs/kube-apiserver.audit_logs_listing
[must-gather-np8xr] OUT audit_logs/openshift-apiserver.audit_logs_listing
[must-gather-np8xr] OUT audit_logs/kube-apiserver/
[must-gather-np8xr] OUT audit_logs/kube-apiserver/qesimard-ntly-04-1023-hdf8r-master-0-audit-2019-09-04T21-12-44.929.log.gz
[must-gather-np8xr] OUT audit_logs/kube-apiserver/qesimard-ntly-04-1023-hdf8r-master-0-audit-2019-09-04T21-49-41.626.log.gz
[must-gather-np8xr] OUT audit_logs/kube-apiserver/qesimard-ntly-04-1023-hdf8r-master-0-audit-2019-09-04T22-33-49.861.log.gz

Comment 4 errata-xmlrpc 2019-10-16 06:39:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2922


Note You need to log in before you can comment on or make changes to this bug.