From Fedora Project Wiki

Revision as of 03:51, 8 March 2012 by Rkukura (talk | contribs)

Description

Deploy the Quantum virtual network service and configure Nova to use QuantumManager as its NetworkManager.

Quantum includes several plugins. The linuxbridge and openvswitch plugins are covered here. Feel free to experiment with the cisco, nicira, and/or ryu plugins as well.

These instructions assume the controller node and any compute nodes already have Nova deployed, and the mysql server has already been configured for Nova on the compute node.

Setup

Install openstack-quantum on the controller node and any compute nodes:

$ controller> sudo yum install --enablerepo=updates-testing openstack-quantum

If running on Fedora 17, until updated RPM is available, as root edit /usr/lib/python2.7/site-packages/quantum-2012.1-py2.7.egg-info/requires.txt and change "lxml==2.3" to "lxml>=2.3".

Install one or more plugins on the controller node and any compute nodes:

$> sudo yum install --enablerepo=updates-testing openstack-quantum-linuxbridge
$> sudo yum install --enablerepo=updates-testing openstack-quantum-openvswitch
$> sudo yum install --enablerepo=updates-testing openstack-quantum-cisco
$> sudo yum install --enablerepo=updates-testing openstack-quantum-nicira
$> sudo yum install --enablerepo=updates-testing openstack-quantum-ryu

If you are using the openvswitch plugin, configure openvswitch on all compute nodes (including the controller if it runs nova-compute):

$ node> sudo yum install --enablerepo=updates-testing openvswitch [Note - will become dependency of openstack-quantum-openvswitch]
$ node> sudo systemctl enable openvswitch.service
$ node> sudo systemctl start openvswitch.service
$ node> sudo ovs-vsctl add-br br-int


If using the linuxbridge plugin, configure quantum-server and create the database on the contoller node:

$ controller> sudo cp /etc/quantum/plugins.ini /etc/quantum/plugins.ini-orig
$ controller> sudo openstack-config-set /etc/quantum/plugins.ini PLUGIN provider quantum.plugins.linuxbridge.LinuxBridgePlugin.LinuxBridgePlugin
$ controller> mysql -u root -p -e "create database quantum_linux_bridge"
$ controller> mysql -u root -p -e "create user 'quantum'@'%' identified by 'quantum'"
$ controller> mysql -u root -p -e "create user 'quantum'@'localhost' identified by 'quantum'"
$ controller> mysql -u root -p -e "grant all on quantum_linux_bridge.* to 'quantum'@'%'"
$ controller> mysql -u root -p -e "grant all on quantum_linux_bridge.* to 'quantum'@'localhost'"

or, if using the openvswitch plugin, configure quantum-server and create the database on the controller node:

$ controller> sudo cp /etc/quantum/plugins.ini /etc/quantum/plugins.ini-orig
$ controller> sudo openstack-config-set /etc/quantum/plugins.ini PLUGIN provider quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin
$ controller> mysql -u root -p -e "create database ovs_quantum"
$ controller> mysql -u root -p -e "grant all on ovs_quantum.* to 'quantum'@'%'"
$ controller> mysql -u root -p -e "grant all on ovs_quantum.* to 'quantum'@'localhost'"


If using the linuxbridge plugin, on the controller and all compute nodes, configure the linuxbridge plugin and agent:

$> sudo cp /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini  /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini-orig
$> sudo openstack-config-set /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini DATABASE connection mysql
$> sudo openstack-config-set /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini DATABASE user quantum
$> sudo openstack-config-set /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini DATABASE pass quantum
$> sudo openstack-config-set /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini DATABASE host hostname
$> sudo openstack-config-set /etc/quantum/plugins/linuxbridge/linuxbridge_conf.ini LINUX_BRIDGE physical_interface eth0

or, if using the openvswitch plugin:

$ controller> sudo cp /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini-orig
$ controller> sudo openstack-config-set /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini DATABASE sql_connection mysql://quantum:quantum@hostname/ovs_quantum


On controller node, enable and start quantum-server:

$ controller> sudo systemctl enable quantum-server.service
$ controller> sudo systemctl start quantum-server.service


If using the linuxbridge plugin, enable and start quantum-linuxbridge-agent on all compute nodes:

$ node> sudo systemctl enable quantum-linuxbridge-agent.service
$ node> sudo systemctl start quantum-linuxbridge-agent.service

or, if using the openvswitch plugin, enable and start quantum-openvswitch-agent on all compute nodes:

$ node> sudo systemctl enable quantum-openvswitch-agent.service
$ node> sudo systemctl start quantum-openvswitch-agent.service


Finally, configure Nova to use QuantumManager as its NetworkManager:

TBD

If using the the linuxbridge plugin, enable its drivers for Nova:

TBD

or if using the openvswitch plugin, enable its drivers for Nova:

TBD 

How to test

TBD

Expected Results

TBD