There is no max-time property set in the curl method. Sometimes it may cause to command to run forever. Please take a look on the example below where it was hanging for ~120h.
#bosh tasks
ID State Started At Last Activity At User Deployment Description Result
64244 processing Thu Feb 20 17:20:02 UTC 2020 Thu Feb 20 17:20:02 UTC 2020 admin k8s run errand smoke-tests from deployment k8s -
CFCR Smoke Tests Deployment
allows access to pod logs
/var/vcap/data/compile/smoke-tests/src/smoke-tests/smoke_test.go:86
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
deployment.apps/iafegicahd created
service/iafegicahd exposed
Waiting for deployment "iafegicahd" rollout to finish: 0 of 1 updated replicas are available...
deployment "iafegicahd" successfully rolled out
iafegicahd-75fbf49c96-6n7n410.10.54.20030486deployment.extensions "iafegicahd" deleted
• Failure [423959.836 seconds]
CFCR Smoke Tests
/var/vcap/data/compile/smoke-tests/src/smoke-tests/smoke_test.go:33
Deployment
/var/vcap/data/compile/smoke-tests/src/smoke-tests/smoke_test.go:45
allows access to pod logs [It]
/var/vcap/data/compile/smoke-tests/src/smoke-tests/smoke_test.go:86
Timed out after 423956.417s.
Error: Unexpected non-nil/non-zero extra argument at index 1:
<*exec.ExitError>: &exec.ExitError{ProcessState:(*os.ProcessState)(0xc00000e020), Stderr:[]uint8(nil)}
/var/vcap/data/compile/smoke-tests/src/smoke-tests/smoke_test.go:101
What this PR does / why we need it:
It prevents the smoke-test from running forever
How can this PR be verified?
It is a tricky part, as I do not know what is the root cause of curl hanging forever. Looks like it waits forever for the response.
Is there any change in kubo-deployment?
No
Is there any change in kubo-ci?
No
Does this affect upgrade, or is there any migration required?
No
There is no max-time property set in the curl method. Sometimes it may cause to command to run forever. Please take a look on the example below where it was hanging for ~120h.
And finally the output from smoketest:
What this PR does / why we need it:
It prevents the smoke-test from running forever
How can this PR be verified? It is a tricky part, as I do not know what is the root cause of curl hanging forever. Looks like it waits forever for the response.
Is there any change in kubo-deployment? No
Is there any change in kubo-ci? No
Does this affect upgrade, or is there any migration required? No
Which issue(s) this PR fixes:
Release note: