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

Multiple SMCP in the same namespace deletion issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Undefined
    • None
    • OSSM 2.3.2
    • Customer Impact
    • None
    • False
    • None
    • False

    Description

      This is related to the bug OSSM-2189

      Steps:

      • Install OSSM operators
      • Deploy a first smcp in a new namespace
      • Delete the validation webhook to be able to create another smcp in the same namespace, the result will be two smcp created but only have one istio resources related to the oldest smcp:
      oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io 

      Log of the istio operator until this point:

      {"level":"info","ts":1680193081.4491932,"logger":"smcp-mutator","msg":"Setting .spec.profiles to default value","ServiceMeshControlPlane":"istio-system/basic2","profiles":["default"]}1091{"level":"info","ts":1680193081.4581344,"logger":"servicemeshcontrolplane-controller","msg":"Processing ServiceMeshControlPlane","ServiceMeshControlPlane":"istio-system/basic2"}1092{"level":"info","ts":1680193081.465298,"logger":"servicemeshcontrolplane-controller","msg":"Completed ServiceMeshControlPlane processing","ServiceMeshControlPlane":"istio-system/basic2"}1093{"level":"info","ts":1680193081.465935,"logger":"servicemeshcontrolplane-controller","msg":"Processing ServiceMeshControlPlane","ServiceMeshControlPlane":"istio-system/basic2"}1094{"level":"info","ts":1680193081.4659736,"logger":"servicemeshcontrolplane-controller","msg":"Reconciling ServiceMeshControlPlane","ServiceMeshControlPlane":"istio-system/basic2","Status":{}}1095{"level":"info","ts":1680193081.4667735,"logger":"servicemeshcontrolplane-controller","msg":"Updating ServiceMeshControlPlane readiness state","ServiceMeshControlPlane":"istio-system/basic2"}1096{"level":"info","ts":1680193081.4670224,"logger":"servicemeshcontrolplane-controller","msg":"Posting status update","ServiceMeshControlPlane":"istio-system/basic2","conditions":[{"type":"Reconciled","status":"Unknown","reason":"ErrMultipleSMCPs","message":"reconciliation skipped: error: multiple ServiceMeshControlPlane resources exist in the namespace","lastTransitionTime":"2023-03-30T16:18:01Z"},{"type":"Ready","status":"Unknown","reason":"ErrMultipleSMCPs","message":"reconciliation skipped: error: multiple ServiceMeshControlPlane resources exist in the namespace","lastTransitionTime":"2023-03-30T16:18:01Z"}]}1097{"level":"info","ts":1680193081.4749308,"logger":"servicemeshcontrolplane-controller","msg":"Completed ServiceMeshControlPlane processing","ServiceMeshControlPlane":"istio-system/basic2"}1098{"level":"info","ts":1680193081.4752328,"logger":"servicemeshcontrolplane-controller","msg":"Processing ServiceMeshControlPlane","ServiceMeshControlPlane":"istio-system/basic2"}1099{"level":"info","ts":1680193081.4752645,"logger":"servicemeshcontrolplane-controller","msg":"Reconciling ServiceMeshControlPlane","ServiceMeshControlPlane":"istio-system/basic2","Status":{"conditions":[{"type":"Reconciled","status":"Unknown","reason":"ErrMultipleSMCPs","message":"reconciliation skipped: error: multiple ServiceMeshControlPlane resources exist in the namespace","lastTransitionTime":"2023-03-30T16:18:01Z"},{"type":"Ready","status":"Unknown","reason":"ErrMultipleSMCPs","message":"reconciliation skipped: error: multiple ServiceMeshControlPlane resources exist in the namespace","lastTransitionTime":"2023-03-30T16:18:01Z"}]}}1100{"level":"info","ts":1680193081.4759207,"logger":"servicemeshcontrolplane-controller","msg":"Updating ServiceMeshControlPlane readiness state","ServiceMeshControlPlane":"istio-system/basic2"}1101{"level":"info","ts":1680193081.4761539,"logger":"servicemeshcontrolplane-controller","msg":"Completed ServiceMeshControlPlane processing","ServiceMeshControlPlane":"istio-system/basic2"} 

      Until this point everything is Ok, the behavior is correct and all the resources are available

      Incorrect behavior:

      • When you delete the newest smcp all the istio resources inside the namespace are deleted:

      Log attached from the operator https://issues.redhat.com/secure/attachment/12942707/istio-operator-589bdfb57c-l827k-istio-operator.log (From line 1101 in advance we make the smcp deletion)

      frherrer@frherrer-mac tests % oc get pods -n istio-system
      No resources found in istio-system namespace.
      frherrer@frherrer-mac tests % oc get all -n istio-system
      No resources found in istio-system namespace.
      frherrer@frherrer-mac tests %

      Expected behavior:

      • The new smcp is deleted and all the istio resource remaining available to the smcp

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frherrer@redhat.com Francisco Herrera Lira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: