|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * /serverless/admin_guide/serverless-upgrades.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="serverless-resolving-operator-upgrade-failure_{context}"] |
| 7 | += Resolving an {ServerlessOperatorName} upgrade failure |
| 8 | + |
| 9 | +You might encounter an error when upgrading {ServerlessOperatorName}, for example, when performing manual uninstalls and reinstalls. If you encounter an error, you must manually reinstall {ServerlessOperatorName}. |
| 10 | + |
| 11 | +.Procedure |
| 12 | + |
| 13 | +. Identify the version of {ServerlessOperatorName} that was installed originally by searching in the {ServerlessProductName} Release Notes. |
| 14 | ++ |
| 15 | +For example, the error message during attempted upgrade might contain the following string: |
| 16 | ++ |
| 17 | +[source] |
| 18 | +---- |
| 19 | +The installed KnativeServing version is v1.5.0. |
| 20 | +---- |
| 21 | ++ |
| 22 | +In this example, the KnativeServing `MAJOR.MINOR` version is `1.5`, which is covered in the release notes for {ServerlessProductName} 1.26: _OpenShift Serverless now uses Knative Serving 1.5_. |
| 23 | + |
| 24 | +. Uninstall {ServerlessOperatorName} and all of its install plans. |
| 25 | + |
| 26 | +. Manually install the version of {ServerlessOperatorName} that you discovered in the first step. To install, first create a `serverless-subscription.yaml` file as shown in the following example: |
| 27 | ++ |
| 28 | +[source,yaml] |
| 29 | +---- |
| 30 | +apiVersion: operators.coreos.com/v1alpha1 |
| 31 | +kind: Subscription |
| 32 | +metadata: |
| 33 | + name: serverless-operator |
| 34 | + namespace: openshift-serverless |
| 35 | +spec: |
| 36 | + channel: stable |
| 37 | + name: serverless-operator |
| 38 | + source: redhat-operators |
| 39 | + sourceNamespace: openshift-marketplace |
| 40 | + installPlanApproval: Manual |
| 41 | + startingCSV: serverless-operator.v1.26.0 |
| 42 | +---- |
| 43 | + |
| 44 | +. Then, install the subscription by running the following command: |
| 45 | ++ |
| 46 | +[source,terminal] |
| 47 | +---- |
| 48 | +$ oc apply -f serverless-subscription.yaml |
| 49 | +---- |
| 50 | + |
| 51 | +. Upgrade by manually approving the upgrade install plans as they appear. |
0 commit comments