Zero Impact Upgrade on a RHoSP setup - ganeshahv/Contrail_SRE GitHub Wiki

1]. Provision a RHoSP-based DPDK setup using the following procedure:

https://css-git.juniper.net/ssandeep/contrail-diaries/wikis/Contrail-Installation-with-RHOSP13 (Thanks to [email protected])

2]. Determine the Contrail release you will upgrade to.

Prereq: Your environment is running Contrail Release 1912 and upgrading to Contrail Release 1912-L1 or to Contrail Release 2003 or later.

3]. The files in the undercloud that were used for deployment can be reused for the upgrade.

4]. Prepare the overcloud nodes that include Contrail and Openstack containers for the update.

./import_contrail_container.sh -f /tmp/contrail_container -r svl-artifactory.juniper.net/contrail-nightly -i 1 -t <new_tag, like 1912.L2.47-rhel>
openstack overcloud container image upload --config-file /tmp/contrail_container

5]. To verify if the right repos have been added:

curl 192.168.24.1:8787/v2/_catalog
curl http://192.168.24.1:8787/v2/contrail-nightly/contrail-vrouter-agent-dpdk/tags/list

6] Update the ContrailImageTag variable in the contrail-services.yaml file at

/home/stack/tripleo-heat-templates/environments/contrail/contrail-services.yaml

7]. Update the overcloud by referring the same files used for overcloud deployment

openstack overcloud update prepare 
--templates ~/tripleo-heat-templates 
-e ~/overcloud_images.yaml 
-e ~/tripleo-heat-templates/environments/network-isolation.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-plugins.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-services.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-net.yaml 
--roles-file ~/tripleo-heat-templates/roles_data_contrail_aio.yaml

8]. Enable subscription on all the overcloud nodes:

subscription-manager register --username <username> --password <password>
subscription-manager list --available | egrep "Subscription Name|Pool" | grep Linux -A1
subscription-manager attach --pool=<pool_id>

9]. Edit the CONTRAIL_NEW_IMAGE_TAG and the CONTRAIL_IMAGE_PREFIX values in the

/home/stack/tripleo-heat-templates/tools/contrail/update_contrail_preparation.sh file

CONTRAIL_NEW_IMAGE_TAG=2005.56-rhel
CONTRAIL_IMAGE_PREFIX='contrail-nightly'

10]. Update the Contrail Controller nodes:

openstack overcloud update run --nodes overcloud-contrailcontroller-0
openstack overcloud update run --nodes overcloud-contrailcontroller-1
openstack overcloud update run --nodes overcloud-contrailcontroller-2

11]. Update the Contrail Computes:

openstack overcloud update run --nodes overcloud-contraildpdk-0
openstack overcloud update run --nodes overcloud-contraildpdk-1

12]. Enter the openstack overcloud update converge command to finalize the update

openstack overcloud update converge 
--templates ~/tripleo-heat-templates 
-e ~/overcloud_images.yaml 
-e ~/tripleo-heat-templates/environments/network-isolation.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-plugins.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-services.yaml 
-e ~/tripleo-heat-templates/environments/contrail/contrail-net.yaml 
--roles-file ~/tripleo-heat-templates/roles_data_contrail_aio.yaml
⚠️ **GitHub.com Fallback** ⚠️