At the end of BuildConfig, pushing to internal registry fails with:
error: build error: Failed to push image: Received unexpected HTTP status: 500 Internal Server Error
Version
$ oc version
oc v1.3.0-alpha.1-208-g0effc3c-dirty
kubernetes v1.3.0-alpha.1-331-g0522e63
Steps To Reproduce
- oc cluster up
- oc new-project jenkins-slaves
- oc create -f https://github.com/openshift/origin/raw/master/examples/jenkins/master-slave/jenkins-slave-template.json
- oc process jenkins-slave-builder -v 'IMAGE_NAME=docker.io/fabric8/maven-builder,IMAGE_STREAM_NAME=maven,SLAVE_REPO_URL=https://github.com/openshift/origin.git,SLAVE_REPO_CONTEXTDIR=examples/jenkins/master-slave/slave/,SLAVE_REPO_REF=master' | oc create -f -
- oc logs -f maven-jenkins-slave-1-build
Current Result
error: build error: Failed to push image: Received unexpected HTTP status: 500 Internal Server Error
Expected Result
silent 200
Additional Information
Investigating registry logs I have found User \"system:serviceaccount:default:registry\" cannot list limitranges in project \"jenkins-slaves\"" err.message="unknown error"
time="2016-06-09T07:20:07.671503204Z" level=error msg="response completed with error" err.code=UNKNOWN err.detail="User \"system:serviceaccount:default:registry\" cannot list limitranges in project \"jenkins-slaves\"" err.message="unknown error" go.version=go1.6 http.request.host="172.30.14.17:5000" http.request.id=a7159c1f-0a1b-4d8f-b422-fa3b799a7d7b http.request.method=PUT http.request.remoteaddr="10.34.129.146:56342" http.request.uri="/v2/jenkins-slaves/maven-jenkins-slave/blobs/uploads/dd3aacc9-16bf-4377-b7cf-3490842561ce?_state=eBZOkX3qQFyJ4C8jrL2kKH5pIVXAEv_k0MW82bxwQSt7Ik5hbWUiOiJqZW5raW5zLXNsYXZlcy9tYXZlbi1qZW5raW5zLXNsYXZlIiwiVVVJRCI6ImRkM2FhY2M5LTE2YmYtNDM3Ny1iN2NmLTM0OTA4NDI1NjFjZSIsIk9mZnNldCI6MzIsIlN0YXJ0ZWRBdCI6IjIwMTYtMDYtMDlUMDc6MjA6MDdaIn0%3D&digest=sha256%3Aa3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4" http.request.useragent="docker/1.9.1 go/go1.5.3 kernel/4.5.5-201.fc23.x86_64 os/linux arch/amd64" http.response.contenttype="application/json; charset=utf-8" http.response.duration=16.852853ms http.response.status=500 http.response.written=329 instance.id=707499e1-7271-4ce4-8556-b80651a217a6 vars.name="jenkins-slaves/maven-jenkins-slave" vars.uuid=dd3aacc9-16bf-4377-b7cf-3490842561ce
At the end of BuildConfig, pushing to internal registry fails with:
Version
Steps To Reproduce
Current Result
Expected Result
silent 200
Additional Information
Investigating registry logs I have found
User \"system:serviceaccount:default:registry\" cannot list limitranges in project \"jenkins-slaves\"" err.message="unknown error"