Quantum Openvswitch Setup

asked 2011-12-06 16:54:04 -0500

shweta-ap05 gravatar image

I am trying to get quantum to work with openvswitch.

I installed openvswitch(without building the linux kernel module) , created the ovs_quantum db in mysql, made the respective changes as suggested by the README, in nova.conf to support quantum+openvswitch set up.

I created the OVS integration bridge using: ovs-vsctl add-br br-int ovs-vsctl add-port br-int eth1

And started the quantum service using python bin/quantum-server etc/quantum.conf

But when I create a network using PYTHONPATH=. python quantum/client/cli.py create_net proj_net1 network

It does not create one and I do not see any requests sent in the quantum service. It does not even give me an error message. Where should I be looking for the log?

I am just having one server running all the nova services, so the controller acts as the compute node as well. Do I need to run the agent in the server by doing this python ovs_quantum_agent.py ovs_quantum_plugin.ini

When I did run it, I get this error python quantum/plugins/openvswitch/agent/ovs_quantum_agent.py etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini ovs-ofctl: br-int is not a bridge or a socket

But the ovs-vsctl command lists the bridge I created

ovs-vsctl show b9a2f795-6ea3-4847-a4a0-3ed04f053773 Bridge br-int Port br-int Interface br-int type: internal Port "eth1" Interface "eth1"

I am not very familiar with the ovswitch. I am not sure if there is a problem with the ovswitch setup or if there is problem on the quantum end.

Any suggestions would be helpful!

Thanks in advance.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2011-12-06 17:23:46 -0500

shweta-ap05 gravatar image

Hi Brad,

Yes I added this in etc/plugins.ini provider = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin

python bin/quantum-server etc/quantum.conf 2011-12-06 09:04:16 DEBUG [quantum.service] ************************* 2011-12-06 09:04:16 DEBUG [quantum.service] Configuration options gathered from config file: 2011-12-06 09:04:16 DEBUG [quantum.service] /root/git/quantum_Dec02/quantum/etc/quantum.conf 2011-12-06 09:04:16 DEBUG [quantum.service] ================================================ 2011-12-06 09:04:16 DEBUG [quantum.service] / quantumversions 2011-12-06 09:04:16 DEBUG [quantum.service] /v1.0 quantumapi 2011-12-06 09:04:16 DEBUG [quantum.service] api_extensions_path server/lib/quantum/extensions 2011-12-06 09:04:16 DEBUG [quantum.service] bind_host 0.0.0.0 2011-12-06 09:04:16 DEBUG [quantum.service] bind_port 9696 2011-12-06 09:04:16 DEBUG [quantum.service] debug True 2011-12-06 09:04:16 DEBUG [quantum.service] verbose True 2011-12-06 09:04:16 DEBUG [quantum.service] ************************* 2011-12-06 09:04:16 INFO [quantum.service] Using paste.deploy config at: /root/git/quantum_Dec02/quantum/etc/quantum.conf 2011-12-06 09:04:16 DEBUG [quantum.manager] Plugin location:quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin 2011-12-06 09:04:16 DEBUG [quantum.manager] Successfully imported Quantum plug-in.All compatibility tests passed 2011-12-06 09:04:16 DEBUG [root] Using configuration file: /root/git/quantum_Dec02/quantum/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini 2011-12-06 09:04:16 DEBUG [root] Config: 2011-12-06 09:04:16 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True 2011-12-06 09:04:16 INFO [quantum.common.extensions] Initializing extension manager. 2011-12-06 09:04:16 ERROR [quantum.common.extensions] Extension path "server/lib/quantum/extensions" doesn't exist! 2011-12-06 09:04:16 INFO [quantum.common.extensions] Loading extension file: novatenant.py 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext name: Cisco Nova Tenant 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext alias: Cisco Nova Tenant 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext description: novatenant resource is used by nova side to invoke quantum api 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext namespace: http://docs.ciscocloud.com/api/ext/novatenant/v1.0 (http://docs.ciscocloud.com/api/ext/no...) 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext updated: 2011-08-09T13:25:27-06:00 2011-12-06 09:04:16 WARNING [quantum.common.extensions] extension Cisco Nova Tenant not supported by plugin 2011-12-06 09:04:16 INFO [quantum.common.extensions] Loading extension file: credential.pyc 2011-12-06 09:04:16 INFO [quantum.common.extensions] Loading extension file: _qos_view.py 2011-12-06 09:04:16 INFO [quantum.common.extensions] Loading extension file: __init__.py 2011-12-06 09:04:16 INFO [quantum.common.extensions] Loading extension file: qos.py 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext name: Cisco qos 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext alias: Cisco qos 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext description: qos includes qos_name and qos_desc 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext namespace: http://docs.ciscocloud.com/api/ext/qos/v1.0 (http://docs.ciscocloud.com/api/ext/qo...) 2011-12-06 09:04:16 DEBUG [quantum.common.extensions] Ext ... (more)

edit flag offensive delete link more
0

answered 2011-12-08 03:42:02 -0500

shweta-ap05 gravatar image

I got mixed up with the commands. My bad! its working now. Thanks!

edit flag offensive delete link more
0

answered 2011-12-06 17:10:11 -0500

bgh gravatar image

Hi Shweta,

Just to make sure, did you change plugins.ini to point to the openvswitch plugin? Can you paste the text that is displayed when you start Quantum?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-12-06 16:54:04 -0500

Seen: 61 times

Last updated: Dec 08 '11