Follow a number of steps that includes manually editing the TAS metadata YAML file.
STEP 1
SSH into the Ops Manager VM and connect the BOSH CLI to your environment.
STEP 2
Verify current release. As example, we are on PXC 1.0.7 and we want to upgrade to PXC 1.0.8:
ubuntu@opsmgr-33-slot-34-tanzu-gss-labs:~$ bosh releases | grep -i pxc
pxc 1.0.7* 3ee4d49b
sudo -u tempest-web wget -P /var/tempest/releases/ https://github.com/cloudfoundry/pxc-release/releases/download/v1.0.8/pxc-1.0.8.tgz
NOTE: There may be multiple YML files that may match and we will want to find the metadata file that aligns with the currently deployed version of TAS, which we will do in step 5.
In our case, the metadata file is 8369038fd814.yml
ubuntu@opsmgr-33-slot-34-tanzu-gss-labs:/var/tempest/releases:~$ sudo grep -l "^name: cf" /var/tempest/workspaces/default/metadata/*
/var/tempest/workspaces/default/metadata/8369038fd814.yml
If there are multiple matching YML files from step 4, please run the following on each one to confirm the correct metadata file that aligns to the currently deployed TAS version
In our case, we confirm that our TAS version is 3.0.7:
ubuntu@opsmgr-33-slot-34-tanzu-gss-labs:~$ sudo head /var/tempest/workspaces/default/metadata/8369038fd814.yml
---
name: cf
product_version: 3.0.7
minimum_version_for_upgrade: 2.11.0
pivnet_filename_regex: cf-.*\\.pivotal
label: VMware Tanzu Application Service
rank: 90
ubuntu@opsmgr-33-slot-34-tanzu-gss-labs:/var/tempest/releases$ sudo cp /var/tempest/workspaces/default/metadata/8369038fd814.yml ~/8369038fd814-backup.yml
sudo vim /var/tempest/workspaces/default/metadata/8369038fd814.yml
Here is our metadata file BEFORE we make any edits. Notice that the PXC version is set at 1.0.7:
- name: pxc version: 1.0.7 file: pxc-1.0.7-ubuntu-jammy-1.80.tgz exported_from: - os: ubuntu-jammy version: ‘1.80’
- name: pxc version: 1.0.8 file: pxc-1.0.8.tgzIMPORTANT: After making the edits above to the metadata YML file, don't forget to save the changes in vim. We can do this in vim via these steps:
releases: - name: pxc + version: 1.0.8 - version: 1.0.7 - exported_from: - - os: ubuntu-jammy - version: ‘1.80’ + url: file:///var/tempest/releases/pxc-1.0.8.tgz - url: file:///var/tempest/releases/pxc-1.0.7-ubuntu-jammy-1.80.tgz
ubuntu@opsmgr-33-slot-34-tanzu-gss-labs:~$ bosh releases | grep -i pxc
pxc 1.0.8* 0304d59e
pxc 1.0.7 3ee4d49b