Bug 1593795
| Summary: | Registry returns 500 instead of 404 when image stream does not exist | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Clayton Coleman <ccoleman> |
| Component: | Image Registry | Assignee: | Alexey Gladkov <agladkov> |
| Status: | CLOSED ERRATA | QA Contact: | Wenjing Zheng <wzheng> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.10.0 | CC: | aos-bugs, bparees, wzheng |
| Target Milestone: | --- | ||
| Target Release: | 3.10.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: | 2018-08-31 06:18: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
Clayton Coleman
2018-06-21 15:22:26 UTC
Ben, there is no 500 return if cannot get imagestream, but I didn't set 404. time="2018-08-22T09:32:38.752812984Z" level=error msg="remoteGet: unable to get image sha256:1388835bdf99817a746e1bf32c6398ec0c969c079ac650024ca933c59d44e2d6 in imagestream wzheng1/ruby-ex: ImageStream:NotFound: ResolveImageID: failed to get image stream wzheng1/ruby-ex: ImageStreamGetter:NotFound: wzheng1/ruby-ex: imagestreams.image.openshift.io \"ruby-ex\" not found" go.version=go1.9.4 http.request.host="docker-registry.default.svc:5000" http.request.id=0eb8765d-c346-422e-b1a8-0c8556a1e9d3 http.request.method=GET http.request.remoteaddr="10.129.0.1:33828" http.request.uri="/v2/wzheng1/ruby-ex/manifests/sha256:1388835bdf99817a746e1bf32c6398ec0c969c079ac650024ca933c59d44e2d6" http.request.useragent="docker/1.13.1 go/go1.8.3 kernel/3.10.0-693.21.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Go-http-client/1.1)" instance.id=4758c6c8-9f38-4b94-9454-88adf5bdc360 openshift.auth.user="system:serviceaccount:wzheng1:default" openshift.auth.userid=4138a592-a5ed-11e8-8c7a-42010af00015 vars.name=wzheng1/ruby-ex vars.reference="sha256:1388835bdf99817a746e1bf32c6398ec0c969c079ac650024ca933c59d44e2d6" Here are my steps: 1. Import an image 2. Delete imagestream 3. Try to docker pull the imagestream if you didn't get a 500 and you didn't get a 404, what did you get? what is the docker pull output? I can get 404 if pull an unexcited images stream: time="2018-08-23T07:28:19.09181677Z" level=error msg="response completed with error" err.code="name unknown" err.message="repository name not known to registry" go.version=go1.9.4 http.request.host="docker-registry.default.svc:5000" http.request.id=e4f97013-0d09-4d3d-87f2-62a8f25ce9fc http.request.method=GET http.request.remoteaddr="10.128.0.1:34506" http.request.uri=/v2/bug/test/manifests/latest http.request.useragent="docker/1.13.1 go/go1.8.3 kernel/3.10.0-693.21.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.13.1 \(linux\))" http.response.contenttype="application/json; charset=utf-8" http.response.duration=12.368281ms http.response.status=404 http.response.written=87 instance.id=f2e29789-7fa2-48f3-8daf-a0aa592ebc66 openshift.auth.user=wzheng openshift.auth.userid=85c159a4-a6a5-11e8-98eb-42010af0003b vars.name=bug/test vars.reference=latest Verified on v3.11.0-0.20.0. 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, 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-2018:2376 |