Jump to: navigation, search

Arista-neutron-ml2-driver

Revision as of 22:14, 27 August 2013 by Sukhdev (talk | contribs) (Created page with "<!-- ##master-page:HomepageTemplate --> <!-- #format wiki --> <!-- #language en --> = PLUMgrid Neutron Plugin = ---------------------- == Overview == PLUMgrid Neutron P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


PLUMgrid Neutron Plugin


Overview

PLUMgrid Neutron Plugin implements the Neutron v2.0 API.

Directory Structure

The PLUMgrid Neutron Plugin can be downloaded from the repository located at:

https://github.com/emagana/quantum.git
(branch: bp/plumgrid-quantum-plugin)


This repository represents code that will be put into the PLUMgrid directory as:


/opt/stack/quantum/quantum/plugins/plumgrid


Requirements

PLUMgrid IO Visor 2.1.9 (or higher)

Configuration

Plugin configuration (Neutron server node)

  • MySQL should be installed on the host. Initialize MySQL as follows (where $PASS = mysql password):
$ mysql -u root -p$PASS -e 'DROP DATABASE IF EXISTS plumgrid_neutron;'
$ mysql -u root -p$PASS -e 'CREATE DATABASE IF NOT EXISTS plumgrid_neutron;'
  • Edit /etc/quantum/quantum.conf and set provider as:
[DEFAULT]
core_plugin = quantum.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2
allow_overlapping_ips = False
  • Edit /etc/nova/nova.conf and set provider as:
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtGenericVIFDriver
libvirt_vif_type=ethernet
  • Edit /etc/quantum/plugins/plumgrid/plumgrid.ini (replace <placeholder> as required):
[DATABASE]
sql_connection = mysql://<username>:<password>@<database_ip>:3306/plumgrid_neutron

[PLUMgridNOS]
servers=<plumgrid_NOS_IP>
username=<username>
password=<password>


Configuration Example

[DATABASE]
sql_connection = mysql://root:nova@127.0.0.1:3306/plumgrid_neutorn

[PLUMgridNOS]
nos_server=127.0.0.1
username=plumgrid
password=plumgrid
Start the neutron service by providing the relevant configuration files

cd <quantum_path> && python <quantum_path>/bin/quantum-server --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugins/plumgrid/plumgrid.ini


PLUMgrid Plugin Unit Tests

cd <quantum_path> 
./run_tests.sh quantum.tests.unit.plumgrid.test_plumgrid_plugin


Devstack

Work In Progress!