<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 23, 2017 at 6:48 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">Hi,<br>
We are building a multi-node physical set-up of OpenStack Newton. The<br>
goal is to finally integrate the set-up with OVN.<br>
Lab details:<br>
1 Controller, 2 computes<br>
<br>
CentOS-7.3, OpenStack Newton, separate network for mgmt and tunnel<br>
OVS version: 2.6.1<br>
<br>
I followed the following guide to deploy OpenStack Newton using the<br>
PackStack utility:<br>
<br>
<a href="http://networkop.co.uk/blog/2016/11/27/ovn-part1/" rel="noreferrer" target="_blank">http://networkop.co.uk/blog/<wbr>2016/11/27/ovn-part1/</a><br>
<br>
Before I started integrating with OVN, I made sure that the set-up(ML2<br>
and OVS) was working by launching VMs. VMs on cross compute node were<br>
able to ping each other.<br>
<br>
Now, I followed the official guide for OVN integration:<br>
<br>
<a href="http://docs.openstack.org/developer/networking-ovn/install.html" rel="noreferrer" target="_blank">http://docs.openstack.org/<wbr>developer/networking-ovn/<wbr>install.html</a><br>
<br>
Error details :<br>
Neutron Server log shows :<br>
<br>
 ERROR networking_ovn.ovsdb.impl_idl_<wbr>ovn [-] OVS database connection<br>
to OVN_Northbound failed with error: '{u'error': u'unknown database',<br>
u'details': u'get_schema request specifies unknown database<br>
OVN_Northbound', u'syntax': u'["OVN_Northbound"]'}'. Verify that the<br>
OVS and OVN services are available and that the 'ovn_nb_connection'<br>
and 'ovn_sb_connection' configuration options are correct.<br>
<br>
The issue is ovsdb-server on the controller binds with the port<br>
6641.instead of 6640.<br>
<br></blockquote><div><br></div><div><br></div><div>Hi Pranab,</div><div>Normally I have seen this happening when neutron-server (i.e the networking-ovn ML2 driver) tries to connect to the OVN northbound ovsdb-server (on port 6641) and fails (mainly because the OVN NB db ovsdb-server) is not running. In such case the code here [1] runs "ovs-vsctl add-connection ptcp:6640:.. which causes the main ovsdb-server (for conf.db) to listen on port 6641. </div><div><br></div><div>Can you make sure that ovsdb-server's for OVN are running before the neutron-server is started.</div><div><br></div><div>May be to see if it works you can run "ovs-vsctl del-manager" and then run netsat -putna | grep 6641 and verify that OVN NB db ovsdb-server listens on 6641.</div><div><br></div><div>[1] - <a href="https://github.com/openstack/neutron/blob/stable/newton/neutron/agent/ovsdb/native/connection.py#L82">https://github.com/openstack/neutron/blob/stable/newton/neutron/agent/ovsdb/native/connection.py#L82</a></div><div>      <a href="https://github.com/openstack/neutron/blob/stable/newton/neutron/agent/ovsdb/native/helpers.py#L41">https://github.com/openstack/neutron/blob/stable/newton/neutron/agent/ovsdb/native/helpers.py#L41</a></div><div><br></div><div>Thanks</div><div>Numan</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
#  netstat -putna | grep 6641<br>
<br>
tcp        0      0 <a href="http://192.168.10.10:6641" rel="noreferrer" target="_blank">192.168.10.10:6641</a>      0.0.0.0:*<br>
LISTEN      809/ovsdb-server<br>
<br>
# netstat -putna | grep 6640 (shows no output)<br>
<br>
Now, OVN NB DB tries to listen on port 6641, but since it is used by<br>
the ovsdb-server, it's unable to. PID of ovsdb-server is 809, while<br>
the pid of OVN NB DB is 4217.<br>
<br>
OVN NB DB logs shows this:<br>
<br>
2017-05-23T12:58:09.444Z|<wbr>01421|ovsdb_jsonrpc_server|<wbr>ERR|ptcp:6641:<a href="http://0.0.0.0" rel="noreferrer" target="_blank">0.0.0.0</a>:<br>
listen failed: Address already in use<br>
2017-05-23T12:58:11.946Z|<wbr>01422|socket_util|ERR|6641:<a href="http://0.0.0.0" rel="noreferrer" target="_blank">0.<wbr>0.0.0</a>: bind:<br>
Address already in use<br>
2017-05-23T12:58:14.448Z|<wbr>01423|socket_util|ERR|6641:<a href="http://0.0.0.0" rel="noreferrer" target="_blank">0.<wbr>0.0.0</a>: bind:<br>
Address already in use<br>
<br>
Solutions I tried:<br>
1) Completely fresh installing everything.<br>
2) Tried with OVS 2.6.0 and 2.7, same issue on all.<br>
3) Checked  and verified : SB and NB configuration options in<br>
plugin.ini are exactly correct.<br>
<br>
Please help. Let me know. if additional details are required.<br>
<br>
Thanks,<br>
Pranab<br>
______________________________<wbr>_________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/<wbr>mailman/listinfo/ovs-discuss</a><br>
</blockquote></div><br></div></div>