Compute Configuration

Follow the steps below to configure the OpenStack Compute nodes:

  1. 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
  1. Install PLUMgrid puppet, plumgrid-puppet 5.0.0-b14 :
    $ sudo apt-get install plumgrid-puppet
    
  2. Load the IO Visor module:
    $ sudo modprobe iovisor
    
  3. 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
  1. Enable IPv4 forwarding:
    sysctl -w net.ipv4.ip_forward=1
    
  2. 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
    

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:

  1. Create /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/plumgrid.conf and add the following content:
    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=
    
    2.Add hostname of the Compute 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 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>
    
  2. Create the file, /var/lib/libvirt/filesystems/plumgrid-data/conf/pg/ifcs.conf and add the following content to it:
    <fabric_interface e.g. ens3 > = fabric_core host
    
    5.Restart the PLUMgrid service:
    $ sudo service plumgrid start
    

results matching ""

    No results matching ""