This section describes how to upgrade an Airgap server from version 2.1 to 2.2.
Prerequisite
If you are upgrading the Airgap server in an Internet-restricted environment, ensure that the Airgap server has temporary internet access or create a new Airgap server temporarily in an internet-accessible environment.
Procedure
Upgrade the Airgap Server using one of the following methods:
Upgrade the Airgap Server in an Internet-accessible environment.
Download the
VMware-Telco-Cloud-Automation-airgap-files-[release]-[build].tar.gz
file from the VMware Downloads page and extract it to the/root/
folder.Create a copy of the
setup-user-inputs.yml
file asuser-inputs.yml
.#cd /root/airgap/scripts/vars/ #cp setup-user-inputs.yml user-inputs.yml
Update the following parameters in the
user-inputs.yml
file. For more information, see the Telco Cloud Automation documentation. A sample configuration of parameters is as follows:#1. General Configurations products: - name: "tca" versions: "2.2.0-" server_fqdn: <user Airgap FQDN name> root: /root/airgap/ #2. Additional Disk Configurations single_disk: False #3. Server Certificate Configurations #False: customer bring certificate #True: Playbook will generate a private root CA auto_generate: False server_cert_path: /root/certs/FQDN.cert server_cert_key_path: /root/certs/FQDN.key ca_cert_path: /root/certs/ca.crt
Prepare the Airgap server and download all the required repositories:
#cd /root/airgap/ #scripts/bin/run.sh sync
Depending on the number of repositories you download from the Internet, this command takes 3-6 hours to run.
Upgrade the Airgap Server in an Internet-restricted environment.
Prepare the incremental Upgrade Images Bundle from the new Airgap Server.
Deploy and configure a new Photon OS VM as the new Airgap server. For instructions, see Deploy and Configure an Airgap Server VM.
Download the
VMware-Telco-Cloud-Automation-airgap-files-[release]-[build].tar.gz
file from the VMware Downloads page and extract it to the/root/
folder.Create a copy of the
setup-user-inputs.yml
file asuser-inputs.yml
.#cd /root/airgap/scripts/vars/ #cp setup-user-inputs.yml user-inputs.yml
Update the following parameters in the
user-inputs.yml
file. For more information, see the Telco Cloud Automation documentation. A sample configuration of parameters is as follows:#1. General Configurations products: - name: "tca" versions: "2.2.0" name: "photon" baseline: "2.1.0" server_fqdn: <user Airgap FQDN name> root: /root/airgap/ #2. Additional Disk Configurations single_disk: False #3. Server Certificate Configurations #False: customer bring certificate #True: Playbook will generate a private root CA auto_generate: True cert_ca_common_name: telco.com cert_country_name: UScert_state_name: CAcert_county: SantaClara cert_organization: telcocert_bu: SEBU
Prepare the Airgap server and download all the required repositories:
#cd /root/airgap/ #scripts/bin/run.sh export
Based on the internet speed, the export command generates the
airgap-export-bundle-YYYYMMDDHHMMSS.tar.gz
file within 2-3 hours in the/photon-reps/export-bundle/
folder.Import the Telco Cloud Automation 2.2 tar file into the Telco Cloud Automation 2.1 Airgap server.
Rename the existing Airgap 2.1 folder in the
/root/
folder.Download the
VMware-Telco-Cloud-Automation-airgap-files-[release]-[build].tar.gz
file from the VMware Downloads page and extract it to the/root/
folder.Create a copy of the
setup-user-inputs.yml
file asuser-inputs.yml
.#cd /root/airgap/scripts/vars/ #cp setup-user-inputs.yml user-inputs.yml
Update the following parameters in the
user-inputs.yml
file. For more information, see the Telco Cloud Automation documentation. A sample configuration of parameters is as follows:#1. General Configurations products: - name: "tca" versions: "2.2.0" name: "photon" baseline: "2.1.0" server_fqdn: <user Airgap FQDN name> root: /root/airgap/ #2. Additional Disk Configurations. Based on disk requirement update the below parameters. single_disk: False secondary_disk_name: /dev/sdb photon_disk_size: 300 harbor_disk_size: 120 docker_disk_size: 180 #3. Server Certificate Configurations #False: customer bring certificate #True: Playbook will generate a private root CA auto_generate: False server_cert_path: /root/certs/FQDN.cert server_cert_key_path: /root/certs/FQDN.key ca_cert_path: /root/certs/ca.crt
Copy the
airgap-export-bundle-YYYYMMDDHHMMSS.tar.gz
file from the internet-accessible Airgap server to the internet-restricted Airgap server's 2.1/photon-reps/
folder.(Optional) Before copying the exported tar file from the
/photon-reps/
folder, resize the disk if the free disk space is less than 110 GB. This command takes approximately 1 min to run.#scripts/bin/run.sh resize
Import the exported bundle into the internet-restricted Airgap server 2.1. This command takes approximately 10 mins to run.
#docker login <user Airgap FQDN name> #cd /root/airgap/ #scripts/bin/run.sh import