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

TestKsvcWithServiceMeshJWTDefaultPolicy/v1 fails

XMLWordPrintable

      The error is following:

      helpers.go:43: Error waiting for ksvc readiness: knative service jwt-test is not in desired state, got: &{TypeMeta:{Kind: APIVersion:} ObjectMeta:{Name:jwt-test GenerateName: Namespace:serverless-tests SelfLink:/apis/serving.knative.dev/v1/namespaces/serverless-tests/services/jwt-test UID:353d6ee7-e24e-4e26-93e9-ab8ba761a5f0 ResourceVersion:111857 Generation:1 CreationTimestamp:2021-03-28 01:46:06 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[serving.knative.dev/creator:system:admin serving.knative.dev/lastModifier:system:admin] OwnerReferences:[] Finalizers:[] ClusterName: ManagedFields:[{Manager:controller Operation:Update APIVersion:serving.knative.dev/v1 Time:2021-03-28 01:46:06 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:status":{".":{},"f:conditions":{},"f:latestCreatedRevisionName":{},"f:observedGeneration":{},"f:url":{}}}} {Manager:servinge2e.test Operation:Update APIVersion:serving.knative.dev/v1 Time:2021-03-28 01:46:06 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:spec":{".":{},"f:template":{".":{},"f:metadata":{".":{},"f:annotations":{".":{},"f:sidecar.istio.io/inject":{}},"f:creationTimestamp":{}},"f:spec":{".":{},"f:containers":{}}}}}}]} Spec:{ConfigurationSpec:{Template:{ObjectMeta:{Name: GenerateName: Namespace: SelfLink: UID: ResourceVersion: Generation:0 CreationTimestamp:0001-01-01 00:00:00 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[] Annotations:map[sidecar.istio.io/inject:true] OwnerReferences:[] Finalizers:[] ClusterName: ManagedFields:[]} Spec:{PodSpec:{Volumes:[] InitContainers:[] Containers:[{Name:user-container Image:gcr.io/knative-samples/helloworld-go Command:[] Args:[] WorkingDir: Ports:[] EnvFrom:[] Env:[] Resources:{Limits:map[] Requests:map[cpu:{i:{value:25 scale:-3} d:{Dec:<nil>} s:25m Format:DecimalSI}]} VolumeMounts:[] VolumeDevices:[] LivenessProbe:nil ReadinessProbe:&Probe{Handler:Handler{Exec:nil,HTTPGet:nil,TCPSocket:&TCPSocketAction{Port:{0 0 },Host:,},},InitialDelaySeconds:0,TimeoutSeconds:0,PeriodSeconds:0,SuccessThreshold:1,FailureThreshold:0,} StartupProbe:nil Lifecycle:nil TerminationMessagePath: TerminationMessagePolicy: ImagePullPolicy: SecurityContext:nil Stdin:false StdinOnce:false TTY:false}] EphemeralContainers:[] RestartPolicy: TerminationGracePeriodSeconds:<nil> ActiveDeadlineSeconds:<nil> DNSPolicy: NodeSelector:map[] ServiceAccountName: DeprecatedServiceAccount: AutomountServiceAccountToken:<nil> NodeName: HostNetwork:false HostPID:false HostIPC:false ShareProcessNamespace:<nil> SecurityContext:nil ImagePullSecrets:[] Hostname: Subdomain: Affinity:nil SchedulerName: Tolerations:[] HostAliases:[] PriorityClassName: Priority:<nil> DNSConfig:nil ReadinessGates:[] RuntimeClassName:<nil> EnableServiceLinks:0xc000cfc8c3 PreemptionPolicy:<nil> Overhead:map[] TopologySpreadConstraints:[] SetHostnameAsFQDN:<nil>} ContainerConcurrency:0xc000cfc870 TimeoutSeconds:0xc000cfc8c8}}} RouteSpec:{Traffic:[{Tag: RevisionName: ConfigurationName: LatestRevision:0xc000cfc8e0 Percent:0xc000cfc8e8 URL:}]}} Status:{Status:{ObservedGeneration:1 Conditions:[{Type:ConfigurationsReady Status:False Severity: LastTransitionTime:{Inner:2021-03-28 01:48:37 +0000 UTC} Reason:RevisionFailed Message:Revision "jwt-test-00001" failed with message: Initial scale was never achieved.} {Type:Ready Status:False Severity: LastTransitionTime:{Inner:2021-03-28 01:48:37 +0000 UTC} Reason:RevisionMissing Message:Configuration "jwt-test" does not have any ready Revision.} {Type:RoutesReady Status:False Severity: LastTransitionTime:{Inner:2021-03-28 01:48:37 +0000 UTC} Reason:RevisionMissing Message:Configuration "jwt-test" does not have any ready Revision.}] Annotations:map[]} ConfigurationStatusFields:{LatestReadyRevisionName: LatestCreatedRevisionName:jwt-test-00001} RouteStatusFields:{URL:http://jwt-test-serverless-tests.apps.**************-ea914.ci.azure.devcluster.openshift.com Address:<nil> Traffic:[]}}}: timed out waiting for the condition
          helpers.go:37: Cleaning up Knative Service 'serverless-tests/jwt-test'
          unstructured.go:21: Cleaning up policies.authentication.istio.io default
          helpers.go:37: Cleaning up Knative Service 'serverless-tests/jwks-etvmfzim'
          servicemesh.go:393: Cleaning up NetworkPolicy allow-from-serving-system-namespace
          unstructured.go:21: Cleaning up servicemeshmemberrolls.maistra.io default
          unstructured.go:21: Cleaning up servicemeshcontrolplanes.maistra.io basic
          servicemesh.go:285: Waiting for ServiceMeshControlPlane "basic" to not exist
          --- FAIL: TestKsvcWithServiceMeshJWTDefaultPolicy/v1 (464.12s)
      

      The test failure is visible in the run from Mar 28: https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-knative-serverless-operator-main-4.7-azure-e2e-azure-ocp-47-continuous/1375961079590424576

      The same test was working on Mar 14: https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-knative-serverless-operator-main-4.7-azure-e2e-azure-ocp-47-continuous/1370887589032103936

      Both runs are with Service Mesh 2.0.2

      This is a regression between Serverless 1.13 and 1.14. The same test passes with Serverless 1.13 being installed.

      It looks like traffic doesn't flow to the jwt-test service that is defined here. The revision shows this:

      status:
        conditions:
        - lastTransitionTime: "2021-03-30T12:00:46Z"
          message: The target is not receiving traffic.
          reason: NoTraffic
          severity: Info
          status: "False"
          type: Active
        - lastTransitionTime: "2021-03-30T11:58:16Z"
          reason: Deploying
          status: Unknown
          type: ContainerHealthy
        - lastTransitionTime: "2021-03-30T12:00:46Z"
          message: Initial scale was never achieved
          reason: ProgressDeadlineExceeded
          status: "False"
          type: Ready
        - lastTransitionTime: "2021-03-30T12:00:46Z"
          message: Initial scale was never achieved
          reason: ProgressDeadlineExceeded
          status: "False"
          type: ResourcesAvailable
      
      

              rhn-support-knakayam Kenjiro Nakayama (Inactive)
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: