Bug 1457043

Summary: Unable to pull through to registry.access.redhat.com
Product: OpenShift Container Platform Reporter: Wang Haoran <haowang>
Component: Image RegistryAssignee: Oleg Bulatov <obulatov>
Status: CLOSED ERRATA QA Contact: ge liu <geliu>
Severity: high Docs Contact:
Priority: medium    
Version: 3.5.1CC: agladkov, aos-bugs, aweiteka, geliu, haowang, lucarval, mfojtik, miminar, obulatov, pweil, rcerven, tohughes
Target Milestone: ---   
Target Release: 3.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: the size of a cached layer doesn't counted Consequence: the layer size for cached layers is zero Fix: count the size for cached layers Result: images have proper layer sizes
Story Points: ---
Clone Of: 1442855 Environment:
Last Closed: 2017-10-25 13:02: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: 1442855    
Bug Blocks: 1447967, 1457042    

Comment 1 Wang Haoran 2017-05-31 02:42:39 UTC
Let's use this to track for 3.5.
PR: https://github.com/openshift/ose/pull/763

Comment 2 ge liu 2017-06-06 08:52:51 UTC
@obulatov, I tried in ocp 3.5.5.23, but this problem still exist, I will verified it when the fix have been merged, thanks.

Comment 6 Oleg Bulatov 2017-06-28 11:59:40 UTC
It is fixed since v3.5.5.24.

Comment 7 ge liu 2017-07-05 07:57:42 UTC
Verified in ocp env:

openshift v3.5.5.31.2
kubernetes v1.5.2+43a9be4
etcd 3.1.0

# oc create -f - <<EOF
> {
>     "kind": "ImageStream",
>     "apiVersion": "v1",
>     "metadata": {
>         "name": "rhel7-test"
>     },
>     "spec": {
>         "dockerImageRepository": "registry.access.redhat.com/rhel7"
>     }
> }
> EOF
imagestream "rhel7-test" created
[root@host-8-172-181 tmp]# oc get is
NAME               DOCKER REPO                                    TAGS                               UPDATED                              
rhel7-test         registry.access.redhat.com/rhel7               7.3-97,7.3-95,7.3-89 + 2 more...   11 seconds ago

# oc get istag rhel7-test:latest -o json
{
    "apiVersion": "v1",
    "generation": 2,
    "image": {
        "dockerImageLayers": [
            {
                "mediaType": "application/vnd.docker.container.image.rootfs.diff+x-gtar",
                "name": "sha256:d55ab3b04d8b1b93041514fd0cf77b95c52b4c6a51ee3b403d5bbaf1dbc12a1c",
                "size": 72157218
            },
            {
                "mediaType": "application/vnd.docker.container.image.rootfs.diff+x-gtar",
                "name": "sha256:b94f985aad49d8208054f5627b69dba26556628517313cb30ec620fa9d363787",
                "size": 1190
            }
        ],
......................
............

Comment 9 errata-xmlrpc 2017-10-25 13:02:19 UTC
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:3049