Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Upgrading Contrail Networking using contrail-ansible Deployer

Take snapshots of your current configurations before you proceed with the upgrade process. For details, refer to How to Backup and Restore Contrail Databases in JSON Format.

Use the following procedure to upgrade Contrail Networking using contrail-ansible deployer.

The procedure supports incremental model and you can use it to upgrade from Contrail Networking Release N-1 to N.

  1. Navigate to the directory where the contrail-ansible-deployer-19<xx>.<NN>.tgz was untarred.

    See Sample instances.yml File.

    cd contrail-ansible-deployer-19<xx>.<NN>/contrail-ansible-deployer/config/

    vi contrail-ansible-deployer-19<xx>.<NN>/contrail-ansible-deployer/config/instances.yaml

    Sample instances.yaml files for various other deployments are available at the same directory.

  2. Update CONTRAIL_VERSION and CONTRAIL_CONTAINER_TAG to the desired version tag in this instances.yml file.

    Access CONTRAIL_CONTAINER_TAG located at README Access to Contrail Registry 19XX.

    For example:

  3. Run the following commands from contrail-ansible-deployer directory.
    • For Contrail with OpenStack deployment:

      cd contrail-ansible-deployeransible-playbook -e orchestrator=openstack -i inventory/ playbooks/install_openstack.yml -vansible-playbook -e orchestrator=openstack -i inventory/ playbooks/install_contrail.yml -v

    • For Contrail with Kubernetes deployment:

      cd contrail-ansible-deployeransible-playbook -e orchestrator=kubernetes -i inventory/ playbooks/install_k8s.yml -vansible-playbook -e orchestrator=kubernetes -i inventory/ playbooks/install_contrail.yml -v

The ansible playbook logs are available on the terminal during execution. You can also access it at /var/log/ansible.log.