QA:Testcase run Nova with Quantum

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
Line 30: Line 30:
 
  $ node> sudo systemctl start openvswitch.service
 
  $ node> sudo systemctl start openvswitch.service
 
  $ node> sudo ovs-vsctl add-br br-int
 
  $ 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:
 +
 +
 +
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
 +
  
 
|actions=
 
|actions=

Revision as of 21:31, 7 March 2012

Contents

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:


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 

How to test

TBD

Expected Results

TBD