Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-1410

race condition between subscription and first SMCP creation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 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"

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

              Created:
              Updated: