|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
− | | + | #redirect [[PLUMgrid-Neutron]] |
− | <!-- ##master-page:[[HomepageTemplate]] -->
| |
− | <!-- #format wiki -->
| |
− | <!-- #language en -->
| |
− | | |
− | = PLUMgrid Quantum Plugin =
| |
− | ----------------------
| |
− | | |
− | == Overview ==
| |
− | | |
− | PLUMgrid Quantum Plugin implements the Quantum v2.0 API. | |
− | | |
− | == Directory Structure ==
| |
− | | |
− | The PLUMgrid Quantum Plugin can be downloaded from the repository located at:
| |
− | | |
− | <pre><nowiki>
| |
− | https://github.com/emagana/quantum.git
| |
− | (branch: bp/plumgrid-quantum-plugin)
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | This repository represents code that will be put into the PLUMgrid directory as:
| |
− | | |
− | | |
− | <pre><nowiki>
| |
− | /opt/stack/quantum/quantum/plugins/plumgrid
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | == Prerequsites ==
| |
− | | |
− | None
| |
− | | |
− | == Configuration ==
| |
− | | |
− | === Plugin configuration (Quantum server node) ===
| |
− | | |
− | * MySQL should be installed on the host. Initialize MySQL as follows (where $PASS = mysql password):
| |
− | | |
− | <pre><nowiki>
| |
− | $ mysql -u root -p$PASS -e 'DROP DATABASE IF EXISTS plumgrid_quantum;'
| |
− | $ mysql -u root -p$PASS -e 'CREATE DATABASE IF NOT EXISTS plumgrid_quantum;'
| |
− | </nowiki></pre>
| |
− | | |
− | * Edit /etc/quantum/quantum.conf and set provider as:
| |
− | | |
− | <pre><nowiki>
| |
− | [DEFAULT]
| |
− | core_plugin = quantum.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.QuantumPluginPLUMgridV2
| |
− | allow_overlapping_ips = False
| |
− | </nowiki></pre>
| |
− | | |
− | * Edit /etc/nova/nova.conf and set provider as:
| |
− | | |
− | <pre><nowiki>
| |
− | libvirt_vif_driver=quantum.plugins.plumgrid.nova.vif.LibvirtPLUMgridVIFDriver
| |
− | libvirt_vif_type=ethernet
| |
− | </nowiki></pre>
| |
− | | |
− | * Edit /etc/quantum/plugins/plumgrid/plumgrid.ini (replace <placeholder> as required):
| |
− | | |
− | <pre><nowiki>
| |
− | [DATABASE]
| |
− | sql_connection = mysql://<username>:<password>@<database_ip>:3306/plumgrid_quantum
| |
− | | |
− | [PLUMgridNOS]
| |
− | servers=<plumgrid_NOS_IP>
| |
− | username=<username>
| |
− | password=<password>
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | === Configuration Example ===
| |
− | | |
− | <pre><nowiki>
| |
− | [DATABASE]
| |
− | sql_connection = mysql://root:nova@127.0.0.1:3306/plumgrid_quantum
| |
− | | |
− | [PLUMgridNOS]
| |
− | nos_server=127.0.0.1
| |
− | username=plumgrid
| |
− | password=plumgrid
| |
− | Start the quantum 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
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | == PLUMgrid Plugin Unit Tests ==
| |
− | | |
− | <pre><nowiki>
| |
− | cd <quantum_path>
| |
− | ./run_tests.sh quantum.tests.unit.plumgrid.test_plumgrid_plugin
| |
− | </nowiki></pre>
| |
− | | |
− | | |
− | == Devstack ==
| |
− | | |
− | Work In Progress!
| |