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

Setting Traffic Distribution with numeric tags cause configuration hang

XMLWordPrintable

    • Serverless Sprint 182, Serverless Sprint 184

      After trying to set traffic distribution using DevConsole: (unique tag to value 1 and 2, choose Split as 50 and 50, choose two different revisions), service wasn't reconfigured. DevConsole wasn't updated.

      Invoking service will result in previous configuration.

      Ksvc status:
      Ready: Unknown
      Reason: The Route is still working to reflect the latest desired specification.

      ksvc YAML:

      apiVersion: serving.knative.dev/v1beta1
      kind: Service
      metadata:
        annotations:
          serving.knative.dev/creator: 'kube:admin'
          serving.knative.dev/lastModifier: 'kube:admin'
        selfLink: >-
          /apis/serving.knative.dev/v1beta1/namespaces/demo/services/knative-serving-showcase
        resourceVersion: '83483'
        name: knative-serving-showcase
        uid: 9ff18b2b-4256-471c-8f93-aeab5ea5880b
        creationTimestamp: '2020-03-05T15:05:47Z'
        generation: 4
        namespace: demo
        labels:
          app.kubernetes.io/component: knative-serving-showcase
          app.kubernetes.io/instance: knative-serving-showcase
          app.kubernetes.io/part-of: knative-serving-showcase-app
          app.openshift.io/runtime-version: latest
      spec:
        template:
          metadata:
            creationTimestamp: null
            labels:
              app.kubernetes.io/component: knative-serving-showcase
              app.kubernetes.io/instance: knative-serving-showcase
              app.kubernetes.io/part-of: knative-serving-showcase-app
              app.openshift.io/runtime-version: latest
          spec:
            containerConcurrency: 2
            containers:
              - image: >-
                  image-registry.openshift-image-registry.svc:5000/demo/knative-serving-showcase:latest
                name: user-container
                readinessProbe:
                  successThreshold: 1
                  tcpSocket:
                    port: 0
                resources: {}
            timeoutSeconds: 300
        traffic:
          - latestRevision: false
            percent: 50
            revisionName: knative-serving-showcase-r7vxw
            tag: '1'
          - latestRevision: false
            percent: 50
            revisionName: knative-serving-showcase-d7jhh
            tag: '2'
      status:
        address:
          url: 'http://knative-serving-showcase.demo.svc.cluster.local'
        conditions:
          - lastTransitionTime: '2020-03-05T15:07:24Z'
            status: 'True'
            type: ConfigurationsReady
          - lastTransitionTime: '2020-03-05T15:11:09Z'
            message: The Route is still working to reflect the latest desired specification.
            reason: OutOfDate
            status: Unknown
            type: Ready
          - lastTransitionTime: '2020-03-05T15:11:09Z'
            message: The Route is still working to reflect the latest desired specification.
            reason: OutOfDate
            status: Unknown
            type: RoutesReady
        latestCreatedRevisionName: knative-serving-showcase-r7vxw
        latestReadyRevisionName: knative-serving-showcase-r7vxw
        observedGeneration: 4
        traffic:
          - latestRevision: true
            percent: 100
            revisionName: knative-serving-showcase-r7vxw
        url: >-
          http://knative-serving-showcase.demo.apps.ksuszyns-23-ocp4x-aws-clean.openshift-aws.rhocf-dev.net
      

      After that, changing the tags to not be numeric 1 -> v1 will fix that issue, but ksvc status is invalid:

      Ready: Unknown
      Reason: Ingress has not yet been reconciled.

              rhn-support-knakayam Kenjiro Nakayama (Inactive)
              krzysztofsuszynski Chris Suszynski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: