Upgrading Pivotal Cloud Foundry

Page last updated:

This topic describes upgrading Pivotal Cloud Foundry (PCF) to v2.3. The upgrade procedure below describes upgrading Pivotal Cloud Foundry Operations Manager (Ops Manager), Pivotal Application Service (PAS), and product tiles.

Breaking Changes: Read the Release Notes and Breaking Changes for this release, including the Known Issues sections, before starting the upgrade process.

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 PCF impacts individual PAS components, see Understanding PAS Upgrades.

Prepare to Upgrade

If you have not already, complete the steps in the Upgrade Preparation Checklist for PCF v2.3.

Upgrade Ops Manager and Installed Products to v2.3

Follow these steps to upgrade Ops Manager and Installed Products to PCF v2.3.

Import Installation to Ops Manager v2.3 VM

  1. Download the Ops Manager VM Template v2.3 from the Pivotal Network site.

  2. Record the FQDN address of the existing Ops Manager VM.

  3. To avoid conflicts, power off the existing Ops Manager VM.

  4. Deploy the new Ops Manager VM by following the steps in one of these topics:

  5. When redirected to the Welcome to Ops Manager page, select Import Existing Installation.

    Welcome

  6. 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.

  7. Click Choose File and browse to the installation ZIP file exported in Step 1 above.

    Decryption passphrase

  8. Click Import.

    Note: Some browsers do not provide feedback on the status of the import process, and might appear to hang.

  9. A “Successfully imported installation” message appears upon completion.

    Success

Import New PAS and Product Tiles

After upgrading to Ops Manager v2.3, upgrade your product versions:

  1. Import the product file to your Ops Manager Installation Dashboard.

  2. Hover over the product name in Available Products and click Add.

  3. Click the newly added tile to review any configurable options.

  4. (Optional) If you use other service tiles, you can upgrade them following the same procedure. See the Upgrading PAS and Other Pivotal Cloud Foundry Products topic for more information.

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 (v2.2) Ops Manager VM.

  1. Navigate to the Ops Manager Installation Dashboard.

  2. Click Review Pending Changes, then Apply Changes. This immediately imports and applies upgrades to all tiles in a single transaction.

    Breaking Change: Only use Apply Changes to upgrade tiles immediately after upgrade. Do not use Review Pending Changes for selective deployment. For more information, see Redeploy All Products After Upgrading to Ops Manager v2.2.

  3. Click each service tile, select the Status tab, and confirm that all VMs appear and are in good health.

  4. After confirming that the new installation functions correctly, remove the v2.2 Ops Manager VM.

Monitor Upgrade

During the upgrade, you can do the following to monitor your PCF foundation and help troubleshoot any issues.

Check Status and Performance

Note/Reason:
Monitor the progress of the upgrade, checking the status of the foundation at various locations.
Product/component:
PCF

Pivotal recommends live-monitoring your upgrade with PCF Healthwatch, which monitors and alerts on the current health, performance, and capacity of PCF. Healthwatch captures, calculates, stores, visualizes, and alerts on PCF platform metrics, including:

For more information, see the PCF Healthwatch documentation.

If you are not using PCF Healthwatch, you can do some or all of the following to monitor upgrade progress:

  • Run BOSH CLI status checks:
    • bosh -e ALIAS task TASK_NUMBER
    • bosh -e ALIAS vms --vitals, bosh -e ALIAS instances --ps
  • Check app availability
  • Run cf CLI Commands
  • Check the availability of the Ops Manager GUI
  • Check NAS performance (if using NAS)
  • Check vSphere performance (if on vSphere)

Check Diego State

Note/Reason:
See the cfdot documentation on GitHub for details.
Product/component:
PAS

Use the CF Diego Operator Toolkit (cfdot) to check Diego component instance count by current state.

(Optional) Take Snapshots of Storage Metrics

Reason:
Pivotal recommends this if you have a large foundation and have experienced storage issues in the past.
Product/Component:
PCF

Periodically take snapshots of storage metrics.

(Optional) Collect Logs

Reason:
This information helps determine the cause of upgrade issues.
Product/component:
PCF

If you encounter problems during upgrade, collect the following information:

  • All job logs
  • Task debug logs for VM upgrade tasks
  • Installation log from Ops Manager

After Upgrade

After your upgrade, do the following to prepare for use of your new environment, check its health status, and clean up.

Re-Create BOSH Alias

Re-create your alias using BOSH: bosh alias-env ALIAS -e DIRECTOR_IP

  • Reason: To log into BOSH after upgrading PCF, you need to recreate your alias.
  • Product/Component: BOSH

Install New cf CLI

Download the version of the Cloud Foundry Command Line Interface (cf CLI) packaged with the PAS tile on Pivotal Network.

Check the Health of Your Deployment

  1. Run BOSH CLI commands to check system status:

    1. bosh -e ALIAS -d DEPLOYMENT_NAME instances --ps
    2. bosh -e ALIAS vms --vitals
    3. bosh -e ALIAS -d DEPLOYMENT_NAME cck --report

    Note/Reason: To ensure that all jobs and process are running as expected
    Product/Component: PCF and all tiles

  2. Push and horizontally scale a test application.

    • Reason: This is a performance test for PAS.
    • Product/Component: PCF
  3. If you are running PAS MySQL as a cluster, run the mysql-diag tool to validate health of the cluster.

    • Reason: See the BOSH CLI v2 instructions in the Running mysql-diag topic.
    • Product/Component: PAS

Check Resource Settings

If you added custom VM Type or Persistent Disk Type options, ensure that these values are correctly set and were not overwritten.

  • Note/Reason: Verify that the Ops Manager Resource Config pane still lists your custom options.
  • Product/component: PCF

Run BOSH Clean-Up

Run bosh -e ALIAS clean-up --all to clean up old stemcells, releases, orphaned disks, and other unused resources.

  • Product/Component: Tiles
Create a pull request or raise an issue on the source for this page in GitHub