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

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Done
    • None
    • maistra-2.0.0
    • None
    • None

    Description

      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.

      Attachments

        1. 2.0.0-1-upgrade.png
          2.0.0-1-upgrade.png
          215 kB
        2. error-on-2.0.0-0.png
          error-on-2.0.0-0.png
          164 kB
        3. smcp.yaml
          2 kB
        4. smcp-test-2.0.0-1.png
          smcp-test-2.0.0-1.png
          85 kB

        Issue Links

          Activity

            People

              gbaufake Guilherme Baufaker Rêgo
              kconner@redhat.com Kevin Conner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: