Bug 1400197 - ImageStreamTags do not properly resolve Digest(
Summary: ImageStreamTags do not properly resolve Digest(
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker-distribution
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2016-11-30 16:49 UTC by Vladislav Walek
Modified: 2020-01-17 16:16 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-21 21:44:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Vladislav Walek 2016-11-30 16:49:23 UTC
Description of problem:

When trying to pull image from local docker registry, the incorrect digest is resolved. The image was 'docker save' from 1.8.3 version saved in tar, and 'docker load' using 1.10 and docker push to registry.
However when creating an application using the ImageStream Builder logs would print an error on the first line:
'error: build error: unabe to get registry/openshift3/httpd-24-rhel7@sha256:<digest>'.

But the registry was configured with SSL proxy (after running a while without SSL):
We have configured Docker Distribution in an unsecured manner (http on port 5000), 
and later secure it with an httpd ssl proxy on port 443, we roughly followed this guide:
https://github.com/docker/docker.github.io/blob/master/registry/recipes/apache.md

And when trying:

1. pull the image - returned digest (manifest) is the invalid one.

2. Push the same image, digest returned (presumably calculated locally on docker client)

3. Attempt pull the invalid digest fails.

4. Attempt to pull the pushed digest succeeds.

The problem is that if the pull is done from the unsecured the digest is ok, if from SSL the digest is incorrect. The question is, is it caused by docker registry?

Running:
'docker-distribution-2.4.1-2.el7.x86_64'
Openshift Container Platform Cluster v3.3.0.32
kubernetes v1.3.0+52492b4
docker 1.10.3, from package: 'docker-common-1.10.3-46.el7.14.x86_64' commit: '5206701'

Version-Release number of selected component (if applicable):
Openshift Container Platform Cluster v3.3.0.32

How reproducible:


Actual results:


Expected results:
the digest should be same on ssl and non-ssl registry

Additional info:

Comment 4 Vladislav Walek 2016-12-05 08:44:48 UTC
Hi, I've received reply from customer:

Updating Docker-Distribution Package to version 2.5.0-1.el7.x86_64
Full Package Name: docker-distribution-2.5.0-1.el7.x86_64

Solves the issue!!!

Could you check it? Thx


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