Bug 1119579
Summary: | customize docker pull 404 error | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Guohua Ouyang <gouyang> |
Component: | docker | Assignee: | William Henry <whenry> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | bsarathy, dwalsh, leiwang, lsu, mjenner |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-18 20:46:19 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: | 1109938 |
Description
Guohua Ouyang
2014-07-15 06:07:18 UTC
So I would assume that it could be some other error besides 404. Should I be checking for other errors? Right now I have it such that when I catch the error I check to see if it's actually a 404 and if it is I create a image not found message (as described above). And if it's not I just return what came back - presumably some other HTTP error. Could there be other 40x or 50x errors? Should I have (pseudo): if err if 404 return "image not found" else return "unknown error" // rather than return err If we know of other return codes that are likely and could translate them, I would otherwise I would say. if err if 404 return "image not found" else return err I have committed and pushed a PR upstream: https://github.com/dotcloud/docker/pull/7043 Ok we will pull this into the next docker package after docker-1.1.1-2 Via docker-1.1.2-6.el7.x86_64 #docker pull not_exist Pulling repository not_exist 2014/08/05 17:13:51 Error: image not_exist not found Set Verified 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. http://rhn.redhat.com/errata/RHBA-2014-1266.html |