Prepare your 2018 deployment for upgrade to 10.0.5.x.
Before you begin
Before you move from 2018 to 10.0.5.x, ensure that you have reviewed v10 requirements and
features:
About this task
Before you start an upgrade, make sure that your 2018 database is
in a consistent state, perform the necessary backups, and set up external logging.
Procedure
- Review the upgrade considerations. See Upgrade considerations on native Kubernetes.
- Configure external logging prior to upgrade.
- Be sure you know the name of each subsystem on your 2018 deployment.
The 2018 subsystem names are carried over to version 10 installations. To view the names:
apicup subsys list
These subsystem names are the values used in the spec.subsystemName
field for
each custom resource (CR) when upgrading.
- On 2018, check the health of each subsystem before upgrade:
apicup subsys health-check <subsystem_name>
- On the 2018 system, back up the original
apicup
project directory to a
location from which it can always be retrieved.
Note: The original project directory created with the apicup
installer during the
initial 2018 product installation (for example, myProject) is required if you
need to restore the database and to run disaster recovery back to v2018. You cannot restore the
database or perform a disaster recovery without the initial project directory because it contains
pertinent information about the 2018 cluster.
- Complete a full backup for the API Connect 2018 Management, Portal, and
Analytics subsystems. Verify that you can successfully restore from the backups.
Note: The Analytics subsystem cannot be upgraded due to changes in v10.0.5.0, and you cannot restore
it into v10 but you should back it up in case a rollback is needed.
Make sure you have current and correct configuration for backup and restore for all of the 2018
subsystems. See Backing up and restoring.
- If you want to retain your analytics data, then you must export it before running the
upgrade.
- Disassociate and delete your Analytics services.
Note: If you want your v2018 deployment to continue gathering analytics data up to the last possible
moment, this step can instead be done just before the Management subsystem upgrade:
5.
- In Cloud Manager, click Topology.
- In the section for the Availability Zone that contains the Analytics service, locate the Gateway
service that the Analytics service is associated with.
- Click the actions menu, and select Unassociate analytics service.
Remember to disassociate each Analytics service from all Gateways.
- In the section for the Availability Zone that contains the Analytics services, locate each
Analytics service and click Delete.
- On the 2018 deployment, use the
apicops
utility to
resolve any known inconsistencies and synchronization problems with the database:
The apicops preupgrade
command must be run in fix mode just prior to starting
the management upgrade. The fix mode fixes any inconsistencies and synchronization problems in the
database.
Important: Upgrade will fail if the apicops
command is not successfully
completed within 2 hours of starting the management upgrade. If the management upgrade must be run
more than once, you must run the command in fix mode each time within 2 hours of starting the
management upgrade.
- Obtain the latest 2018 release of
apicops
from https://github.com/ibm-apiconnect/apicops#latest-v2018-release.
- Set up the environment. See https://github.com/ibm-apiconnect/apicops#requirements.
- Run the
command:
apicops preupgrade -m fix --upgrade_to v10 -l <outputLogFileName>
- The
-m
option runs the utility in fix mode. Running the utility in fix mode
resolves most problems. If the utility identifies a problem it cannot resolve, contact IBM
Support.
- Set the
-l
option to send output to a log file.
- Next, install the upgrade files. Continue with Obtaining files for upgrade from 2018.