Hi Alisson,<div><br></div><div>Have you actually run Quantum with the OVS plugin enabled and the pointed to the same database?  Running Quantum with the plugin is what should create the tables.  The agent merely is a read-only client of those tables.  Info on doing this for the OVS plugin is at: <a href="http://openvswitch.org/openstack/documentation/">http://openvswitch.org/openstack/documentation/</a></div>

<div><br></div><div>Dan<br><br><div class="gmail_quote">2012/1/5 Alisson Soares Limeira Pontes <span dir="ltr"><<a href="mailto:apontes@cpqd.com.br">apontes@cpqd.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

OK, I followed your suggestions (thank you all).<br>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?<div class="im">

<br>
<br>Traceback (most recent call last):<br></div>  File "ovs_quantum_agent.py", line 294, in <module><br>    plugin.daemon_loop(conn)<br>  File "ovs_quantum_agent.py", line 201, in daemon_loop<br>

    cursor.execute("SELECT * FROM ports where state = 'ACTIVE'")<br>
  File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute<br>    self.errorhandler(self, exc, value)<br>  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler<br>


    raise errorclass, errorvalue<br>_mysql_exceptions.ProgrammingError: (1146, "Table 'ovs_quantum.ports' doesn't exist")<br><br><br><br><div class="gmail_quote"><div class="im">---------- Forwarded message ----------<br>


From: <b class="gmail_sendername">c02925</b> <span dir="ltr"><<a href="mailto:c02925@h3c.com" target="_blank">c02925@h3c.com</a>></span><br>Date: 2011/12/22<br>Subject: 答复: [Openstack] Quantum OVS over StackOPS<br>

To: Alisson Soares Limeira Pontes <<a href="mailto:apontes@cpqd.com.br" target="_blank">apontes@cpqd.com.br</a>>, Soren Hansen <<a href="mailto:soren@linux2go.dk" target="_blank">soren@linux2go.dk</a>><br>
Cc: <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br><br><br>




</div><div link="blue" vlink="purple" lang="ZH-CN">
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Hi:</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">         Try to run it with the absolute path, such as:</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">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</span></p>



<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Connecting to database "ovs_quantum" on 192.168.0.166, user:root ; pwd: 1q2w3e</span></p>



<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">all_bindings, ports table : efb9942c-67cf-4b16-9ef5-b081d160295e 720e734e-c85e-4451-af9d-3a926230c06b ///these message is added in my env.</span></p>



<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">vlan_bindings: 2       ///these message is added in my env.</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">vlan_bindings: 3       ///these message is added in my env.</span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:SimSun">发件人<span lang="EN-US">:</span></span></b><span style="font-size:10.0pt;font-family:SimSun" lang="EN-US"> openstack-bounces+bluewindow=<a href="mailto:h3c.com@lists.launchpad.net" target="_blank">h3c.com@lists.launchpad.net</a> [mailto:<a href="mailto:openstack-bounces%2Bbluewindow" target="_blank">openstack-bounces+bluewindow</a>=<a href="mailto:h3c.com@lists.launchpad.net" target="_blank">h3c.com@lists.launchpad.net</a>]
</span><b><span style="font-size:10.0pt;font-family:SimSun">代表 </span></b><span style="font-size:10.0pt;font-family:SimSun" lang="EN-US">Alisson Soares Limeira Pontes<br>
</span><b><span style="font-size:10.0pt;font-family:SimSun">发送时间<span lang="EN-US">:</span></span></b><span style="font-size:10.0pt;font-family:SimSun" lang="EN-US"> 2011</span><span style="font-size:10.0pt;font-family:SimSun">年<span lang="EN-US">12</span>月<span lang="EN-US">21</span>日<span lang="EN-US">
 19:40<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Soren Hansen<br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [Openstack] Quantum OVS over StackOPS</span></span></p>
</div><div><div></div><div class="h5"><div><div></div><div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">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</span></p>
<pre><span lang="EN-US">$ python ovs_quantum_agent.py ovs_quantum_plugin.ini</span></pre>
<p class="MsoNormal"><span lang="EN-US">but it returns me the error<br>
<br>
Traceback (most recent call last):<br>
  File "ovs_quantum_agent.py", line 297, in <module><br>
    plugin = OVSQuantumAgent(integ_br)<br>
  File "ovs_quantum_agent.py", line 175, in __init__<br>
    self.setup_integration_br(</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">integ_br)<br>
  File "ovs_quantum_agent.py", line 188, in setup_integration_br<br>
    self.int_br.remove_all_flows()<br>
  File "ovs_quantum_agent.py", line 89, in remove_all_flows<br>
    self.run_ofctl("del-flows", [])<br>
  File "ovs_quantum_agent.py", line 86, in run_ofctl<br>
    return self.run_cmd(full_args)<br>
  File "ovs_quantum_agent.py", line 58, in run_cmd<br>
    p = Popen(args, stdout=PIPE)<br>
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__<br>
    errread, errwrite)<br>
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child<br>
    raise child_exception<br>
