Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1493213 - Builds fail with "authentication required" after upgrade
Summary: Builds fail with "authentication required" after upgrade
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: apiserver-auth
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.6.z
Assignee: Simo Sorce
QA Contact: Chuan Yu
: 1538261 1550162 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2017-09-19 15:27 UTC by Steven Walter
Modified: 2021-03-11 15:48 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
During upgrades reconciliation happens only for cluster roles automatically. But this role needs to be adjusted in 3.6 due to enablement of API groups in this realease. The ansible upgrade code has been changed to take care of this role upgrade.
Clone Of:
Last Closed: 2017-12-07 07:11:23 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3190832 0 None None None 2017-09-20 15:28:32 UTC
Red Hat Knowledge Base (Solution) 3331671 0 None None None 2018-01-26 14:25:39 UTC
Red Hat Product Errata RHSA-2017:3389 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise security, bug fix, and enhancement update 2017-12-07 12:09:10 UTC

Description Steven Walter 2017-09-19 15:27:45 UTC
Description of problem:
After upgrade from 3.5 to 3.6, builds fail with unauthorized: authentication required, when trying to pull from registry. When manually pulling with a user account (admin) to the node that should run the build, re-starting the build works. Service accounts do not appear to be able to pull the images from the registry.

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

How reproducible:

Actual results:
pulling image error : unauthorized: authentication required
error: build error: unable to get

[root]# docker login -u serviceaccount -p $(oc sa get-token deployer)
Login Succeeded
[root]# docker pull
Trying to pull repository ...
unauthorized: authentication required
[root]# docker login -u serviceaccount -p $(oc sa get-token builder)
Login Succeeded
[root]# docker pull
Trying to pull repository ...
unauthorized: authentication required

Expected results:
[root@master-1 cloud-user]# docker login -u serviceaccount -p $( oc sa get-token default )
Login Succeeded
[root@master-1 cloud-user]# docker pull 
Using default tag: latest
Trying to pull repository ... 
sha256:3c9b3aa7da699a02a9a3285b2c4f816fd4405f580f0120e2fbddb976c9299d22: Pulling from
d55ab3b04d8b: Downloading [==============================================>    ] 67.04 MB/72.16 MB
b94f985aad49: Download complete 
6d71013e372d: Downloading [==================================================>] 68.66 MB/68.66 MB
3398045bac98: Download complete

Comment 6 Steven Walter 2017-09-20 15:32:09 UTC
Customer was able to get builds working using workaround from github issue:

oc adm policy add-role-to-group system:image-puller system:serviceaccounts -n openshift

Comment 9 Simo Sorce 2017-10-03 12:43:00 UTC
Upstream issue here :https://github.com/openshift/origin/pull/16465
Initial PR to deal with the issue here: https://github.com/openshift/openshift-ansible/pull/5617

Comment 10 Mo 2017-10-10 20:20:08 UTC
*** Bug 1500225 has been marked as a duplicate of this bug. ***

Comment 11 Simo Sorce 2017-10-11 13:50:10 UTC
A fix has been commit to openshift ansible for release 3.6:

Comment 13 Chuan Yu 2017-10-25 05:57:05 UTC

# openshift version
openshift v3.
kubernetes v1.6.1+5115d708d7
etcd 3.2.1


Comment 18 errata-xmlrpc 2017-12-07 07:11:23 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.


Comment 19 Simo Sorce 2018-01-26 14:25:40 UTC
*** Bug 1538261 has been marked as a duplicate of this bug. ***

Comment 20 Ryan Howe 2018-02-28 16:50:32 UTC
*** Bug 1550162 has been marked as a duplicate of this bug. ***

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