Starting in v16.2, Contrail Cloud now uses Red Hat Enterprise Virtualization (RHEV, or RHV)
for the control host hypervisors. The jump host and overcloud computes will continue to use
Kernel-based Virtual Machine (KVM).
Follow these steps to migrate the control host KVM to RHV:
Note:
Configuration changes to your overcloud-nics.yml file must be made
at this point.
You must change the VM interface naming in your overcloud-nics.yml
file before starting the steps below. The VM interface naming must be changed from
emX to the enp(x+1)s0 naming structure. These interfaces
include:
Controller_network_config
AppformixController_network_config
Your change will look similar to the example below:
Log in to the RHV Manager Web UI to verify that RHVM deployed successfully. Your
ability to access the web UI is verification of a successful RHV Manager deployment. To
access the GUI, enter https://<jumphost fqdn>/ovirt-engine/ in
your browser. The default user is admin, and the default password is
c0ntrail123.
Test NFS and back up the contrail configuration database onto the NFS storage.
Deploy RHEL8 onto the k8s_host VMs in each control host.
Deploy a Kubernetes cluster onto the set of k8s_host VMs.
Find your overcloud stack ID.
You will need your overcloud stack ID for setting up your NFS backup directory in
the steps below. Run the following from the jump host:
content_copyzoom_out_map
ssh undercloud "source stackrc; openstack stack show overcloud -f value -c id"
Mount the NFS backup directory on jump host.
content_copyzoom_out_map
mkdir -p /var/lib/contrail_cloud/nfs_mount
sudo mount <ip/fqdn_of_nfs_server>:/<nfs_dir> /var/lib/contrail_cloud/nfs_mount
ls -al /var/lib/contrail_cloud/nfs_mount/<your_overcloud_stack_id>/db-dump.json
It is possible that the upgrade could interrupt some of the PCS (Pacemaker) resources.
From one of the OpenStack controllers, run the following command to verify all PCS
resources were properly started:
content_copyzoom_out_map
sudo pcs status
Make sure any failed resources are started and stable. Cleanup any failed actions
by running the following command:
content_copyzoom_out_map
sudo pcs resource cleanup
Verify all Contrail networks, ports, policies, and configurations are correct. You can
now manually remove the files from the NFS directory after you have verified a successful
upgrade.