You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please fill out the issue checklist below and provide ALL the requested information.
I reviewed open and closed github issues that may be related to my problem.
I tried updating to the latest version of the CF CLI to see if it fixed my problem.
I attempted to run the command with CF_TRACE=1 to help debug the issue.
I am reporting a bug that others will be able to reproduce.
Describe the bug and the command you saw an issue with
While debugging why an application was being restarted by CF continuously we looked into the get-health-check of the application. The invocation timeout was listed as 1 and we believe this is wrong.
What happened
We do not set any healtcheck timeouts on our apps and rely on the default provided by CAPI which should be 60sdefault_health_check_timeout. Running the get-health-check actually returns 1s.
Expected behavior
We expected the command to return the correct value.
Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
cf push <APP> an application without specifying the healthcheck timeout.
Run cf get-health-check <APP>
Provide more context
platform and shell details ( e.g. Mac OS X 10.11 iTerm): Ubuntu 22.04.1 LTS
version of the CLI you are running: cf version 8.4.0+b4c083e.2022-06-02
version of the CC API Release you are on: cf-for-k8s v5.7.1 and cf-deployment 21.4.0
**Possible code bug
This line in the CLI code when invocation timeout is set to 0 defaults the output of the command to 1, this seems like the problem:
Hi @mymasse. CLI assigns the value 1 when a 0/null value is returned from cloud controller. Not sure why the default 60s is not being sent to CLI from CC. Please feel free to open an issue with CAPI.
Even return 0/null would be better than returning 1, at least it would point out that it's not set. I agree that CAPI should probably return the default value but I still think the CLI should return something else than 1 in this case since the CLI still needs to support older CAPI release.
There are two timeouts for healthcheck. One is the default_health_check_timeout which has default of 60s as mentioned here. This is the time the health_check waits for the app to come up. The other one is health_check invocation_timeout which has a default of 1s as mentioned here. This is the time the health_check endpoint is polled to see if the app is responding or not until the defualt_time_out is elapsed. So for ex, health_check is performed for an app A every 1s upto 60s.
The reason CAPI is sending null is to differentiate if a value is set or not by the user. This has been the logic for over 6years. So supported older version of CAPI should be good.
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
While debugging why an application was being restarted by CF continuously we looked into the
get-health-check
of the application. Theinvocation timeout
was listed as1
and we believe this is wrong.What happened
We do not set any healtcheck timeouts on our apps and rely on the default provided by CAPI which should be
60s
default_health_check_timeout. Running theget-health-check
actually returns1s
.Expected behavior
We expected the command to return the correct value.
Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
cf push <APP>
an application without specifying the healthcheck timeout.cf get-health-check <APP>
Provide more context
Ubuntu 22.04.1 LTS
cf version 8.4.0+b4c083e.2022-06-02
cf-for-k8s v5.7.1
andcf-deployment 21.4.0
**Possible code bug
This line in the CLI code when invocation timeout is set to 0 defaults the output of the command to 1, this seems like the problem:
cli/command/v7/get_health_check_command.go
Line 65 in d3bb1ec
Notes regarding V6 and V7 CLI support:
The text was updated successfully, but these errors were encountered: