Bug 2053223 - ImagePull fails with error "unable to pull manifest from example.com/busy.box:v5 invalid reference format"
Summary: ImagePull fails with error "unable to pull manifest from example.com/busy.bo...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.8.z
Assignee: Oleg Bulatov
QA Contact: XiuJuan Wang
Depends On: 2053222
TreeView+ depends on / blocked
Reported: 2022-02-10 17:26 UTC by OpenShift BugZilla Robot
Modified: 2022-03-02 07:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-02-23 08:43:51 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift image-registry pull 310 0 None Merged Bug 2053223: Fix pull-through for images that have dots in their namespace 2022-02-13 17:59:03 UTC
Github openshift library-go pull 1312 0 None Merged [release-4.8] Bug 2053223: Fix handling namespaces with dots in registry client 2022-02-11 16:07:46 UTC
Github openshift oc pull 1069 0 None Merged Bug 2053223: Fix mirroring images that have dots in their namespace 2022-02-14 10:04:43 UTC
Github openshift openshift-apiserver pull 283 0 None Merged Bug 2053223: Fix importing images that have dots in their namespace 2022-02-21 19:53:18 UTC
Red Hat Product Errata RHBA-2022:0559 0 None None None 2022-02-23 08:44:03 UTC

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

      quay.io/rh-test.me/busybox sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710 1.422KiB
      quay.io/rh-test.me/busybox sha256:009932687766e1520a47aa9de3bfe97ffdb1b6cad0b08d5078bad60329f13f19 754.7KiB
      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="" 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.


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