Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-624

Upgrading operator via OCP Console from 1.35.0 to 1.36.0 fails with error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 1.37.0
    • 1.36.0
    • Cloud:Operator
    • None

      Summary


       

      When you follow the UI of OCP to perform an upgrade using the documented procedure, there is a failure in the upgrade process and the operator does not get upgraded.

       

      Environment


      Openshift 4.13 - 4.19.

       

      Steps to reproduce


      1. Install Serverless Logic Operator v.1.35.0
      2. In the Operator details page, click on the Subscription tab. Click Edit Subscription.
      3. In the Upgrade status tab, click the Upgrade available link.
      4. Click the Preview install plan button and Approve to start the update.
      5. You will see an error

       

      Actual results


      A following error is shown:

       

      Expected results


      No error is shown and migration succeeds.

       

      Workaround


      W1: Before applying the upgrade to 1.36.0
      1. Patch the 1.35.0 CSV:

      oc patch csv logic-operator-rhel8.v1.35.0 -n openshift-serverless-logic --type=json -p='[{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/selector/matchLabels", "value": {"app.kubernetes.io/name": "sonataflow-operator"}},{"op": "replace", "path": "/spec/install/spec/deployments/0/label", "value": {"app.kubernetes.io/name": "sonataflow-operator"}},{"op": "replace", "path": "/spec/install/spec/deployments/0/spec/template/metadata/labels", "value": {"app.kubernetes.io/name": "sonataflow-operator"}}]'

       
      2. Next delete the deployment:

      oc delete deployment logic-operator-rhel8-controller-manager -n openshift-serverless-logic

      3. Wait for the deployment to be recreated:

      oc get deployments -n openshift-serverless-logic 

      4. Execute the upgrade via OCP Console as usual.

       
      W2:
      1. Remove 1.35.0 Operator - unnistall it
      2. Install 1.36.0 Operator
       

      Testing


      Implement a automated test case for this scenario.
      Improve the test environment to allow QE to execute this path without workarounds manually during test day sessions.

        1. to-136.0-migration-issue.png
          216 kB
          Dominik Hanak
        2. to-136.0-migration-issue-detail.png.png
          24 kB
          Dominik Hanak

              wmedvede@redhat.com Walter Medvedeo
              dhanak@redhat.com Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: