Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

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.

  1. 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.

  2. 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.

  3. 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

  4. 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.

  5. Manually reboot the compute node after kernel upgrade.
  6. 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.

  1. Use the following fab command to remove the specified compute node:
    fab detach_vrouter_node:root@10.1.1.1
  2. Remove the information about this detached compute node from the existing testbed.py file.

Modified: 2017-08-22

Modified: 2017-08-22