Created attachment 1263967 [details] oc import-image log Description of problem: oc import-image doesnt respect request-timeout Version-Release number of selected component (if applicable): openshift v3.4.1.7 kubernetes v1.4.0+776c994 How reproducible: Always Steps to Reproduce: 1. Update maxImagesBulkImportedPerRepository to a higher value (-1 == unlimited tags): imagePolicyConfig: maxImagesBulkImportedPerRepository: -1 2. Restart master for config to take effect 3. oc import-image openshift3/ose-pod --from=registry.access.redhat.com/openshift3/ose-pod --all=true --confirm=true --request-timeout="5m" -n openshift3 Actual results: Command files with a timeout of 30 seconds: I0317 08:06:43.268150 6900 round_trippers.go:306] User-Agent: oc/v3.4.1.7 (linux/amd64) openshift/81b9a4a I0317 08:07:13.271503 6900 round_trippers.go:321] Response Status: 504 Gateway Timeout in 30003 milliseconds Expected results: request-timeout parameter to be taken into account. Additional info:
Additionally we need to include image import into longRunningRequests, like binary builds.
Addressed in https://github.com/openshift/origin/pull/13458
Commits pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/078e6ea1b10c109f7a4b48d1c5b71e40b8c047de Bug 1433244 - allow imageimports to be long runing requests https://github.com/openshift/origin/commit/5129a2d9dfff4b7bc95ab7b56041678e64a2ffaa Merge pull request #13458 from soltysh/bug1433244 Merged by openshift-bot
The other half of this issues is solved in https://github.com/openshift/origin/pull/13701
Maciej what's left to get this over the hump for 3.7?
I have an agreement on the upstream change from David, Fabiano and Juan. I'll be refreshing that PR today or tomorrow and once that is close to approval I will cherry-pick it to 3.7.
Updated PR with the ability to properly pass the --request-timeout to client is https://github.com/openshift/origin/pull/13701
Verified oc v3.9.0-0.42.0 kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth GSSAPI Kerberos SPNEGO openshift v3.9.0-0.42.0 kubernetes v1.9.1+a0ce1bc657 import image successfully without error, request-timeout parameter to be taken into account.