Bug 1854388 - must-gather very often fails on timeout
Summary: must-gather very often fails on timeout
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.6
Hardware: x86_64
OS: Linux
Target Milestone: ---
: 4.6.0
Assignee: Maciej Szulik
QA Contact: zhou ying
Depends On:
TreeView+ depends on / blocked
Reported: 2020-07-07 11:41 UTC by Artyom
Modified: 2020-10-27 16:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-10-27 16:12:24 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift oc pull 478 0 None closed Bug 1854388: Revert interval and timeout in mustgather so they make sense 2021-02-05 07:38:32 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:12:46 UTC

Description Artyom 2020-07-07 11:41:30 UTC
Description of problem:
Running the command 
oc adm must-gather --image=registry.stage.redhat.io/openshift4/performance-addon-operator-must-gather-rhel8
on the first try ends with the error
[must-gather      ] OUT namespace/openshift-must-gather-7z6lf deleted
error: gather did not start for pod must-gather-7tkkg: timed out waiting for the condition

The command ended on timeout because it takes time to fetch the new image and it does not look that the timeout argument works properly.

Under the code, I can see that we provide arguments in the wrong order - https://github.com/openshift/oc/blob/41ac95217bc52c10b114d2f5d9225ebd0c59e694/pkg/cli/admin/mustgather/mustgather.go#L428, we provide the timeout as the first argument when it should be the interval.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run 
oc adm must-gather --image=registry.stage.redhat.io/openshift4/performance-addon-operator-must-gather-rhel8

Actual results:
On the first try, the command is failing on the timeout after the minute when the default timeout is 10 minutes.

Expected results:
The command should succeed or fail only after 10 minutes.

Additional info:

Comment 4 zhou ying 2020-07-14 10:04:05 UTC
Can't reproduce the issue with [root@dhcp-140-138 ~]# oc version --client
Client Version: 4.6.0-202007100531.p0-9060d2f

[root@dhcp-140-138 ~]# oc adm must-gather --image=registry.stage.redhat.io/openshift4/performance-addon-operator-must-gather-rhel8   --node-name='ying0714-5xwxf-master-0'
[must-gather      ] OUT Using must-gather plugin-in image: registry.stage.redhat.io/openshift4/performance-addon-operator-must-gather-rhel8
[must-gather      ] OUT namespace/openshift-must-gather-q6hb4 created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-blqsq created
[must-gather-zcvcv] OUT nodes/ying0714-5xwxf-worker-2/ying0714-5xwxf-worker-2_logs_kubelet
[must-gather-zcvcv] OUT 
[must-gather-zcvcv] OUT sent 774 bytes  received 272,863,222 bytes  3,267,832.29 bytes/sec
[must-gather-zcvcv] OUT total size is 272,793,297  speedup is 1.00
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-blqsq deleted
[must-gather      ] OUT namespace/openshift-must-gather-q6hb4 deleted

Comment 6 errata-xmlrpc 2020-10-27 16:12:24 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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

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


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