1.Gateway Configuration
2.Configure PLUMgrid Services on Gateway nodes
Gateway Configuration
Follow the steps below to configure the OpenStack Compute nodes:
- Remove openvswitch
$ sudo rmmod openvswitch - Disable the Apparmor program to allow the installation of PLUMgrid LXC.
$ sudo service apparmor stop $ sudo update-rc.d -f apparmor remove #(for Apparmor version>2.5.1 ) $ sudo /etc/init.d/apparmor teardown
3.Install the IO Visor module, iovisor-dkms 1.0.6-23 :
$ sudo apt-get install dkms iovisor-dkms
4.Install PLUMgrid puppet, plumgrid-puppet 5.0.0-b14 :
$ sudo apt-get install plumgrid-puppet
5.Load the IO Visor module:
$ sudo modprobe iovisor
6.Enable IPv4 forwarding:
$ sysctl -w net.ipv4.ip_forward=1
7.Edit /etc/sysctl.conf and add the following content to it:
net.ipv4.ip_forward=1
8.Create the file, /etc/sudoers.d/ifc_ctl_sudoers and add the following content to it:
nova ALL=(root) NOPASSWD: /opt/pg/bin/ifc_ctl_pp *
Modify permissions for /etc/sudoers.d/ifc_ctl_sudoers
$ sudo chown root:root /etc/sudoers.d/ifc_ctl_sudoers
$ sudo chmod 644 /etc/sudoers.d/ifc_ctl_sudoers
9.Install the PLUMgrid LXC:
$ sudo apt-get install plumgrid-lxc
$ sudo apt-get -f install [to install dependencies]
Configure PLUMgrid Services on Gateway nodes
Follow the steps below to configure PLUMgrid services on the Gateway node: 1.Create /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/plumgrid.conf and add the following content:
plumgrid_ip=<Management IP address of PLUMgrid Director>
plumgrid_port=8001
mgmt_dev=<Management Interface>
label=<HOSTNAME OF THE MACHINE>
plumgrid_rsync_port=2222
plumgrid_rest_addr=0.0.0.0:9180
fabric_mode=host
plumgrid_syslog_ng_ip=
plumgrid_syslog_ng_port=
plumgrid_monitor_interval=
start_plumgrid_iovisor=yes
start_plumgrid=`/opt/pg/scripts/pg_is_director.sh $plumgrid_ip`
location=
2.Add hostname of the Gateway node to the file,
/var/lib/libvirt/filesystems/plumgrid-data/conf/etc/hostname. Create the file
if it does not exist. The hostname of the node can be found by running the command, hostname -f
3.Create the file, /var/lib/libvirt/filesystems/plumgrid-data/conf/etc/hosts and add the following content to it:
127.0.0.1 localhost
127.0.1.1 <FQDN> <Hostname>
4.Create the file, /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/ifcs.conf and add the following content to it:
<fabric_interface e.g. br-fabric> = fabric_core host
<external access interface e.g. ens4> = access_phys
- Restart the PLUMgrid service:
$ sudo service plumgrid start