Upgrading Contrail Networking Release 1912.L2 with RHOSP13 to Contrail Networking Release 2011.L3 with RHOSP16.1
The goal of this topic is to provide a combined procedure to upgrade Red Hat OpenStack Platform (RHOSP) from RHOSP 13 to RHOSP 16.1 by leveraging Red Hat Fast Forward Upgrade (FFU) procedure while simultaneously upgrading Contrail Networking from Release 1912.L2 to Release 2011.L3. This procedure leverages the speeding up an overcloud upgrade process from RHOSP.
Follow chapter 2—Planning and preparation for an in-place upgrade through chapter 8.3— Copying the Leapp data to the overcloud nodes of FRAMEWORK FOR UPGRADES (13 TO 16.1) procedure.
Before upgrading overcloud, refer Chapter 20—Speeding Up An Overcloud Upgrade.
To upgrade an overcloud:
- Create a Contrail container file to upload the Contrail
container image to undercloud, if the undercloud has used a registry.
cd ~/tf-heat-templates/tools/contrail ./import_contrail_container.sh -f container_outputfile -r registry -t tag [-i insecure] [-u username] [-p password] [-c certificate path]
Import from password protected public registry: ./import_contrail_container.sh -f /tmp/contrail_container -r hub.juniper.net/contrail -u USERNAME -p PASSWORD -t 1234
Import from private secure registry: ./import_contrail_container.sh -f /tmp/contrail_container -r device.example.net:5443 -c http://device.example.net/pub/device.example.net.crt -t 1234
Import from private insecure registry: ./import_contrail_container.sh -f /tmp/contrail_container -r 10.0.0.1:5443 -i 1 -t 1234
Run the following command from the undercloud to upload the Contrail container image.
openstack overcloud container image upload --config-file /tmp/contrail_container
- Clone the tungsten fabric deployment code.
git clone https://github.com/tungstenfabric/tf-deployment-test.git
Tungsten fabric scripts are located at
- Follow chapter 2—Planning and preparation for an in-place upgrade through chapter 8.3— Copying the Leapp data to the overcloud nodes of FRAMEWORK FOR UPGRADES (13 TO 16.1) procedure to upgrade the undercloud and prepare the environment.
- Use predictable NIC names for overcloud nodes.
ansible-playbook -i inventory.yaml tf-deployment-test/rhosp/ffu_ziu_13_16/redhat_files/playbook-nics.yaml ansible-playbook -i inventory.yaml tf-deployment-test/rhosp/ffu_ziu_13_16/redhat_files/playbook-nics.yaml
Follow Chapter 20.1—Running the overcloud upgrade preparation and Chapter 20.2—Upgrading the control plane nodes of RedHat OpenStack Speeding Up an Overcloud Upgrade procedure to upgrade openstack and other overcloud nodes including contrail controllers.
- Run the playbook-nics-vhost0.yaml playbook
to setup the vhost interface on Contrail compute nodes.
ansible-playbook -i inventory.yaml -l overcloud_Compute tf-deployment-test/rhosp/ffu_ziu_13_16/tf_specific/playbook-nics-vhost0.yaml ansible-playbook -i inventory.yaml -l overcloud_ContrailDpdk tf-deployment-test/rhosp/ffu_ziu_13_16/tf_specific/playbook-nics-vhost0.yaml
Stop or migrate the workloads running on the compute batch that you are going to upgrade.
Follow Chapter 20.3—Upgrading Compute nodes in parallel of RedHat OpenStack Speeding Up an Overcloud Upgrade procedure.
Instead of executing a single command for compute system upgrade, you can use a separate upgrade command with the system_upgrade_prepare and system_upgrade_run tags.
openstack overcloud upgrade run --yes --stack overcloud --tags system_upgrade_prepare --limit <name-of-compute> openstack overcloud upgrade run --yes --stack overcloud --tags system_upgrade_run --limit <name-of-compute>
- Follow Chapter 20.4—Synchronizing the overcloud stack and later chapters of RedHat OpenStack Speeding Up an Overcloud Upgrade procedure to complete the overcloud upgrade.