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

race condition between subscription and first SMCP creation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None

      Via a script, I create a subscription to the SM operator and its dependencies. I then immediately create a SMCP (I just use this example as-is - notice that this does not have spec.version defined): https://github.com/Maistra/istio-operator/blob/maistra-1.1/deploy/examples/maistra_v1_servicemeshcontrolplane_cr_full.yaml

      I see that v1.0 is installed in the control plane and no spec.version exists in Kiali CR.

      But when I tried again, things worked (SM 1.1 and Kiali 1.12) get installed.

      This seems to be because the webhook was not ready at the time I created the SMCP.

      I also see this error from my script, which indicates the webhook wasn't ready:

      Error from server (InternalError): error when creating "/tmp/maistra-smcp.yaml": Internal error occurred: failed calling webhook "smcp.mutation.maistra.io": Post https://admission-controller.openshift-operators.svc:443/mutate-smcp?timeout=30s: no endpoints available for service "admission-controller"

              jmazzitelli John Mazzitelli
              jmazzitelli John Mazzitelli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: