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

Upgrading to 2.0.0 with an existing SMCP considered invalid cannot easily be repaired

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • maistra-2.0.0
    • None
    • None
    • None
    • MAISTRA 2.0.0

      If a user has a pre-existing SMCP which is invalid, for example defining an attribute as null when it is expected to be a string, then it is not possible to fix without deleting the operator and CRDs.

      Validation will fail with an error, for example as follows

      Error from server: error when creating "smcp.yaml": conversion webhook for maistra.io/v1, Kind=ServiceMeshControlPlane failed: .redundancyPolicy accessor error: <nil> is of the type <nil>, expected string
      

      and this prevents any manipulation of the resource (edit/delete etc).

      The only fix appears to be uninstall the operator and delete the CRDs, tidying up the resource, and then a clean installation with the fixed SMCP.

        1. 2.0.0-1-upgrade.png
          215 kB
          Guilherme Baufaker Rego
        2. error-on-2.0.0-0.png
          164 kB
          Guilherme Baufaker Rego
        3. smcp.yaml
          2 kB
          Kevin Conner
        4. smcp-test-2.0.0-1.png
          85 kB
          Guilherme Baufaker Rego

              rh-ee-gbaufake Guilherme Baufaker Rego (Inactive)
              kconner@redhat.com Kevin Conner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: