-
Bug
-
Resolution: Unresolved
-
Critical
-
1.36.0
-
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
- Install Serverless Logic Operator v.1.35.0
- In the Operator details page, click on the Subscription tab. Click Edit Subscription.
- In the Upgrade status tab, click the Upgrade available link.
- Click the Preview install plan button and Approve to start the update.
- 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.
- is documented by
-
SRVLOGIC-629 [Docs] Upgrading operator via OCP Console from 1.35.0 to 1.36.0 fails with error
-
- Closed
-