Improve che.isCheServerReady() method (flapping route/ingress issue) #14456
Labels
area/chectl
Issues related to chectl, the CLI of Che
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P2
Has a minor but important impact to the usage or development of the system.
From chectl created by rhopp: che-incubator/chectl#145
It turns out, that once k8s ingress is created it could be flapping between two states for some time -
This is causing some problems in our Happy Path test scenario:
We first start server by
chectl server:start
and then (pretty immediately) we are starting workspaces bychectl workspace:start --devfile=<devfile>
.What's happening?
chectl server:start
starts the server. In the stepChe status check
it calls<cheurl>/api/system/state
to verify che server is up and running. This succeeds<cheurl>/api/system/state
) is part of pre-flight checks forworkspace:start
command, but because the route/ingress flapping issue this fails.We are implementing a workaround in our tests to overcome this issue (calling the ingress endpoint every second and waiting for multiple subsequent successful return codes), but we were thinking if it wouldn't be better to implement this logic into
che.isCheServerReady()
directly.WDYT @l0rd @benoitf ?
The text was updated successfully, but these errors were encountered: