oc start-build is timing out on Red Hat OpenShift Container Platform
Issue
- When we start a build with
oc start-build
, we get a lot ofError from server (Timeout): Timeout: request did not complete within allowed duration
. Running the command withloglevel=10
is reporting the below error.
$ oc start-build abcdefg-0990-4dcc-bd9b-f400949bd777 --wait -o name -n build --loglevel=10
I0816 11:34:43.360789 89440 loader.go:357] Config loaded from file ~/.kube/config
I0816 11:34:43.363282 89440 request.go:874] Request Body: {"kind":"BuildRequest","apiVersion":"build.openshift.io/v1","metadata":
{"name":"abcdefg-0990-4dcc-bd9b-f400949bd777","creationTimestamp":null}
,"triggeredBy":[
{"message":"Manually triggered"}
],"dockerStrategyOptions":{},"sourceStrategyOptions":{}}
I0816 11:34:43.363384 89440 round_trippers.go:417] curl -k -v -XPOST -H "Authorization: Bearer 1234567890" -H "User-Agent: oc/v1.9.1+a0ce1bc657 (darwin/amd64) kubernetes/a0ce1bc" -H "Accept: application/json, /" -H "Content-Type: application/json" https://master.example.com:8443/apis/build.openshift.io/v1/namespaces/build/buildconfigs/abcdefg-0990-4dcc-bd9b-f400949bd777/instantiate
I0816 11:35:14.496955 89440 round_trippers.go:436] POST https://master.example.com:8443/apis/build.openshift.io/v1/namespaces/build/buildconfigs/abcdefg-0990-4dcc-bd9b-f400949bd777/instantiate 504 Gateway Timeout in 31133 milliseconds
I0816 11:35:14.497043 89440 round_trippers.go:442] Response Headers:
I0816 11:35:14.497067 89440 round_trippers.go:445] Cache-Control: no-store
I0816 11:35:14.497083 89440 round_trippers.go:445] Content-Type: application/json
I0816 11:35:14.497096 89440 round_trippers.go:445] Content-Length: 182
I0816 11:35:14.497108 89440 round_trippers.go:445] Date: Tue, 21 Aug 2018 09:35:14 GMT
I0816 11:35:14.497198 89440 request.go:874] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Timeout: request did not complete within allowed duration","reason":"Timeout","details":{},"code":504}
I0816 11:35:14.498216 89440 helpers.go:201] server response object: [{
"metadata": {},
"status": "Failure",
"message": "Timeout: request did not complete within allowed duration",
"reason": "Timeout",
"details": {},
"code": 504
}]
F0816 11:35:14.498277 89440 helpers.go:119] Error from server (Timeout): Timeout: request did not complete within allowed duration
Environment
- Red Hat OpenShift Container Platform 3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.