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

Bug 2053223

Summary: ImagePull fails with error "unable to pull manifest from example.com/busy.box:v5 invalid reference format"
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: ImageStreamsAssignee: Oleg Bulatov <obulatov>
Status: CLOSED ERRATA QA Contact: XiuJuan Wang <xiuwang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.8CC: aos-bugs, openshift-bugs-escalate, sreber, yoliynyk
Target Milestone: ---Keywords: FastFix
Target Release: 4.8.z   
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-23 08:43:51 UTC Type: ---
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: 2053222    
Bug Blocks:    

Comment 1 XiuJuan Wang 2022-02-12 07:39:14 UTC
Verified on pr premerged.
oc version
Client Version: v4.2.0-alpha.0-1132-g4ebc229
Server Version: 4.8.0-0.ci.test-2022-02-12-054957-ci-ln-fh6wm1b-latest
Kubernetes Version: v1.21.2-1645+4b61f949b4b18e-dirty

$oc image mirror quay.io/rh-test.me/busybox:latest $registry/test.myimage.a.b.c:latest --keep-manifest-list=true --filter-by-os='.*' --insecure

registry-wxj.apps.ci-ln-gxt32yk-72292.origin-ci-int-gce.dev.rhcloud.com/
  test.myimage.a.b.c.d
    blobs:
      quay.io/rh-test.me/busybox sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710 1.422KiB
      quay.io/rh-test.me/busybox sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19 754.7KiB
    manifests:
      sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578 -> latest
  stats: shared=0 unique=2 size=756.1KiB ratio=1.00

phase 0:
  registry-wxj.apps.ci-ln-gxt32yk-72292.origin-ci-int-gce.dev.rhcloud.com test.myimage.a.b.c blobs=2 mounts=0 manifests=1 shared=0

info: Planning completed in 4.92s
uploading: registry-wxj.apps.ci-ln-gxt32yk-72292.origin-ci-int-gce.dev.rhcloud.com/test.myimage.a.b.c.d sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19 754.7KiB
sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578 registry-wxj.apps.ci-ln-gxt32yk-72292.origin-ci-int-gce.dev.rhcloud.com/test.myimage.a.b.c:latest
info: Mirroring completed in 5.12s (151.1kB/s)

$ oc import-image myimage:latest --from=$registry/test.myimage.a.b.c:latest --reference-policy=local  --insecure --confirm
$ oc set image-lookup myimage
$ oc run mypod --restart=Never --image=myimage:latest --image-pull-policy=Always -- echo "Hello"
pod/mypod created

  Normal  Pulling         6s    kubelet            Pulling image "image-registry.openshift-image-registry.svc:5000/wxj/myimage@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
  Normal  Pulled          5s    kubelet            Successfully pulled image "image-registry.openshift-image-registry.svc:5000/wxj/myimage@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578" in 801.745691ms

 $oc -n openshift-image-registry get pods -l docker-registry=default -o name | while read -r pod; do oc -n openshift-image-registry logs "$pod"; done | grep "test.myimage.a.b.c"
time="2022-02-12T07:37:32.325244437Z" level=info msg="Trying to stat \"sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19\" from \"registry-wxj.apps.wxjfastc.qe.azure.devcluster.openshift.com/test.myimage.a.b.c\" with a fall-back to insecure transport" go.version=go1.16.6 http.request.host="image-registry.openshift-image-registry.svc:5000" http.request.id=622b5107-2c4a-43b5-9e4f-04d22b397f7d http.request.method=GET http.request.remoteaddr="10.131.0.1:56180" http.request.uri="/v2/wxj/myimage/blobs/sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19" http.request.useragent="cri-o/1.21.4-10.rhaos4.8.gitc058478.el8 go/go1.16.6 os/linux arch/amd64" openshift.auth.user="system:serviceaccount:wxj:default" vars.digest="sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19" vars.name=wxj/myimage
...

Comment 6 XiuJuan Wang 2022-02-16 03:08:22 UTC
Those prs are merged in 4.8.0-0.nightly-2022-02-15-142020

Comment 9 errata-xmlrpc 2022-02-23 08:43: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 (OpenShift Container Platform 4.8.32 bug fix update), 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-2022:0559