Bug 1289015 - [devexp_public_707]No place to input pushSecret info when try to push result image to docker hub via oc new-build --to-docker
Summary: [devexp_public_707]No place to input pushSecret info when try to push result ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Build
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Rodolfo Carvalho
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-07 08:56 UTC by Wenjing Zheng
Modified: 2016-01-20 15:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-20 15:26:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wenjing Zheng 2015-12-07 08:56:59 UTC
Description of problem:
If try to push result image to docker with command oc new-build --to-docker, there is no place to input secret info which causes build push fails:
Failed to push image: unauthorized: access to the requested resource is not authorized

Version-Release number of selected component (if applicable):
openshift v1.1-354-g43aa4a4
kubernetes v1.1.0-origin-1107-g4c8e6f4
etcd 2.1.2

How reproducible:
always

Steps to Reproduce:
1. oc new-build -D $'FROM centos:7\nRUN yum install -y httpd' --to wzheng/myapp --to-docker=true
2. Check build log
Removing intermediate container 7097bf9322ce
Successfully built dfeefcc8f18a
I1207 08:41:22.472566       1 docker.go:86] Pushing image wzheng/myapp ...
F1207 08:41:27.707971       1 builder.go:59] Build error: Failed to push image: unauthorized: access to the requested resource is not authorized

Actual results:
Build failed for cannot being pushed.

Expected results:
There should be a place to input pushSecret.

Additional info:

Comment 1 Rodolfo Carvalho 2015-12-08 16:13:55 UTC
@wzheng, we'll need to add a new option to `oc new-build` to allow passing the push secret. Will give you an update when the new option is merged.

Comment 2 Ben Parees 2015-12-08 16:14:00 UTC
reducing severity, user can edit the BC after creation to add a secret ref for now.

Comment 3 Ben Parees 2016-01-19 21:06:50 UTC
Rodolfo can you please make sure we have (or create) a card for this and then close this bug?  Thanks.

Comment 4 Ben Parees 2016-01-19 21:07:14 UTC
(that is the process we follow for RFEs that are not customer initiated)

Comment 5 Rodolfo Carvalho 2016-01-20 15:26:56 UTC
I found no relevant card, therefore created a new one to track the implementation of the new feature:
https://trello.com/c/C5K7ekrH

Closing this bug.


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