<div dir="ltr">Hi Pranab,<div><br></div><div>Request to not drop the mailing list</div><div><br></div><div>Please see below for comments.</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 27, 2017 at 11:30 AM, 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="auto"><div>Thanks Numan for the reply. I modified the system service script of neutron server and made sure that it starts only after ovn-northd service is up and running.<div dir="auto"><br></div><div dir="auto">Able to launch VMs now. </div><div dir="auto">But the VMs doesn't get any dhcp ip. Is there any logs relevant to ovn native dhcp server that I can look for?</div></div></div></blockquote><div><br></div><div>Since you are using Newton, you probably need to set ovn_native_dhcp=True in /etc/neutron/plugin.ini or /etc/neutron/plugins/ml2/ml2_conf.ini. Otherwise you are expected to use dhcp agent.</div><div><br></div><div> </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="auto"><div><div dir="auto"><br></div><div dir="auto">I have another question:</div><div dir="auto">There are two ways to include the OVN specific configurations. One way is to add a new [ovn] section in /etc/neutron/plugin.ini file. Second way is to modify the /etc/neutron/plugins/<wbr>networking-ovn/networking-ovn.<wbr>ini file. Which is the right file that we should modify and if I had included the ovn configurations in both files, which one takes precedence?</div></div></div></blockquote><div><br></div><div>Better to use  etc/neutron/plugin.ini or /etc/neutron/plugins/ml2/ml2_conf.ini. I think the last included config file overrides the values.</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"><div dir="auto"><div><div dir="auto"><br></div><div dir="auto">After all this issues with the setup, we are planning to build a Triple-O setup.  I remember Russell Bryant mentioning that there is a Heat template for OVN. We are planning to use that. Any caveats/guides you would like to recommend for triple-O OVN integration? It would be really useful.</div><div dir="auto"><br></div></div></div></blockquote><div><br></div><div>You need to include /usr/share/openstack-triple-heat-templates/environments/neutron-ml2-ovn.yaml [1] in the environment templates when calling openstack overcloud deploy and it should work.</div><div>I would suggest using Ocata or master and OVS 2.7 in order to have a successful deployment.</div><div>You can virt-customize your overcloud image and update ovs if you like.</div><div>There is a small script here [2] which does that. You can have a look into it if you want.</div><div><br></div><div><br></div><div>Thanks</div><div>Numan</div><div><br></div><div><br></div><div><br></div><div>[1] - <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/environments/neutron-ml2-ovn.yaml">https://github.com/openstack/tripleo-heat-templates/blob/master/environments/neutron-ml2-ovn.yaml</a></div><div><br></div><div>[2] - <a href="https://github.com/numansiddique/overcloud_image_for_ovn/blob/master/build_ovn_oc_image.sh">https://github.com/numansiddique/overcloud_image_for_ovn/blob/master/build_ovn_oc_image.sh</a></div><div><br></div><div> </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="auto"><div><div dir="auto"></div><div dir="auto">Thanks</div><span class="gmail-HOEnZb"><font color="#888888"><div dir="auto">Pranab</div></font></span><div><div class="gmail-h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On May 24, 2017 23:38, "Numan Siddique" <<a href="mailto:nusiddiq@redhat.com" target="_blank">nusiddiq@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail-m_-7308757124390380196quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div class="gmail-m_-7308757124390380196elided-text">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/20<wbr>16/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/deve<wbr>loper/networking-ovn/install.h<wbr>tml</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><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" target="_blank">https://github.com/openstack<wbr>/neutron/blob/stable/newton/<wbr>neutron/agent/ovsdb/native/<wbr>connection.py#L82</a></div><div>      <a href="https://github.com/openstack/neutron/blob/stable/newton/neutron/agent/ovsdb/native/helpers.py#L41" target="_blank">https://github.com/openstack<wbr>/neutron/blob/stable/newton/<wbr>neutron/agent/ovsdb/native/<wbr>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"><div class="gmail-m_-7308757124390380196quoted-text">
#  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|01421<wbr>|ovsdb_jsonrpc_server|ERR|ptcp<wbr>: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|01422<wbr>|socket_util|ERR|6641:<a href="http://0.0.0.0" rel="noreferrer" target="_blank">0.0.0.0</a>: bind:<br>
Address already in use<br>
2017-05-23T12:58:14.448Z|01423<wbr>|socket_util|ERR|6641:<a href="http://0.0.0.0" rel="noreferrer" target="_blank">0.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></div>
______________________________<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>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>