Skip to content

Commit bda393e

Browse files
authored
Merge pull request #58238 from rh-max/srvls-upgrade
[SRVKS-957] Add section on resolving Serverless operator upgrade failure
2 parents 4fd3567 + e222a99 commit bda393e

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:_content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="serverless-upgrades"]
4+
= Serverless upgrades
5+
:context: serverless-upgrades
6+
7+
toc::[]
8+
9+
{ServerlessProductName} should be upgraded without skipping release versions. This section shows how to resolve problems with upgrading.
10+
11+
include::modules/serverless-resolving-operator-upgrade-failure.adoc[leveloffset=+1]
12+
13+
[role="_additional-resources"]
14+
.Additional resources
15+
16+
* xref:../../serverless/serverless-release-notes.adoc#serverless-tech-preview-features_serverless-release-notes[{ServerlessProductName} Release Notes]
17+
* xref:../../serverless/removing/removing-serverless-operator.adoc#olm-deleting-operators-from-a-cluster-using-web-console_removing-serverless-operator[Deleting Operators from a cluster using the web console]
18+
* xref:../../serverless/install/install-serverless-operator.adoc#serverless-install-web-console_install-serverless-operator[Installing the OpenShift Serverless Operator from the web console]

0 commit comments

Comments
 (0)