Skip to content

Newly created Services fail with "RevisionMissing" #10344

Closed

Description

@ctron

/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

Activity

  1. added
    kind/bug
    on Dec 10, 2020
  2. markusthoemmes commented on Dec 10, 2020

    @markusthoemmes
    Contributor

    🤔 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 😂)

  3. ctron commented on Dec 10, 2020

    @ctron
    Author

    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:

    minikube start --cpus 6 --memory 24576 --disk-size 20gb --addons ingress
    minikube tunnel
    

    Deploy with:

    ./script/drogue.sh
    

    The images are not pre-pulled.

  4. markusthoemmes commented on Dec 10, 2020

    @markusthoemmes
    Contributor

    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.

  5. ctron commented on Dec 11, 2020

    @ctron
    Author

    I just checked, here is what I can see:

    • The service gets deployed, creates a deployment, and tries to create a pod
    • That is in ContainerCreating for ~2.5 minutes
    • Then it goes into Terminating
      device-management-service-00001-deployment-7596645bd5-67222   0/2     Terminating         0          2m31s
      
    • And the Knative service is in the failed state
      NAME                        URL                                                                 LATEST   AGE   CONDITIONS   READY   REASON
      device-management-service   http://device-management-service.drogue-iot.10.108.166.246.nip.io            5m    0 OK / 3     False   RevisionMissing : Configuration "device-management-service" does not have any ready Revision.
      

    When 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.

  6. vagababov commented on Dec 11, 2020

    @vagababov
    Contributor

    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

  7. vagababov commented on Dec 11, 2020

    @vagababov
    Contributor

    Other work is also planned in the new year to deal better with non-terminal failures

  8. mattmoor commented on Jan 6, 2021

    @mattmoor
    Contributor

    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 🤔

  9. vagababov commented on Jan 6, 2021

    @vagababov
    Contributor

    Eh, why default up here and tune down elsewhere, rather than status quo?

  10. mattmoor commented on Jan 6, 2021

    @mattmoor
    Contributor

    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 🤷

  11. vagababov commented on Jan 6, 2021

    @vagababov
    Contributor

    SG, let me cook a PR

  12. evankanderson commented on Mar 17, 2021

    @evankanderson
    Member

    Victor, is this complete?

    /area autoscale
    /assign @vagababov

    /triage needs-user-input

  13. added
    triage/needs-user-input
    on Mar 17, 2021
  14. vagababov commented on Mar 22, 2021

    @vagababov
    Contributor

    I think so. No activity.
    /close

  15. knative-prow-robot commented on Mar 22, 2021

    @knative-prow-robot
    Contributor

    @vagababov: Closing this issue.

    Details

    In response to this:

    I think so. No activity.
    /close

    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.

  16. vyom-soft commented on Sep 27, 2021

    @vyom-soft

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/autoscalekind/bugtriage/needs-user-input

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions