Bug 2048960

Summary: cnv-must-gather-rhel8:v4.10.0-104 can't be pulled
Product: Container Native Virtualization (CNV) Reporter: Yossi Segev <ysegev>
Component: LoggingAssignee: Nobody <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: cnv-qe-bugs, myakove, rnetser, stirabos
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: 2022-02-01 09:43:28 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:
Bug Depends On:    
Bug Blocks: 1959039, 2025750, 2030686    

Description Yossi Segev 2022-02-01 09:16:07 UTC
Description of problem:
When running must-gather using CNV image 4.10.0-104, the action fails with ImagePullBackOff


Version-Release number of selected component (if applicable):
Client Version (oc): 4.10.0-202201281850.p0.g7c299f1.assembly.stream-7c299f1
Server Version: 4.10.0-fc.4
Kubernetes Version: v1.23.0+d30ebbc
CNV: v4.10.0-629
CNV must-gather: v4.10.0-104


How reproducible:
Always

Steps to Reproduce:
1. Run CNV must gather
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v4.10.0-104 --dest-dir=mg-out/


Actual results:
$ oc adm must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v4.10.0-104 --dest-dir=mg-out/ 
[must-gather      ] OUT Using must-gather plug-in image: registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v4.10.0-104
When opening a support case, bugzilla, or issue please include the following summary data along with any other requested information.
ClusterID: 78adf009-128a-478e-a2d1-5c49ad4ac1ab
ClusterVersion: Stable at "4.10.0-fc.4"
ClusterOperators:
	All healthy and stable


[must-gather      ] OUT namespace/openshift-must-gather-q82nz created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-l2cdq created
[must-gather      ] OUT pod for plug-in image registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v4.10.0-104 created


[must-gather-zrv65] OUT gather did not start: unable to pull image: ImagePullBackOff: Back-off pulling image "registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:v4.10.0-104"
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-l2cdq deleted
[must-gather      ] OUT namespace/openshift-must-gather-q82nz deleted



Expected results:
Success in pulling CNV image and gathering data.


Additional info:
When running with the default image (and not the CNV image), the command succeeds.
$ oc adm must-gather --dest_dir=mg-out

Comment 1 Yossi Segev 2022-02-01 09:43:28 UTC
Resolved by using the sha1 for the image URL, instead of the z-stream sub-version (104).