Bug 1575909 - [ded-int-aws] Failed to push image when do build
Summary: [ded-int-aws] Failed to push image when do build
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Adam Kaplan
QA Contact: wewang
Depends On:
TreeView+ depends on / blocked
Reported: 2018-05-08 09:17 UTC by wewang
Modified: 2020-02-21 22:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description wewang 2018-05-08 09:17:54 UTC
Description of problem:
Failed to push image: unauthorized: authentication required when do build 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. oc new-app --template=django-psql-persistent

2.Check the build 
 $oc logs build/django-psql-persistent-1
Pushing image xxxxxx:5000/aya3l/django-psql-persistent:latest ... Registry server Address: Registry server User Name: serviceaccount Registry server Email: serviceaccount@example.org Registry server Password: <<non-empty>> error: build error: Failed to push image: unauthorized: authentication required

Actual results:
build failed
Expected results:
build should be complete

Additional info:

Comment 2 Ben Parees 2018-05-08 14:13:31 UTC
please rerun your build with --build-loglevel=5 and supply the build log.

Also supply your buildconfig yaml

Comment 3 Ben Parees 2018-05-08 14:19:31 UTC
(but it sounds like your token is not actually valid, or does not have the necessary permissions)

you can check what your token can do by running:

oc login --token=<builder service account token>
oc auth can-i update imagestream/django-psql-persistent -n yourproject

(Alexey may have some other permissions he'd like you to check)

Comment 5 Ben Parees 2018-05-08 19:12:13 UTC
we should also make sure these env vars have been removed from the registry DC:

Comment 7 wewang 2018-05-09 02:06:54 UTC
@Stefanie Forrester. build success ,verified the bug thanks

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