<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 4:00 PM, pranab boruah <span dir="ltr"><<a href="mailto:pranabjyotiboruah@gmail.com" target="_blank">pranabjyotiboruah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Numan,<br></div>Details as requested:<br></div><div><br>___________<br>ml2_conf.ini:|<br>```````````````````<br>ovn_nb_connection = tcp:<a href="http://192.168.10.10:6641" target="_blank">192.168.10.10:6641</a><br>ovn_sb_connection = tcp:<a href="http://192.168.10.10:6642" target="_blank">192.168.10.10:6642</a><br>ovn_l3_mode = True<br>ovn_l3_scheduler = chance<br>ovn_l3_admin_net_cidr = <a href="http://169.254.128.0/30" target="_blank">169.254.128.0/30</a><br>ovn_native_dhcp = True<br><br></div><div>Note: 192.168.10.10 is the management ip of controller. Firewall, NetworkManager and SElinux are disabled on all nodes.<br></div><div><font face="arial, helvetica, sans-serif">____________________________<br>output of "ps -aef | grep ovsdb" :  |<br>``````````````````````````````<wbr>```````````````````<br>root     21220 21219  0 Feb01 ?        00:00:44 ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvs<wbr>witch/db.sock --private-key=db:Open_vSwitch,<wbr>SSL,private_key --certificate=db:Open_vSwitch,<wbr>SSL,certificate --bootstrap-ca-cert=db:Open_vS<wbr>witch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitc<wbr>h/ovsdb-server.log --pidfile=/var/run/openvswitch<wbr>/ovsdb-server.pid --detach --monitor<br><br>root     21324 21323  0 Feb01 ?        00:00:03 ovsdb-server --detach --monitor -vconsole:off --log-file=/var/log/openvswitc<wbr>h/ovsdb-server-nb.log --remote=punix:/var/run/openvs<wbr>witch/ovnnb_db.sock --pidfile=/var/run/openvswitch<wbr>/ovnnb_db.pid --remote=db:OVN_Northbound,NB_<wbr>Global,connections --unixctl=ovnnb_db.ctl --private-key=db:OVN_Northboun<wbr>d,SSL,private_key --certificate=db:OVN_Northboun<wbr>d,SSL,certificate --ca-cert=db:OVN_Northbound,SS<wbr>L,ca_cert /etc/openvswitch/ovnnb_db.db<br><br>root     21332 21331  0 Feb01 ?        00:00:03 ovsdb-server --detach --monitor -vconsole:off --log-file=/var/log/openvswitc<wbr>h/ovsdb-server-sb.log --remote=punix:/var/run/openvs<wbr>witch/ovnsb_db.sock --pidfile=/var/run/openvswitch<wbr>/ovnsb_db.pid --remote=db:OVN_Southbound,SB_<wbr>Global,connections --unixctl=ovnsb_db.ctl --private-key=db:OVN_Southboun<wbr>d,SSL,private_key --certificate=db:OVN_Southboun<wbr>d,SSL,certificate --ca-cert=db:OVN_Southbound,SS<wbr>L,ca_cert /etc/openvswitch/ovnsb_db.db<br><br></font></div><div><font face="arial, helvetica, sans-serif">Note: NB and SB databases are supposed to be listening on a tcp socket. But it isn't. <br><br></font></div></div></blockquote><div><br></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif">​Running the below commands should solve your problem</font></div></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif">  - ovn-nbctl set-connection ptcp:6641:192.168.10.10</font></div></div><div><font face="arial, helvetica, sans-serif"><div class="gmail_default" style="display:inline">  </div>- ovn-<div class="gmail_default" style="display:inline">​s​</div>bctl set-connection ptcp:664<div class="gmail_default" style="display:inline">​2​</div>:192.168.10.10</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">L<div class="gmail_default" style="display:inline">​et me know if you still face problems.</div></font></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif"><br></font></div></div><div><font face="arial, helvetica, sans-serif"><div class="gmail_default" style="display:inline">The reason for this is this commit - </div><a href="https://github.com/openvswitch/ovs/commit/84d0ca5d00fe01b29163236d48fa0f9105687149">https://github.com/openvswitch/ovs/commit/84d0ca5d00fe01b29163236d48fa0f9105687149</a></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">P<div class="gmail_default" style="display:inline">​lease have a look at it.</div></font></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif"><br></font></div></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif">Thanks</font></div></div><div><div class="gmail_default" style="display:inline"><font face="arial, helvetica, sans-serif">Numan</font></div></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div></span></div><div><font face="monospace, monospace"></font><span style="font-family:monospace,monospace">​</span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif"></font>_________________________<br><font face="arial, helvetica, sans-serif"><font face="arial, helvetica, sans-serif">output of logs                       |<br>``````````````````````````````<wbr>`````````````<br></font>Neutron server log :<br>     - <a href="http://paste.openstack.org/show/597320/" target="_blank">http://paste.openstack.org/<wbr>show/597320/</a><br></font></div><div><font face="arial, helvetica, sans-serif">ovs-nothd log:<br>     - <a href="http://paste.openstack.org/show/597322/" target="_blank">http://paste.openstack.org/<wbr>show/597322/</a><br>ovs-vswitchd log on Controller:<br>      - <a href="http://paste.openstack.org/show/597324/" target="_blank">http://paste.openstack.org/<wbr>show/597324/</a><br>______________________________<wbr>___________<br></font></div><div><font face="arial, helvetica, sans-serif"># ovn-nbctl and ovn-sbctl show no output.           |<br>``````````````````````````````<wbr>``````````````````````````````<wbr>```````````<br></font></div><div><font face="arial, helvetica, sans-serif">______________________________<wbr>__________<br>OVN RPMS installation and download details:   |<br>``````````````````````````````<wbr>``````````````````````````````<wbr>``````````<br></font></div><div><font face="arial, helvetica, sans-serif">On controller:<br></font></div><div><font face="arial, helvetica, sans-serif"># git clone </font><a id="gmail-m_6029987945178098797gmail-LPlnk244053" href="https://github.com/openvswitch/ovs.git" class="gmail-m_6029987945178098797gmail-OWAAutoLink" target="_blank">https://github.com/<wbr>openvswitch/ovs.git</a></div><div><font face="arial, helvetica, sans-serif"># </font><code><span>.<span style="font-family:arial,helvetica,sans-serif">/boot.sh</span></span><span style="font-family:arial,helvetica,sans-serif"><br>
<span># ./configure </span><br>
</span><div><span style="font-family:arial,helvetica,sans-serif"># make rpm-fedora RPMBUILD_OPT="--without check"<br></span>
</div><span style="font-family:arial,helvetica,sans-serif">
</span><span><span style="font-family:arial,helvetica,sans-serif"># make rpm-fedora-km</span>od</span></code><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div><br></div><div>ALL nodes:<br></div><div><code><pre><span style="font-family:arial,helvetica,sans-serif"><code class="gmail-m_6029987945178098797gmail-bash"><span class="gmail-m_6029987945178098797gmail-line"># <span style="font-family:arial,helvetica,sans-serif">rpm -i openvswitch-kmod-2.6.90-1.el7.<wbr>centos.x86_64.rpm
</span></span><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_6029987945178098797gmail-line">#  rpm -U openvswitch-2.6.90-1.el7.<wbr>centos.x86_64.rpm<br></span></span></code><br></span><code><span style="font-family:arial,helvetica,sans-serif">Only Controller:</span><pre><span style="font-family:arial,helvetica,sans-serif"><code class="gmail-m_6029987945178098797gmail-bash"><span class="gmail-m_6029987945178098797gmail-line"><span style="font-family:arial,helvetica,sans-serif"># rpm -i openvswitch-ovn-common-*.x86_<wbr>64.rpm</span>
</span><span class="gmail-m_6029987945178098797gmail-line"><span style="font-family:arial,helvetica,sans-serif"># rpm -i openvswitch-ovn-central-*.x86_<wbr>64.rpm</span><br></span></code></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"><code class="gmail-m_6029987945178098797gmail-bash"><span class="gmail-m_6029987945178098797gmail-line"><span style="font-family:arial,helvetica,sans-serif">Only Compute:</span><br></span></code></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"><code><pre><code class="gmail-m_6029987945178098797gmail-bash"><span class="gmail-m_6029987945178098797gmail-line"><span style="font-family:arial,helvetica,sans-serif"># rpm -i openvswitch-ovn-common-*.x86_<wbr>64.rpm</span>
</span><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_6029987945178098797gmail-line"># rpm -i openvswitch-ovn-host-*.x86_64.<wbr>rpm<br><br></span></span></code></pre><pre><span style="font-family:arial,helvetica,sans-serif"># lsmod | grep open</span> <span style="font-family:arial,helvetica,sans-serif"> <br>     - shows all the required modules<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">Let me know if you need anything else.</span></pre><pre><code class="gmail-m_6029987945178098797gmail-bash"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_6029987945178098797gmail-line">Thanks. <br>pjb<br></span></span></code></pre></code></span><br></pre></code><br><br></pre></code></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><br></div></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On 2 February 2017 at 15:23, Numan Siddique <span dir="ltr"><<a href="mailto:nusiddiq@redhat.com" target="_blank">nusiddiq@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Adding openstack-dev ML with [networking-ovn] tag.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Please see comments inline</font></div><div style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Feb 2, 2017 at 3:01 PM, pranab boruah <span dir="ltr"><<a href="mailto:pranabjyotiboruah@gmail.com" target="_blank">pranabjyotiboruah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi guys, <br></div>We have a OpenStack multi-node lab. Everything was working, until I tried integrating with OVN.<br></div>Followed the official guide for integration:<br><br><a href="http://docs.openstack.org/developer/networking-ovn/install.html" target="_blank">http://docs.openstack.org/deve<wbr>loper/networking-ovn/install.h<wbr>tml</a><br><br></div>Lab details:<br></div>1 Controller, 2 computes<br><br></div>CentOS-7.3, OpenStack Newton, separate network for mgmt and tunnel. <br><br></div>Error details :<br></div>Neutron Server log shows :<br><br> ERROR networking_ovn.ovsdb.impl_idl_<wbr>ovn
 [-] OVS database connection to OVN_Northbound failed with error: 
