Bug 1917850 - The error is not appropriate when `oc adm must-gather` failed : error: unable to download output from pod must-gather-z48bh: No available strategies to copy.
Summary: The error is not appropriate when `oc adm must-gather` failed : error: unabl...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.7
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-19 14:27 UTC by zhou ying
Modified: 2023-10-30 08:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-05 14:48:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhou ying 2021-01-19 14:27:38 UTC
Description of problem:
Run the `oc adm must-gather` command with a cluster has issue, will hit error: 
WARNING: cannot use rsync: rsync not available in container
WARNING: cannot use tar: tar not available in container
[must-gather-z48bh] OUT gather output not downloaded: No available strategies to copy.
[must-gather-z48bh] OUT 
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-m5q2b deleted
[must-gather      ] OUT namespace/openshift-must-gather-czn2b deleted
error: unable to download output from pod must-gather-z48bh: No available strategies to copy.
We can sure we use the default image of must-gather and can't reproduce this on a normal cluster. 

Version-Release number of selected component (if applicable):
[root@dhcp-140-138 roottest]#  oc version --client
Client Version: 4.7.0-0.nightly-2021-01-19-014259


How reproducible:
always

Steps to Reproduce:
1. The cluster has some issue, try to use `oc adm must-gather` to collect the cluster info. 
2.
3.

Actual results:
1. The `oc adm must-gather` failed with error, but the error info is not appropriate:   error: unable to download output from pod must-gather-z48bh: No available strategies to copy.
[root@dhcp-140-138 roottest]#  oc adm must-gather 
[must-gather      ] OUT Using must-gather plug-in image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c776ff6ca316d40b1369fa01a88cf7ddebc5afcec111268ef77ec775b52fe784
[must-gather      ] OUT namespace/openshift-must-gather-czn2b created
....

WARNING: cannot use rsync: rsync not available in container
WARNING: cannot use tar: tar not available in container
[must-gather-z48bh] OUT gather output not downloaded: No available strategies to copy.
[must-gather-z48bh] OUT 
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-m5q2b deleted
[must-gather      ] OUT namespace/openshift-must-gather-czn2b deleted
error: unable to download output from pod must-gather-z48bh: No available strategies to copy.

Expected results:
1. Show definitely improve messaging when `oc adm must-gather` failed.

Additional info:

Comment 3 Maciej Szulik 2021-02-05 14:48:10 UTC
Moved to https://issues.redhat.com/browse/WRKLDS-259

Comment 4 Martin Bukatovic 2022-02-23 18:45:54 UTC
I isolated a specific reproducer of a similar problem here: Bug 2057633 oc rsync reports misleading error when container is not found


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