Uploaded image for project: 'Knative Serving'
  1. Knative Serving
  2. SRVKS-1325

ksvc created before KnativeServing is Ready may not become Ready

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.37.0
    • 1.36.0
    • None

      With Serverless 1.36.0, the following scenario fails: (works fine with 1.35.1)

      1. Install Serverless Operator
      2. Install KnativeServing (create a KnativeServing CR)
      3. Uninstall KnativeServing (delete KnativeServing CR)
      4. Create a ksvc
        apiVersion: serving.knative.dev/v1
        kind: Service
        metadata:
          name: helloworld-go
        spec:
          template:
            spec:
              containers:
              - image: gcr.io/knative-samples/helloworld-go
                env:
                - name: TARGET
                  value: "Go Sample v1"
        
      1. Install KnativeServing again (create a KnativeServing CR)

      The ksvc will stay in `RevisionMissing` status.

      apiVersion: serving.knative.dev/v1
      kind: Revision
      metadata:
        annotations:
          serving.knative.dev/routes: helloworld-go
          serving.knative.dev/routingStateModified: "2025-07-03T09:18:20Z"
        creationTimestamp: "2025-07-03T09:18:20Z"
        generation: 1
        labels:
          serving.knative.dev/configuration: helloworld-go
          serving.knative.dev/configurationGeneration: "1"
          serving.knative.dev/configurationUID: b9bf7684-e0d6-4f3a-a7bb-cf1ffc161bda
          serving.knative.dev/routingState: active
          serving.knative.dev/service: helloworld-go
          serving.knative.dev/serviceUID: 3678ad16-037f-4cb5-9fed-c4dc5a34851b
        name: helloworld-go-00001
        namespace: foobar2
        ownerReferences:
        - apiVersion: serving.knative.dev/v1
          blockOwnerDeletion: true
          controller: true
          kind: Configuration
          name: helloworld-go
          uid: b9bf7684-e0d6-4f3a-a7bb-cf1ffc161bda
        resourceVersion: "59252"
        uid: e3974882-39c8-481b-be01-47f37615e414
      spec:
        containerConcurrency: 0
        containers:
        - env:
          - name: TARGET
            value: Go Sample v1
          image: gcr.io/knative-samples/helloworld-go
          name: user-container
          readinessProbe:
            successThreshold: 1
            tcpSocket:
              port: 0
          resources: {}
        timeoutSeconds: 300
      status:
        conditions:
        - lastTransitionTime: "2025-07-03T09:18:21Z"
          reason: Deploying
          severity: Info
          status: Unknown
          type: Active
        - lastTransitionTime: "2025-07-03T09:18:23Z"
          status: "True"
          type: ContainerHealthy
        - lastTransitionTime: "2025-07-03T09:18:21Z"
          reason: Deploying
          status: Unknown
          type: Ready
        - lastTransitionTime: "2025-07-03T09:18:21Z"
          reason: Deploying
          status: Unknown
          type: ResourcesAvailable
        containerStatuses:
        - imageDigest: gcr.io/knative-samples/helloworld-go@sha256:b9452976281b790fd56cbae50e5e22003a9bd0a296425fe42256e78a2dd96e2e
          name: user-container
        observedGeneration: 1
      

              dsimansk@redhat.com David Simansky
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: