← Back to team overview

openstack team mailing list archive

Fwd: Quantum OVS over StackOPS

 

OK, I followed your suggestions (thank you all).
Now the command ($ python ovs_quantum_agent.py ovs_quantum_plugin.ini)
returns the error below. The table really does not exist since I just
created the database ovs_quantum (following the openvswitch plugin README).
I can create it, but which columns this table should have?

Traceback (most recent call last):
  File "ovs_quantum_agent.py", line 294, in <module>
    plugin.daemon_loop(conn)
  File "ovs_quantum_agent.py", line 201, in daemon_loop
    cursor.execute("SELECT * FROM ports where state = 'ACTIVE'")
  File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in
execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in
defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'ovs_quantum.ports'
doesn't exist")



---------- Forwarded message ----------
From: c02925 <c02925@xxxxxxx>
Date: 2011/12/22
Subject: 答复: [Openstack] Quantum OVS over StackOPS
To: Alisson Soares Limeira Pontes <apontes@xxxxxxxxxxx>, Soren Hansen <
soren@xxxxxxxxxxx>
Cc: openstack@xxxxxxxxxxxxxxxxxxx


 Hi:

         Try to run it with the absolute path, such as:



root@nova-quantum1:/home/robin/work/quantum-2012.1~e2~20111209.f8152#
python ./quantum/plugins/openvswitch/agent/ovs_quantum_agent.py
./etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini

Connecting to database "ovs_quantum" on 192.168.0.166, user:root ; pwd:
1q2w3e

all_bindings, ports table : efb9942c-67cf-4b16-9ef5-b081d160295e
720e734e-c85e-4451-af9d-3a926230c06b ///these message is added in my env.

vlan_bindings: 2       ///these message is added in my env.

vlan_bindings: 3       ///these message is added in my env.





*发件人:* openstack-bounces+bluewindow=h3c.com@xxxxxxxxxxxxxxxxxxx [mailto:
openstack-bounces+bluewindow=h3c.com@xxxxxxxxxxxxxxxxxxx] *代表 *Alisson
Soares Limeira Pontes
*发送时间:* 2011年12月21日 19:40
*收件人:* Soren Hansen
*抄送:* openstack@xxxxxxxxxxxxxxxxxxx
*主题:* Re: [Openstack] Quantum OVS over StackOPS



I have a dual node (Controller and Compute) OpenStack setup, working fine.
But i want to configure quantum for NaaS. I follow all steps of quantum
administrator guide, and installed it in the controller-node. To configure
the OVS plugin we must copy  ovs_quantum_agent.py and
ovs_quantum_plugin.ini to the compute-node and launch the command

$ python ovs_quantum_agent.py ovs_quantum_plugin.ini

but it returns me the error

Traceback (most recent call last):
  File "ovs_quantum_agent.py", line 297, in <module>
    plugin = OVSQuantumAgent(integ_br)
  File "ovs_quantum_agent.py", line 175, in __init__
    self.setup_integration_br(

integ_br)
  File "ovs_quantum_agent.py", line 188, in setup_integration_br
    self.int_br.remove_all_flows()
  File "ovs_quantum_agent.py", line 89, in remove_all_flows
    self.run_ofctl("del-flows", [])
  File "ovs_quantum_agent.py", line 86, in run_ofctl
    return self.run_cmd(full_args)
  File "ovs_quantum_agent.py", line 58, in run_cmd
    p = Popen(args, stdout=PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory


you probably right, Soren. I will install ovs-* in the compute node and
retry. I have ovs-* installed only in the controller. I will try it and
give feedback. Thank you very much.

2011/12/21 Soren Hansen <soren@xxxxxxxxxxx>

Please share the exact error message from after installing openvswitch.



Best regards,

Soren Hansen



2011/12/21 Alisson Soares Limeira Pontes <apontes@xxxxxxxxxxx>

When i first had the problem i did not have it installed.
But then i installed it

root@nova-controller:~# ovs-ofctl -V
ovs-ofctl (Open vSwitch) 1.3.0
Compiled Dec 20 2011 18:08:01
OpenFlow versions 0x1:0x1

but the problem persists.



2011/12/21 Soren Hansen <soren@xxxxxxxxxxx>

2011/12/21 Alisson Soares Limeira Pontes <apontes@xxxxxxxxxxx>:

> I am configuring nova to work with Quantum.
> When aplying the configurations for the OVS plugin I face this error.
>
> root@nova-compute-1:~# python ovs_quantum_agent.py ovs_quantum_plugin.ini
>
> Traceback (most recent call last):
>   File "ovs_quantum_agent.py", line 297, in <module>
>     plugin = OVSQuantumAgent(integ_br)
>   File "ovs_quantum_agent.py", line 175, in __init__
>     self.setup_integration_br(integ_br)
>   File "ovs_quantum_agent.py", line 188, in setup_integration_br
>     self.int_br.remove_all_flows()
>   File "ovs_quantum_agent.py", line 89, in remove_all_flows
>     self.run_ofctl("del-flows", [])
>   File "ovs_quantum_agent.py", line 86, in run_ofctl
>     return self.run_cmd(full_args)
>   File "ovs_quantum_agent.py", line 58, in run_cmd
>     p = Popen(args, stdout=PIPE)
>   File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
>     errread, errwrite)
>   File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
>     raise child_exception
> OSError: [Errno 2] No such file or directory
>
> Anyone know why? The file /usr/lib/python2.6/subprocess.py does exists!
> All steps before this (according to the OVS README) went well.
> I am using Quantum 2012.1-e2-ubuntu2 and the StackOPS0.3.

It's complaining that it can't find ovs-ofctl. Did you install openvswitch?


-- 
Alisson Pontes
__________________________________________________________
Network Technology Evolution Researcher
CPqD - Center for Research and Development in Telecommunications
Tel.: +55 19 3705-4996
apontes@xxxxxxxxxxx <aponte@xxxxxxxxxxx>
www.cpqd.com.br

Attachment: image001.jpg
Description: JPEG image


Follow ups

References