Error: deploy error. knative deployer failed to wait for the Knative Service to become ready: timeout: service 'resource-cost-calculator' not ready after 120 seconds
Closed this issue · 3 comments
Problem with S2i build on latest binary with Openshift
I used this function:
https://github.com/keventmesh/llm-tool-provider/blob/main/tools/resource-cost-calculator/func.yaml
and yes, I have removed quay.io lines and the builder
, so it looks like:
specVersion: 0.36.0
name: resource-cost-calculator
runtime: go
namespace: default
created: 2024-06-25T14:54:34.256280245-04:00
invoke: cloudevent
deploy:
namespace: default
subscriptions:
- source: chat-broker
filters:
type: resource.cost.calculator
Now I am running func deploy
as below:
func deploy -b=s2i -v
Building function image
STEP 1/9: FROM registry.access.redhat.com/ubi8/go-toolset
...
...
Successfully tagged <my container registry address>/resource-cost-calculator:latest
Writing built image: '<my container registry address>/resource-cost-calculator:latest' at path: '/home/path/to/the/function/.func/built-image'
🙌 Function built: <my container registry address>/resource-cost-calculator:latest
Pushing function image to the registry "index.docker.io" using the "matzew" user credentials
The push refers to repository [docker.io/matzew/resource-cost-calculator:latest]
latest: digest: sha256:65d0eefa933291eb8327fd882b63fc2b089667932ec9690a0f8fe7d082d493db size: 1541
⬆️ Deploying
Waiting for Knative Service to become ready
{"level":"debug","time":1719915291,"message":"func runtime creating function instance"}
{"level":"warn","time":1719915291,"message":"Environment variable ADDRESS is deprecated and support will be removed in future versions. Try rebuilding your Function with the latest version of func to use LISTEN_ADDRESS instead."}
{"level":"warn","time":1719915291,"message":"Environment variable PORT is deprecated and support will be removed in future version.s Try rebuilding your Function with the latest version of func to use LISTEN_ADDRESS instead."}
{"level":"debug","address":"0.0.0.0:8080","time":1719915291,"message":"function starting"}
{"level":"debug","time":1719915291,"message":"function does not implement Start. Skipping"}
{"level":"debug","time":1719915291,"message":"waiting for stop signals or errors"}
{"level":"debug","signal":15,"time":1719915383,"message":"signal received"}
{"level":"debug","time":1719915383,"message":"function stopping"}
Error: deploy error. knative deployer failed to wait for the Knative Service to become ready: timeout: service 'resource-cost-calculator' not ready after 120 seconds
the function gets ready... and eventually it tearsdown as there is no traffic, so scale to zero kicks in.
However my other bits, like the subscriptions are not created and the deployer fails with this error:
Error: deploy error. knative deployer failed to wait for the Knative Service to become ready: timeout: service 'resource-cost-calculator' not ready after 120 seconds
Can you invoke the function while func
is still "waiting for it to become ready" via curl
?
I ask because, it's possible there is a problem with the "wait for ready", which is timing out before moving on to creating the subscriptions.
@lkingland currently blocked on -> #2431
I was able to recreate this using the default installation of the KnativeServing CR. It fails due to needing either Kourier or Istio network enabled. Enabling one of these resulted in a successful deploy.
Closing this issue. Please re-open if necessary!