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

After upgrade of 2.3 control plane to 2.4 the ior is not able to delete existing route after removal of the gateway

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • OSSM 2.4.6, OSSM 2.5.0
    • OSSM 2.4.5
    • Maistra
    • None

      See repro steps above. It seems that during upgrade from 2.3 to 2.4 some information about ior managed routes is lost and the route stays there even after removal of the gateway.

      Note that:

      • this is not visible when trying on fresh 2.4 control plane
      • the route is NOT removed after step 10 but it should be
      • IMPORTANT - when the istiod pod is restarted before step 10 (before the gateway is removed), the issue is not happening
      • when you create the gateway again, it will create another route

       

      Workaround:

      1. create the missing gateway
      2. restart istiod pods (note that restarting istiod without the gateway begin re-created does not fix the problem)
      3. remove the gateway
      4. from this point the routes are created and deleted as expected

       

      From istiod pod log:

      2024-01-17T11:16:03.419894Z	debug	Handle event delete for configuration networking.istio.io/v1alpha3/Gateway/bookinfo/bookinfo-gateway
      2024-01-17T11:16:03.419951Z	warn	kube	couldn't find bookinfo/bookinfo-gateway in informer index	controller=crd-controller
      

       

      So it seems that during the upgrade the information about a gateway is lost from the informer index. Workaround is simple as described above.

       

       

       

        1. clean-reproducer.sh
          0.7 kB
        2. istiod-basic-restarted-working.log
          136 kB
        3. istiod-broken.log
          139 kB
        4. reproducer.sh
          5 kB
        5. smcp-cr.yaml
          0.4 kB
        6. smmr.yaml
          0.1 kB

              jewertow@redhat.com Jacek Ewertowski
              fbrychta@redhat.com Filip Brychta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: