Description of problem: Failed to push image: unauthorized: authentication required when do build Version-Release number of selected component (if applicable): v3.7.23 How reproducible: always 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 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:
please rerun your build with --build-loglevel=5 and supply the build log. Also supply your buildconfig yaml
(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)
we should also make sure these env vars have been removed from the registry DC: https://github.com/openshift/openshift-ansible/pull/8112/files#diff-63574a20e5e33b5c8c5c0049028a01ab
@Stefanie Forrester. build success ,verified the bug thanks