Upgrading Pivotal Platform
Page last updated:
This topic describes upgrading Ops Manager to v2.7.
Breaking Changes: Read the Ops Manager v2.7 Release Notes, Pivotal Application Service v2.7 Release Notes, Pivotal Isolation Segment v2.7 Release Notes, and Pivotal Application Service for Windows v2.7 Release Notes, including the Breaking Changes and Known Issues sections, before starting the upgrade process.
Overview
The procedure below describes upgrading Pivotal Operations Manager, Pivotal Application Service (PAS), and product tiles.
The apps in your deployment continue to run during the upgrade. However, you cannot write to your deployment or make changes to apps during the upgrade.
For details about how upgrading impacts individual PAS components, see What Happens During PAS Upgrades.
VMware recommends upgrading directly to Ops Manager v2.10 from Ops Manager v2.6. To upgrade Ops Manager to v2.10, see Jump Upgrade to Ops Manager v2.10 below. To upgrade both Ops Manager and PAS to v2.7 from v2.6, see Task 1: Prepare to Upgrade below.
Jump Upgrade to Ops Manager v2.10
Jump upgrading describes the process of skipping minor versions when upgrading Ops Manager. Jump upgrading enables you to upgrade directly to the long-term support (LTS) version of Ops Manager, which is v2.10. Ops Manager v2.10 is supported through April 2024. For more information, see Long-Term Support for Ops Manager v2.10 in Ops Manager v2.10 Release Notes.
To jump upgrade to Ops Manager v2.10:
Review the prerequisites and breaking changes described in Jump Upgrading to Ops Manager v2.10.
Complete the steps to prepare Ops Manager, the BOSH Director, and BOSH-managed add-ons for upgrading in Upgrade Preparation Checklist for Ops Manager v2.10. Do not complete the steps to prepare PAS for upgrading.
Follow the procedure in the v2.10 version of Upgrading Ops Manager to upgrade Ops Manager, starting at Task 1: Prepare to Upgrade. Do not complete the steps to upgrade PAS.
Upgrade PAS
Although you can skip minor versions when upgrading Ops Manager, you should not skip minor versions when upgrading PAS. Skipping minor versions when upgrading PAS may result in additional breaking changes. To avoid this, upgrade PAS to v2.7.
To upgrade PAS to v2.7:
Complete the steps that are specific to PAS in Upgrade Preparation Checklist for PAS v2.7.
See Configuring PAS for Upgrades in the PAS documentation and Upgrading PAS and Other Pivotal Platform Products.
Task 1: Prepare to Upgrade
If you have not already, complete the steps in Upgrade Preparation Checklist for Ops Manager v2.7.
Task 2: Upgrade Ops Manager and Installed Products to v2.7
The following sections describe how to upgrade Ops Manager and installed products to Ops Manager v2.7:
- Import Installation to Ops Manager v2.7 VM
- Import New PAS and Product Tiles
- Perform Your Upgrade
- Restage Apps
Import Installation to Ops Manager v2.7 VM
To import your Ops Manager installation to the Ops Manager v2.7 VM:
Download the Ops Manager VM Template v2.7 from the Ops Manager download page on Pivotal Network.
Record the fully-qualified domain name (FQDN) address of the existing Ops Manager VM.
To avoid conflicts, power off the existing Ops Manager VM.
Deploy the new Ops Manager VM by following the steps in one of these topics:
- AWS: Upgrading BOSH Director on AWS
- Azure: Upgrading BOSH Director on Azure
- GCP: Upgrading BOSH Director on GCP
- OpenStack: Deploying Ops Manager on OpenStack
- vSphere: Deploying Ops Manager on vSphere
When redirected to the Welcome to Ops Manager page, select Import Existing Installation.
When prompted, enter the Decryption Passphrase for this Ops Manager installation. You set this passphrase during your initial installation of Ops Manager.
Note: If lost, the Decryption Passphrase cannot be recovered.
Click Choose File and browse to the installation ZIP file exported in the installation export step of your upgrade preparation. For more information, see Export Your Installation in Upgrade Preparation Checklist for Ops Manager v2.7.
Click Import.
Note: Some browsers do not provide feedback on the status of the import process, and might appear to hang.
A Successfully imported installation message appears upon completion.
Import New PAS and Product Tiles
After upgrading to Ops Manager v2.7, you must upgrade your product versions.
To upgrade your product versions:
Import the product file to your Ops Manager Installation Dashboard.
Hover over the product name in Available Products and click Add.
Click the newly-added tile to review any configurable options.
(Optional) If you use other service tiles, you can upgrade them following the same procedure. For more information, see Upgrading PAS and Other Pivotal Platform Products.
Perform Your Upgrade
Warning: If the installation fails or returns errors, contact Support. Do not attempt to roll back the upgrade by restarting the previous version’s Ops Manager VM.
To perform your upgrade to Ops Manager v2.7:
Navigate to the Ops Manager Installation Dashboard.
Click Review Pending Changes, then Apply Changes. This immediately imports and applies upgrades to all tiles in a single transaction.
Click each service tile, select the Status tab, and confirm that all VMs appear and are in good health.
After confirming that the new installation functions correctly, remove the previous version’s Ops Manager VM.
(Optional) Task 3: Monitor Upgrade
The following sections describe how to monitor your Ops Manager foundation during the upgrade and troubleshoot issues:
Check Status and Performance
You can monitor the progress of the upgrade by checking the status of the foundation at various locations.
Pivotal recommends live-monitoring your upgrade with Pivotal Healthwatch, which monitors and alerts on the current health, performance, and capacity of Ops Manager. Pivotal Healthwatch captures, calculates, stores, visualizes, and alerts on Ops Manager platform metrics, including:
- BOSH-reported VM metrics
- Runtime component metrics
- Key Performance Indicators and Key Capacity Scaling Indicators
- Pivotal Healthwatch-generated super metrics
For more information, see the Pivotal Healthwatch documentation.
If you are not using Pivotal Healthwatch, you can do some or all of the following to monitor upgrade progress:
Use the BOSH CLI to check the status of a task, VM, or instance. For more information, see Check Status Using BOSH CLI below.
Check app availability.
Run cf CLI commands.
Check the availability of the Ops Manager UI.
If using a network-attached storage (NAS) server, check the server’s performance.
If on vSphere, check vSphere performance.
Check Status Using BOSH CLI
To check the status of a task:
Run:
bosh -e ALIAS task TASK-NUMBER
Where:
ALIAS
is your BOSH alias.TASK-NUMBER
is the number of the upgrade task you want to check.
To check the status of a VM:
Run:
bosh -e ALIAS vms --vitals
Where
ALIAS
is your BOSH alias.
To check the status of an instance:
Run:
bosh -e ALIAS instances --ps
Where
ALIAS
is your BOSH alias.
Check Diego State
You can use the CF Diego Operator Toolkit (cfdot) to check Diego component instance count by current state. For more information, see the cfdot repository on GitHub.
Take Snapshots of Storage Metrics
You can periodically take snapshots of storage metrics. Pivotal recommends this if you have a large foundation and have experienced storage issues in the past.
Collect Logs
If you encounter problems during upgrade:
- Collect the following information:
- All job logs
- Task debug logs for VM upgrade tasks
- The installation log from Ops Manager
This information helps determine the cause of upgrade issues.
Task 4: After Upgrade
The following sections describe how to prepare for use of your new environment, check its health status, and clean up after upgrading your deployment:
- Re-Create BOSH Alias
- Install New cf CLI
- Check the Health of Your Deployment
- Check Resource Settings
- Run BOSH Clean-Up
Re-Create BOSH Alias
To log in to BOSH after upgrading Ops Manager, you must re-create your alias.
To re-create your alias using BOSH:
Run:
bosh alias-env ALIAS -e DIRECTOR-IP
Where:
ALIAS
is the BOSH alias you are re-creating.DIRECTOR-IP
is the IP address of your BOSH Director VM.
Install New cf CLI
To install the version of the Cloud Foundry Command Line Interface (cf CLI) packaged with the PAS tile on Pivotal Network:
Go to the Pivotal Application Service download page on Pivotal Network.
Click the CF CLI download button.
Unzip the cf CLI ZIP file containing compressed binaries for the cf CLI.
Follow the procedure in Install the cf CLI Using a Compressed Binary in Installing the cf CLI in the PAS documentation.
Check the Health of Your Deployment
Check the health of your deployment to ensure that all jobs and processes are running as expected.
To check the health of your deployment:
Check your system status by running:
bosh -e ALIAS -d DEPLOYMENT-NAME instances --ps bosh -e ALIAS vms --vitals bosh -e ALIAS -d DEPLOYMENT-NAME cck --report
Where:
ALIAS
is your BOSH alias.DEPLOYMENT-NAME
is the name of your Ops Manager deployment.
Push and horizontally scale a test app to test PAS performance.
If you are running PAS MySQL as a cluster, run the
mysql-diag
tool to validate health of the cluster. For more information, see the BOSH CLI v2 instructions in Running mysql-diag in the PAS documentation.
Check Resource Settings
If you added custom VM Type or Persistent Disk Type options, you must ensure that these values are correctly set and were not overwritten.
To check your custom resource settings:
Go to the Ops Manager Installation Dashboard and click the Ops Manager tile.
Select Resource Config.
Ensure that the values for VM Type and Persistent Disk Type are correct.
Run BOSH Clean-Up
To clean up old stemcells, releases, orphaned disks, and other unused resources:
Run:
bosh -e ALIAS clean-up --all
Where
ALIAS
is the BOSH alias you are re-creating.
Restage Apps
VMware recommends telling developers to restage any apps that use buildpacks that were updated as a part of this upgrade.
For more information about how developers can restage apps, see Restage Your App in Starting, Restarting, and Restaging Apps in the PAS documentation.