Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 1. 3scale API Management operator-based upgrade guide: from 2.13 to 2.14
In some cases, upgrading 3scale API Management from 2.13 to 2.14 might fail to complete. To prevent this, follow the tested and approved steps in the solution from the Red Hat Customer Portal before you attempt the upgrade. The solution includes detailed information on the root cause and conditions under which the issue can occur.
Upgrade Red Hat 3scale API Management from version 2.13 to 2.14, in an operator-based installation to manage 3scale on OpenShift 4.x.
To automatically obtain a micro-release of 3scale, make sure automatic updates is on. Do not set automatic updates if you are using an Oracle external database. To check this, see Configuring automated application of micro releases.
In order to understand the required conditions and procedure, read the entire upgrade guide before applying the listed steps. The upgrade process disrupts the provision of the service until the procedure finishes. Due to this disruption, make sure to have a maintenance window.
1.1. Prerequisites to perform the upgrade
This section describes the required configurations to upgrade 3scale from 2.13 to 2.14 in an operator-based installation.
- An OpenShift Container Platform (OCP) 4.12, 4.13, or 4.14 cluster with administrator access. Ensure that your OCP environment is upgraded to at least version 4.12, which is the minimal requirement for proceeding with a 3scale update.
- 3scale 2.13 previously deployed via the 3scale operator.
Make sure the latest CSV of the
threescale-2.13
channel is in use. To check it:- If the approval setting for the subscription is automatic, you should already be in the latest CSV version of the channel.
- If the approval setting for the subscription is manual, make sure you approve all pending InstallPlans and have the latest CSV version.
- Keep in mind if there is a pending install plan, there might be more pending install plans, which will only be shown after the existing pending plan has been installed.
1.2. Upgrading from 2.13 to 2.14 in an operator-based installation
To upgrade 3scale from version 2.13 to 2.14 in an operator-based deployment:
- Log in to the OCP console using the account with administrator privileges.
- Select the project where the 3scale-operator has been deployed.
- Click Operators > Installed Operators.
- Select Red Hat Integration - 3scale > Subscription > Channel.
Edit the channel of the subscription by selecting threescale-2.14 and save the changes.
This will start the upgrade process.
Query the pods' status on the project until you see all the new versions are running and ready without errors:
$ oc get pods -n <3scale_namespace>
Note- The pods might have temporary errors during the upgrade process.
- The time required to upgrade pods can vary from 5-10 minutes.
- After new pod versions are running, confirm a successful upgrade by logging in to the 3scale Admin Portal and checking that it works as expected.
Check the status of the APIManager objects and get the YAML content by running the following command. <myapimanager> represents the name of your APIManager:
$ oc get apimanager <myapimanager> -n <3scale_namespace> -o yaml
The new annotations with the values should be as follows:
apps.3scale.net/apimanager-threescale-version: "2.14" apps.3scale.net/threescale-operator-version: "0.11.x"
After you have performed all steps, the 3scale upgrade from 2.13 to 2.14 in an operator-based deployment is complete.
1.3. Upgrading from 2.13 to 2.14 in an operator-based installation with an external Oracle database
Follow this procedure to update your 3scale operator-based installation with an external Oracle database.
Procedure
-
Follow these steps in Installing Red Hat 3scale API Management guide to create a new
system-oracle-3scale-2.14.0-1
image. - Follow the steps in Upgrading from 2.13 to 2.14 in an operator-based installation to upgrade the 3scale operator.
- Once the upgrade is completed, update the APIManager custom resource with the new image created in the first step of this procedure as described in Installing 3scale API Management with Oracle using the operator.