Bug 2085414 - Image pullthrough does not pass 429 errors back to capable clients
Summary: Image pullthrough does not pass 429 errors back to capable clients
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.z
Assignee: Flavian
QA Contact: Keenon Lee
URL:
Whiteboard:
Depends On: 1923536
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-13 10:05 UTC by OpenShift BugZilla Robot
Modified: 2022-06-07 13:24 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-07 13:24:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift image-registry pull 332 0 None open [release-4.10] Bug 2085414: forward http.StatusTooManyRequests to client 2022-05-18 05:43:10 UTC
Red Hat Product Errata RHBA-2022:4882 0 None None None 2022-06-07 13:24:46 UTC

Comment 2 Keenon Lee 2022-05-19 04:13:37 UTC
deployment.apps/registry created
service/registry created
route.route.openshift.io/registry created
redhat@jitli:~/work/src/test$ oc get route registry -o=jsonpath='{.status.ingress[0].host}'
registry-default.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.comredhat@jitli:~/work/src/test$ 
redhat@jitli:~/work/src/test$ REGISTRY=$(oc get route registry -o=jsonpath='{.status.ingress[0].host}')
redhat@jitli:~/work/src/test$ curl -XPOST -d 'c=50' "http://${REGISTRY}/"
redhat@jitli:~/work/src/test$ oc import-image busybox:latest --from="${REGISTRY}:80/default/busybox:latest" --confirm --insecure --reference-policy=local
imagestream.image.openshift.io/busybox imported

[root@preserve-olm-agent-test jitli]# podman push --tls-verify=false "${REGISTRY}/default/busybox:latest"
Getting image source signatures
Copying blob 6008d842465c done  
Copying config a711f05d33 done  
Writing manifest to image destination
Storing signatures
[root@preserve-olm-agent-test jitli]# IMAGE_REGISTRY=default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com
[root@preserve-olm-agent-test jitli]# podman login -u kubeadmin -p
Login Succeeded!
[root@preserve-olm-agent-test jitli]# podman pull --tls-verify=false default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com/default/busybox

Error: initializing source docker://default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com/default/busybox:latest: reading manifest latest in default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com/default/busybox: toomanyrequests: unable to pullthrough manifest

redhat@jitli:~/work/src/test$ curl -XPOST -d 'c=1' "http://${REGISTRY}/"
redhat@jitli:~/work/src/test$ oc patch configs.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
config.imageregistry.operator.openshift.io/cluster patched

redhat@jitli:~/work/src/test$ oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}'
default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com


time="2022-05-19T03:58:16.875161328Z" level=error msg="response completed with error" err.code=toomanyrequests err.message="unable to pullthrough manifest" go.version=go1.17.5 http.request.host=default-route-openshift-image-registry.apps.ci-ln-36vygqk-76ef8.origin-ci-int-aws.dev.rhcloud.com http.request.id=3434ba01-92f7-4816-9b54-f4b285fb89ec http.request.method=GET http.request.remoteaddr=66.187.232.129 http.request.uri=/v2/default/busybox/manifests/latest http.request.useragent="containers/5.16.0 (github.com/containers/image)" http.response.contenttype="application/json; charset=utf-8" http.response.duration=4.13086298s http.response.status=429 http.response.written=83 openshift.auth.user="system:serviceaccount:default:builder" vars.name=default/busybox vars.reference=latest

Comment 7 errata-xmlrpc 2022-06-07 13:24:32 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.10.17 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:4882


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