Repository navigation
Closed
Labels
area/autoscalekind/bugCategorizes issue or PR as related to a bug.triage/needs-user-inputIssues which are waiting on a response from the reporter
Description
/area service
/kind bug
What version of Knative?
0.19.x
Expected Behavior
Services should be ready when they are created. A revision should be created automatically if required.
Actual Behavior
Services start up with "ready=false" and "reason=RevisionMissing":
➜ install-minikube-0.2.0-rc3 oc -n drogue-iot get ksvc
NAME URL LATESTCREATED LATESTREADY READY REASON
device-management-service http://device-management-service.drogue-iot.10.103.42.167.nip.io device-management-service-00001 False RevisionMissing
http-endpoint http://http-endpoint.drogue-iot.10.103.42.167.nip.io http-endpoint-00002 http-endpoint-00002 True
influxdb-pusher http://influxdb-pusher.drogue-iot.10.103.42.167.nip.io influxdb-pusher-00001 False RevisionMissing
Steps to Reproduce the Problem
Create a bunch of new services at the same time.
Additional information
It is possible to get them ready by executing a bogus kn service update:
➜ install-minikube-0.2.0-rc3 kn -n drogue-iot service update device-management-service -e N=1
Updating Service 'device-management-service' in namespace 'drogue-iot':
0.039s unsuccessfully observed a new generation
0.089s Configuration "device-management-service" does not have any ready Revision.
0.134s Configuration "device-management-service" is waiting for a Revision to become ready.
3.416s ...
3.460s Ingress has not yet been reconciled.
3.511s Waiting for load balancer to be ready
3.695s Ready to serve.
Service 'device-management-service' updated to latest revision 'device-management-service-bswsg-2' is available at URL:
http://device-management-service.drogue-iot.10.103.42.167.nip.io
Metadata
Metadata
Assignees
Labels
area/autoscalekind/bugCategorizes issue or PR as related to a bug.triage/needs-user-inputIssues which are waiting on a response from the reporter
Activity
markusthoemmes commentedon Dec 10, 2020
🤔 is this reproducible with arbitrary services? Anything special about yours? Long startup times and such? Any chance you can share the service's YAML? Are the images prepulled to minikube?
(sorry for the battery of questions 😂)
ctron commentedon Dec 10, 2020
No worries, sorry for my answers! 😁
The installer is here: https://github.com/drogue-iot/drogue-cloud/releases/tag/v0.2.0-rc5 (minikube works, the others are still being tested). Unzip and then:
Deploy with:
The images are not pre-pulled.
markusthoemmes commentedon Dec 10, 2020
Could you check if pods are created for the revision and are failing/taking long to come up because of image pulling etc.? Our controllers will give up after a while if they can't seem to make progress.
ctron commentedon Dec 11, 2020
I just checked, here is what I can see:
ContainerCreatingfor ~2.5 minutesTerminatingWhen deploying a bunch of services at the same time, pulling may slow down, so 2.5 minutes seems a bit eager. Also, Kubernetes already has a concept of backoff and re-trying. I wonder why Knative does something special here. Which ultimately makes the system much more fragile. Because it never retries, and never comes back.
I hope there is some kind of solution for this.
Work around Knative "RevisionMissing" issue
vagababov commentedon Dec 11, 2020
The default deadline progress for knative is 120s. I suggest you change the config map setting to a longer value.
https://github.com/knative/serving/blob/master/config/core/configmaps/deployment.yaml#L53
vagababov commentedon Dec 11, 2020
Other work is also planned in the new year to deal better with non-terminal failures
mattmoor commentedon Jan 6, 2021
I notice you have IoT in the name. I have noticed that on my RPi4 cluster that I am more prone to hitting the 120s limit that @vagababov mentioned above. If this resolves things for you, then perhaps we should consider a higher default for this, which folks can tune down 🤔
vagababov commentedon Jan 6, 2021
Eh, why default up here and tune down elsewhere, rather than status quo?
mattmoor commentedon Jan 6, 2021
My personal bias is towards a configuration that works as many places as possible out of the box. Folks curating distributions for other environments can ofc change things 🤷
vagababov commentedon Jan 6, 2021
SG, let me cook a PR
evankanderson commentedon Mar 17, 2021
Victor, is this complete?
/area autoscale
/assign @vagababov
/triage needs-user-input
vagababov commentedon Mar 22, 2021
I think so. No activity.
/close
knative-prow-robot commentedon Mar 22, 2021
@vagababov: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
vyom-soft commentedon Sep 27, 2021
Hello,
I too see the same RevisionMissing
$ oc get routes.serving.knative.dev -n default
NAME URL READY REASON
minserver http://minserver-default.apps-crc.testing Unknown RevisionMissing