Bug 1318989 - [platformmanagement_public_595]Failed to pull image which requires HTTP through docker-registry
Summary: [platformmanagement_public_595]Failed to pull image which requires HTTP throu...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 3.2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.2.1
Assignee: Alexey Gladkov
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-18 10:45 UTC by zhou ying
Modified: 2016-11-22 22:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-22 22:42:18 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zhou ying 2016-03-18 10:45:08 UTC
Description of problem:
Tag a image which requires Http, failed  to pull the image through docker-registry, met not-found error.

Version-Release number of selected component (if applicable):
openshift v1.1.4-124-g847bcc2
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5

How reproducible:
Always

Steps to Reproduce:
1. Run a private registy to use http protocal;
  `docker run -d -p 5000:5000 registry` 
2. Push the image :busybox to private registry;
   `docker tag busybox localhost:5000/busybox`
   `docker push localhost:5000/busybox`
3. Login OpenShift and create project;
4. Use command to tag the image from private registry;
   `oc tag 172.18.11.76:5000/busybox  mytest:v2 --insecure=true`
5. Use the user token to login docker-registry;
6. Try to pull the image through docker-registry;

Actual results:
6. Failed to image which requires HTTP through docker-registry
oc get is
NAME      DOCKER REPO                     TAGS      UPDATED
mytest    172.30.29.6:5000/zhouy/mytest   v2        5 minutes ago

docker pull 172.30.29.6:5000/zhouy/mytest:v2
Trying to pull repository 172.30.29.6:5000/zhouy/mytest ... not found
Error: image zhouy/mytest:v2 not found

Expected results:
Should succeed to pull image which requires HTTP through docker-registry

Additional info:
oc logs -f dc/docker-registry 
time="2016-03-18T10:35:52.967152098Z" level=error msg="Error parsing digest \"f1e4b055fb652a75379f41aee7b23a23a5f6dcc3b07e61f181d542ebb04f2ac9\": invalid checksum digest format" go.version=go1.4.2 http.request.host="172.30.241.110:5000" http.request.id=b59f304f-959b-42b6-bb2f-9a6a649f0592 http.request.method=GET http.request.remoteaddr="172.18.13.53:55043" http.request.uri="/v2/zhouy/mytest/manifests/v2" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64" instance.id=07c748fa-a30b-4789-8991-c4e43759da55 vars.name="zhouy/mytest" vars.reference=v2 
time="2016-03-18T10:35:52.967252139Z" level=error msg="response completed with error" err.code="MANIFEST_UNKNOWN" err.detail="invalid checksum digest format" err.message="manifest unknown" go.version=go1.4.2 http.request.host="172.30.241.110:5000" http.request.id=b59f304f-959b-42b6-bb2f-9a6a649f0592 http.request.method=GET http.request.remoteaddr="172.18.13.53:55043" http.request.uri="/v2/zhouy/mytest/manifests/v2" http.request.useragent="docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=173.095437ms http.response.status=404 http.response.written=82 instance.id=07c748fa-a30b-4789-8991-c4e43759da55 vars.name="zhouy/mytest" vars.reference=v2 
172.18.13.53 - - [18/Mar/2016:10:35:52 +0000] "GET /v2/zhouy/mytest/manifests/v2 HTTP/1.1" 404 82 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64"
172.18.13.53 - - [18/Mar/2016:10:35:52 +0000] "GET /v1/repositories/zhouy/mytest/images HTTP/1.1" 404 19 "" "docker/1.9.1 go/go1.4.2 kernel/3.10.0-229.7.2.el7.x86_64 os/linux arch/amd64"

Comment 1 Michail Kargakis 2016-03-18 13:00:02 UTC
This is https://github.com/openshift/origin/issues/7792

Comment 2 Paul Weil 2016-03-24 16:48:57 UTC
moving to upcoming release based on https://github.com/openshift/origin/issues/7792#issuecomment-200877522

Comment 4 Alexey Gladkov 2016-07-12 13:32:50 UTC
https://github.com/openshift/origin/issues/7792 was fixed.
Can reproduce it now ?

Comment 5 zhou ying 2016-07-15 06:54:38 UTC
Confirmed with OSE3.3, the issue has fixed:
openshift v3.3.0.5
kubernetes v1.3.0+57fb9ac
etcd 2.3.0+git

Comment 6 weiwei jiang 2016-09-01 08:05:33 UTC
Checked with fork_ami_openshift3_miminar_295, and can not reproduce this issue

Comment 8 zhou ying 2016-10-09 02:39:39 UTC
Confirmed with OCP 3.2.1, the issue has fixed:
openshift version
openshift v3.2.1.16
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5


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