Download This Guide
Adding or Removing a Compute Node in an Existing Contrail Cluster
Use the following procedure to add one or more new compute nodes to an existing Contrail cluster.
- Add the new information about the new compute node(s)
into your existing
testbed.py
file.Note: For convenience, this procedure assumes you are adding a node @10.1.1.1, however, replace the 10.1.1.1 with the correct IP for the node or nodes that you are adding.
- Copy the
contrail-install-packages
file for CentOS or Ubuntu to the /tmp directory of the cfgm (config) node from which you will run the fab commands:CentOS: scp <id@server>:/path/to/contrail-install-packages-xxx-xxx.el6.noarch.rpm /tmp
Ubuntu: scp <id@server>:/path/to/contrail-install-packages_xxx-xxx~havana_all.deb /tmp
Note: Fab commands are always run from /opt/contrail/utils.
- Install the contrail-install-packages on to the new compute node (or nodes):
CentOS: fab install_pkg_node:/tmp/contrail-install-packages_x.xx-xxx.xxx.noarch.rpm,root@10.1.1.1
Ubuntu: fab install_pkg_node:/tmp/contrail-install-packages_x.xx-xxx~havana_all.deb,root@10.1.1.1
- For Ubuntu 12.04.4 or 12.04.3 server with a kernel version
older than 3.13.0-34, upgrade the kernel by using the following fab
command:
cd /opt/contrail/utils; fab upgrade_kernel_node:root@10.1.1.1
where 10.1.1.1 must be replaced with the server’s actual IP address.
- Manually reboot the compute node after kernel upgrade.
- Use fab commands to add the new compute node (or nodes):
fab add_vrouter_node:root@10.1.1.1
Removing a Node
Use the following procedure to remove one or more compute nodes from an existing Contrail cluster.
![]() | Note: For convenience, this procedure assumes you are removing a node @10.1.1.1, however, replace the 10.1.1.1 with the correct IP address for the node or nodes that you are removing. |
- Use the following fab command to remove the specified
compute node:
fab detach_vrouter_node:root@10.1.1.1
- Remove the information about this detached compute node from the existing testbed.py file.