OSError: [Errno 2] No such file or directory</span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
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.</span></p>
</div></div><div><div><div></div><div>
<p class="MsoNormal"><span lang="EN-US">2011/12/21 Soren Hansen <<a href="mailto:soren@linux2go.dk" target="_blank">soren@linux2go.dk</a>></span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Please share the exact error message from after installing openvswitch.</span><span lang="EN-US"></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Best regards,</span><span lang="EN-US"></span></p>
</div>
</div></div><div>
<p class="MsoNormal"><span style="font-family:"Courier New"" lang="EN-US">Soren Hansen</span><span lang="EN-US"></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div><div><div></div><div>
<p class="MsoNormal"><span lang="EN-US">2011/12/21 Alisson Soares Limeira Pontes <<a href="mailto:apontes@cpqd.com.br" target="_blank">apontes@cpqd.com.br</a>></span></p>
<p class="MsoNormal"><span lang="EN-US">When i first had the problem i did not have it installed.<br>
But then i installed it<br>
<br>
root@nova-controller:~# ovs-ofctl -V<br>
ovs-ofctl (Open vSwitch) 1.3.0<br>
Compiled Dec <a href="tel:20%202011%2018" target="_blank">20 2011 18</a>:08:01<br>
OpenFlow versions 0x1:0x1<br>
<br>
but the problem persists.</span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">2011/12/21 Soren Hansen <<a href="mailto:soren@linux2go.dk" target="_blank">soren@linux2go.dk</a>></span></p>
<p class="MsoNormal"><span lang="EN-US">2011/12/21 Alisson Soares Limeira Pontes <<a href="mailto:apontes@cpqd.com.br" target="_blank">apontes@cpqd.com.br</a>>:</span></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">> I am configuring nova to work with Quantum.<br>
> When aplying the configurations for the OVS plugin I face this error.<br>
><br>
> root@nova-compute-1:~# python ovs_quantum_agent.py ovs_quantum_plugin.ini<br>
><br>
> Traceback (most recent call last):<br>
>   File "ovs_quantum_agent.py", line 297, in <module><br>
>     plugin = OVSQuantumAgent(integ_br)<br>
>   File "ovs_quantum_agent.py", line 175, in __init__<br>
>     self.setup_integration_br(integ_br)<br>
>   File "ovs_quantum_agent.py", line 188, in setup_integration_br<br>
>     self.int_br.remove_all_flows()<br>
>   File "ovs_quantum_agent.py", line 89, in remove_all_flows<br>
>     self.run_ofctl("del-flows", [])<br>
>   File "ovs_quantum_agent.py", line 86, in run_ofctl<br>
>     return self.run_cmd(full_args)<br>
>   File "ovs_quantum_agent.py", line 58, in run_cmd<br>
>     p = Popen(args, stdout=PIPE)<br>
>   File "/usr/lib/python2.6/subprocess.py", line 633, in __init__<br>
>     errread, errwrite)<br>
>   File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child<br>
>     raise child_exception<br>
> OSError: [Errno 2] No such file or directory<br>
><br>
> Anyone know why? The file /usr/lib/python2.6/subprocess.py does exists!<br>
> All steps before this (according to the OVS README) went well.<br>
> I am using Quantum 2012.1-e2-ubuntu2 and the StackOPS0.3.</span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US">It's complaining that it can't find ovs-ofctl. Did you install openvswitch?<br>
<span style="color:#888888"></span></span><br></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br>-- <br><div><div></div><div class="h5">Alisson Pontes<br>__________________________________________________________<br>

Network Technology Evolution Researcher<br>
<div>CPqD - Center for Research and Development in Telecommunications<br></div>Tel.: <a href="tel:%2B55%2019%203705-4996" value="+551937054996" target="_blank">+55 19 3705-4996</a><br><a href="mailto:aponte@cpqd.com.br" target="_blank">apontes@cpqd.com.br</a><br>

<a href="http://www.cpqd.com.br" target="_blank">www.cpqd.com.br</a><br>
<br><img width="96" height="45"><br><br>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira Networks: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</div>