Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1917850

Summary: 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.
Product: OpenShift Container Platform Reporter: zhou ying <yinzhou>
Component: ocAssignee: Maciej Szulik <maszulik>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED DEFERRED Docs Contact:
Severity: low    
Priority: low CC: aos-bugs, jokerman, mbukatov, mfojtik, rpalathi, wlewis
Version: 4.7   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-05 14:48:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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