Bug 1455575
Summary: | atomic install registry.access.redhat.com/jboss-eap-7-tech-preview/eap70 fails with 'unknown: Not Found' | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Igor Netkachev <inetkach> |
Component: | skopeo | Assignee: | Lokesh Mandvekar <lsm5> |
Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | ajia, bbaude, ddarrah, dwalsh, fkluknav, imcleod, mitr |
Target Milestone: | rc | Keywords: | Extras |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | skopeo-1:0.1.23-1.git1bbd87f | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-05 10:37:48 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: | 1186913 |
Description
Igor Netkachev
2017-05-25 13:50:21 UTC
i get the same response when trying to pull this with docker. This looks like a registry issue ? Ok, so once registered, the proper cert is used by docker to pull it ... looking now at the case where atomic/skopeo tries to pull it. Besides everything else (this is _not_ the core issue), the weird error message is caused by the server using the error reporting interface incorrectly:
> HTTP/1.1 404 NOT FOUND
> Connection: close
> Content-Length: 53
> Content-Type: application/json
> Date: Thu, 25 May 2017 14:44:16 GMT
> Server: Apache
>
> {"errors": [{"code": "404", "message": "Not Found"}]}
The "code" value is supposed to be one of specific registered strings (github.com/docker/distribution/registry/api/errcode.Register), in this case perhaps NAME_UNKNOWN or MANIFEST_UNKNOWN (really, it would be more user friendly not to pretend that the image does not exist but to explicitly say “authorization denied” or something like that, but that’s another separate issue). Using "code": "404" causes the error code decoder to fall back to that "unknown error" string.
This issue has been verified in skopeo-0.1.23-1.git1bbd87f.el7.x86_64. 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-2017:2601 |