Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-1533

OSSM Federation Service importAsLocal failed to import same name service in failover case

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Undefined
    • Resolution: Duplicate
    • OSSM 2.1.2
    • None
    • Maistra
    • None
    • False
    • None
    • False
    • Sprint 51, Sprint 52

    Description

      OSSM Federation Service importAsLocal failed to import same name service in failover case

      When we set up OSSM federation between two clusters meshes, if east-mesh has a service as "ratings.bookinfo-ha.svc.cluster.local", east-mesh cannot import a local service uses the same name as an alias.
      The following ImportServiceSet failed to import a service from west-mesh to east-mesh

      apiVersion: federation.maistra.io/v1
      kind: ImportedServiceSet
      metadata:
        name: west-mesh
        namespace: east-mesh-system
      spec:
        locality:
          region: west-mesh
        importRules:
          - type: NameSelector
            # Set to true to aggregate remote endpoint with local services.
            # When true, services will be imported as <name>.bookinfo-ha.svc.cluster.local
            # When false, services will be imported as <name>.bookinfo-ha.svc.west-mesh-imports.local
            importAsLocal: true
            nameSelector:
              namespace: bookinfo
              alias:
                namespace: bookinfo-ha
                name: ratings
      

      east-mesh istiod-fed-import log error:

      2022-05-18T19:50:14.799351Z	info	ads	Push Status: {
          "pilot_duplicate_envoy_clusters": {
              "outbound_.9080_._.ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "west-mesh-ingress-6f878f4df8-p4gl6.east-mesh-system",
                  "message": "Duplicate cluster outbound_.9080_._.ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound_.9080_.v1_.ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "west-mesh-ingress-6f878f4df8-p4gl6.east-mesh-system",
                  "message": "Duplicate cluster outbound_.9080_.v1_.ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound_.9080_.v2-mysql-vm_.ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "west-mesh-ingress-6f878f4df8-p4gl6.east-mesh-system",
                  "message": "Duplicate cluster outbound_.9080_.v2-mysql-vm_.ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound_.9080_.v2-mysql_.ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "west-mesh-ingress-6f878f4df8-p4gl6.east-mesh-system",
                  "message": "Duplicate cluster outbound_.9080_.v2-mysql_.ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound_.9080_.v2_.ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "west-mesh-ingress-6f878f4df8-p4gl6.east-mesh-system",
                  "message": "Duplicate cluster outbound_.9080_.v2_.ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound|9080|v1|ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "productpage-v1-5ddcb4b84f-265kf.bookinfo-ha",
                  "message": "Duplicate cluster outbound|9080|v1|ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound|9080|v2-mysql-vm|ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "productpage-v1-5ddcb4b84f-265kf.bookinfo-ha",
                  "message": "Duplicate cluster outbound|9080|v2-mysql-vm|ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound|9080|v2-mysql|ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "productpage-v1-5ddcb4b84f-265kf.bookinfo-ha",
                  "message": "Duplicate cluster outbound|9080|v2-mysql|ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound|9080|v2|ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "productpage-v1-5ddcb4b84f-265kf.bookinfo-ha",
                  "message": "Duplicate cluster outbound|9080|v2|ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              },
              "outbound|9080||ratings.bookinfo-ha.svc.cluster.local": {
                  "proxy": "productpage-v1-5ddcb4b84f-265kf.bookinfo-ha",
                  "message": "Duplicate cluster outbound|9080||ratings.bookinfo-ha.svc.cluster.local found while pushing CDS"
              }
          },
          "pilot_eds_no_instances": {
              "outbound_.9080_.v2-mysql-vm_.ratings.bookinfo-ha.svc.cluster.local": {},
              "outbound_.9080_.v2-mysql_.ratings.bookinfo-ha.svc.cluster.local": {},
              "outbound_.9080_.v2_.ratings.bookinfo-ha.svc.cluster.local": {},
              "outbound|9080|v2-mysql-vm|ratings.bookinfo-ha.svc.cluster.local": {},
              "outbound|9080|v2-mysql|ratings.bookinfo-ha.svc.cluster.local": {},
              "outbound|9080|v2|ratings.bookinfo-ha.svc.cluster.local": {}
          }
      }
      2022-05-18T19:54:04.347776Z	info	ads	Push debounce stable[55] 2: 100.841693ms since last change, 180.352029ms since last push, full=true
      2022-05-18T19:54:04.349688Z	info	ads	XDS: Pushing:2022-05-18T19:54:04Z/38 Services:21 ConnectedEndpoints:10  Version:2022-05-18T19:54:04Z/38
      2022-05-18T19:54:04.352345Z	info	ads	CDS: PUSH for node:istio-ingressgateway-5b84fcc894-dlps7.east-mesh-system resources:51 size:50.8kB
      

      Build Info:
      Two AWS OCP 4.9.29 clusters
      OSSM 2.1.2
      SMCP 2.1.2

      How to reproduce:
      1. Install operators on two OCP clusters
      2. Follow the following federation install.sh , set up federation and wait servicemeshpeer status change to connection: true

      This takes 5-20 minutes based on the cloud provider's lb creation time.

      https://github.com/maistra/maistra-test-tool/tree/failover/scripts/federation

      3. Run the federation install.sh sample again to export and import bookinfo rating service.

      Attachments

        Issue Links

          Activity

            People

              yuaxu@redhat.com Yuanlin Xu
              yuaxu@redhat.com Yuanlin Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: