Compute Configuration
Follow the steps below to configure the OpenStack Compute nodes:
- Remove openvswitch $ sudo rmmod openvswitch
2.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
- Install PLUMgrid puppet, plumgrid-puppet 5.0.0-b14 :
$ sudo apt-get install plumgrid-puppet - Load the IO Visor module:
$ sudo modprobe iovisor - Edit /etc/libvirt/qemu.conf and uncomment the section cgroup_device_acl
and match with the following lines:
cgroup_device_acl = [ "/dev/null", "/dev/full", "/dev/zero", "/dev/random", "/dev/urandom", "/dev/net/tun", "/dev/ptmx", "/dev/kvm", "/dev/kqemu", "/dev/rtc","/dev/hpet", "/dev/vfio/vfio" ]
7.Edit /etc/nova/nova.conf and set the provider as below:
[DEFAULT]
libvirt_vif_type=ethernet
libvirt_cpu_mode=none
- Enable IPv4 forwarding:
sysctl -w net.ipv4.ip_forward=1 - Create the file, /etc/sudoers.d/ifc_ctl_sudoers and add the following content to it:
Modify permissions for /etc/sudoers.d/ifc_ctl_sudoersnova ALL=(root) NOPASSWD: /opt/pg/bin/ifc_ctl_pp *$ sudo chown root:root /etc/sudoers.d/ifc_ctl_sudoers $ sudo chmod 644 /etc/sudoers.d/ifc_ctl_sudoers
10.Install the PLUMgrid LXC:
$ sudo apt-get install plumgrid-lxc
$ sudo apt-get -f install [to install dependencies]
Configure PLUMgrid Services on Compute Node:
Follow the steps below to configure PLUMgrid services on the Compute node:
- Create /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/plumgrid.conf
and add the following content:
2.Add hostname of the Compute node to the file,plumgrid_ip=<Management IP address of 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=
/var/lib/libvirt/filesystems/plumgrid-data/conf/etc/hostname. Create the file if it does not exist. The hostname of the Compute 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> - Create the file, /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/ifcs.conf and add the following content to it:
5.Restart the PLUMgrid service:<fabric_interface e.g. ens3 > = fabric_core host$ sudo service plumgrid start