<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 28, 2019 at 4:04 PM Zufar Dhiyaulhaq &lt;<a href="mailto:zufar@onf-ambassador.org">zufar@onf-ambassador.org</a>&gt; wrote:<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="ltr">[ovn][clustered] Confusing to create ovsdb-server clustered databases<br><br>Hi Everyone, I have successfully created OpenStack with OVN enabled. But the problem comes when I try to cluster the ovsdb-server. My scenario is trying to cluster the ovsdb-server databases but only using single ovn-northd.<br><br>My cluster:<br>- controller0 : 10.100.100.100 / 10.101.101.100 (ovn-northd, ovsdb-server, neutron server)<br>- controller1 : 10.100.100.101 / 10.101.101.101 (ovsdb-server)<br>- controller2 : 10.100.100.102 / 10.101.101.102 (ovsdb-server)<br>- compute1 : 10.100.100.103 / 10.101.101.103<br>- compute2 : 10.100.100.104 / 10.101.101.104<br>- compute3 : 10.100.100.105 / 10.101.101.105<br><br><a href="http://10.100.100.0/24" target="_blank">10.100.100.0/24</a> : Management Network<br><a href="http://10.101.101.0/24" target="_blank">10.101.101.0/24</a> : Data Network<br><br>I have installed the OpenStack using the manual method. Below is the step to create ovsdb-server and neutron services.<br>- step 1: bootstrapping ovsdb-server cluster : <a href="http://paste.openstack.org/show/766463/" target="_blank">http://paste.openstack.org/show/766463/</a><br>- step 2: creating neutron service in controller : <a href="http://paste.openstack.org/show/766464/" target="_blank">http://paste.openstack.org/show/766464/</a><br>- step 3: creating neutron service in compute : <a href="http://paste.openstack.org/show/766465/" target="_blank">http://paste.openstack.org/show/766465/</a><br><br>But when I try to create neutron resource, Its always hang (only neutron resource).<br><br>This is the full logs of all nodes, contain: <a href="http://paste.openstack.org/show/766461/" target="_blank">http://paste.openstack.org/show/766461/</a><br>- all openvswitch logs<br>- port (via netstat)<br>- step bootstraping ovsdb-server<br><br>Neutron logs in controller0: <a href="http://paste.openstack.org/show/766462/" target="_blank">paste.openstack.org/show/766462/</a><br><br>Anyone know why stuck? Are my step is wrong?<br><br></div></blockquote><div><br></div><div>Hi Zufar,</div><div><br></div><div>Have you tried connecting to the clustered dbs using ovn-nbctl ?</div><div>Does it work fine when you pass the remotes i.e</div><div>$ovn-nbctl --db=tcp:<a href="http://10.101.101.100:6641">10.101.101.100:6641</a>,tcp:<a href="http://10.101.101.101:6641">10.101.101.101:6641</a>,tcp:<a href="http://10.101.101.102:6641">10.101.101.102:6641</a> show</div><div><br class="gmail-Apple-interchange-newline">If so, then it seems to me you have configured the clustered db properly.<br></div><div><br></div><div>Also please take a look at - &quot;man ovn-ctl&quot; and grep for &quot;Creating a clustered db on 3 nodes&quot;.</div><div><br></div><div>May be the python IDL code or the ovsdbapp which networking-ovn uses doesn&#39;t support connecting</div><div>with multiple remotes ?</div><div><br></div><div>I remember adding the support in the python IDL to accept multiple remotes [1], but not sure</div><div>what&#39;s the status now. </div><div><br></div><div>@Daniel - Do you have any comments/pointers ?</div><div><br></div><div>[1] - <a href="https://github.com/openvswitch/ovs/commit/31e434fc985c682708f5d92bde2ceae452bdaa4f">https://github.com/openvswitch/ovs/commit/31e434fc985c682708f5d92bde2ceae452bdaa4f</a></div><div>       <a href="https://github.com/openvswitch/ovs/commit/257edb1ae07c150023575dfb38ea8e539ad713de">https://github.com/openvswitch/ovs/commit/257edb1ae07c150023575dfb38ea8e539ad713de</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 dir="ltr">Thank you.<br><div><div dir="ltr" class="gmail-m_-761102324609897563gmail_signature"><div dir="ltr"><span><div><span style="font-family:arial,helvetica,sans-serif"><span lang="en"><span><br></span></span></span></div><div><span style="font-family:arial,helvetica,sans-serif"><span lang="en"><span>Best Regards,<br></span></span></span></div><span lang="en"><span><span style="font-family:arial,helvetica,sans-serif">Zufar Dhiyaulhaq</span></span></span></span></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ovs-discuss</a><br>
</blockquote></div></div>