Bug 1411161

Summary: [3.3] Fail to push built image to registry due to "manifest blob unknown: blob unknown to registry" without define output image via oc new-build
Product: OpenShift Container Platform Reporter: Scott Dodson <sdodson>
Component: Image RegistryAssignee: Alexey Gladkov <agladkov>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.3.1CC: agladkov, aos-bugs, bparees, cewong, haowang, mfojtik, pweil, tdawson, wsun, wzheng, xtian
Target Milestone: ---   
Target Release: 3.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Manifest verification didn't pay attention to non local layers. Consequence: Verification has failed if pullthrough enabled. Fix: Use pullthrough to verify remote layers. Result: Manifest verification is successful.
Story Points: ---
Clone Of: 1408661 Environment:
Last Closed: 2017-04-26 05:36:05 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: 1408661, 1411162    
Bug Blocks:    
Attachments:
Description Flags
This is docker registry log none

Comment 1 Wenjing Zheng 2017-02-03 07:15:29 UTC
Can reproduce with 3.3.1 as below:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount
Registry server Password: <<non-empty>>
error: build error: Failed to push image: errors:
manifest blob unknown: blob unknown to registry
manifest blob unknown: blob unknown to registry
manifest blob unknown: blob unknown to registry
manifest blob unknown: blob unknown to registry
manifest blob unknown: blob unknown to registry
[root@openshift-139 ~]# openshift version
openshift v3.3.1.11
kubernetes v1.3.0+52492b4
etcd 2.3.0+git

Comment 2 Alexey Gladkov 2017-02-08 12:57:17 UTC
what docker version are you using ?

Comment 3 Wenjing Zheng 2017-02-09 02:11:50 UTC
Here is my docker version:
# docker version
Client:
 Version:         1.12.5
 API version:     1.24
 Package version: docker-common-1.12.5-14.el7.x86_64
 Go version:      go1.7.4
 Git commit:      047e51b/1.12.5
 Built:           Wed Jan 11 17:53:20 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.5
 API version:     1.24
 Package version: docker-common-1.12.5-14.el7.x86_64
 Go version:      go1.7.4
 Git commit:      047e51b/1.12.5
 Built:           Wed Jan 11 17:53:20 2017
 OS/Arch:         linux/amd64

Comment 4 Alexey Gladkov 2017-02-09 10:47:57 UTC
So, this is not https://rhn.redhat.com/errata/RHSA-2017-0116.html

Can you attach docker-registry and docker daemon logs ?

Comment 5 Wenjing Zheng 2017-02-14 07:42:13 UTC
Created attachment 1250138 [details]
This is docker registry log

Comment 6 Wenjing Zheng 2017-02-14 08:03:26 UTC
No special log from docker , so just attach the docker registry log in attachment.

Comment 7 Alexey Gladkov 2017-02-14 15:56:54 UTC
Thanks! Now I see the problem.

Comment 14 Michal Fojtik 2017-03-29 10:22:36 UTC
(the PR merged)

Comment 15 Wenjing Zheng 2017-03-30 07:03:25 UTC
Verified with below version:
# openshift version
openshift v3.3.1.17
kubernetes v1.3.0+52492b4
etcd 2.3.0+git
# oc logs builds/centos-1
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Removing intermediate container daf304085600
Successfully built 61e34f5e8ba8

Pushing image 172.30.74.144:5000/wzheng1/centos:latest ...
Pushed 0/2 layers, 2% complete
Pushed 1/2 layers, 63% complete
Pushed 2/2 layers, 100% complete
Push successful
# oc get builds
NAME       TYPE      FROM         STATUS     STARTED         DURATION
centos-1   Docker    Dockerfile   Complete   6 minutes ago   1m42s

Comment 17 errata-xmlrpc 2017-04-26 05:36:05 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:1129