'{u'error': u'unknown database', u'details': u'get_schema request 
specifies unknown database OVN_Northbound', u'syntax': u'["OVN_Northbound"]'}'.
 Verify that the OVS and OVN services are available and that the 
'ovn_nb_connection' and 'ovn_sb_connection' configuration options are 
correct.
<p>Stuck in this for more than 2 week. Starting to hate my life. 
Please help. Before I tried installing in physical machines, followed 
the same guide and installed in VMs. Everything was working then.</p>
<p>Solutions I tried:<br>
1) Completely fresh installing everything.<br>
2) Rebuilding ovs<br>
3) Check SB and NB configuration options in plugin.ini are exactly correct.</p><p><br></p></div></blockquote><div><br></div></span><div><div style="font-family:monospace,monospace;display:inline">​</div><div style="display:inline"><font face="arial, helvetica, sans-serif">Could you please share</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif"> - the values of ovn_nb_connection and ovn_sb_connection defined in ml2_conf.ini.</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif"> - the output of "ps -aef | grep ovsdb" on the node where you are running the ovn-northd server.</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif"> - If you could share the output of neutron-server logs in some paste link, it would be helpful.</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif"><br></font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif">Are you able to run "ovn-nbctl show" ? I presume you have installed the appropriate ovn RPMS ? If not so, please let me know how you have installed it.</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif"><br></font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif">Thanks</font></div></div><div><div style="display:inline"><font face="arial, helvetica, sans-serif">Numan</font></div></div><div><div style="font-family:monospace,monospace;display:inline"><br></div></div><div><div style="font-family:monospace,monospace;display:inline">​</div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span><div dir="ltr"><p></p><p>Let me know if additional details are required.</p><p><br></p><p>-pjb<br></p>

      
        <h2><br></h2><br></div>
<br></span>______________________________<wbr>_________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org" target="_blank">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/m<wbr>ailman/listinfo/ovs-discuss</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>