<div dir="ltr"><div><div>Looks like the south db works properly. The north db uses the same mechanism, just a different schema and port.<br><br></div>Looking at the netstat output it looks like ovn north db is not even listening, or is there anything for 6641?<br><br><br></div><span class="gmail-im"></span><div><div><br><br><br><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 24, 2017 at 10:37 AM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 23, 2017 at 11:32 PM, Marcin Mirecki <span dir="ltr">&lt;<a href="mailto:mmirecki@redhat.com" target="_blank">mmirecki@redhat.com</a>&gt;</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>Hello Gianluca,<br><br></div>Can you please check the ovn north db log.<br></div>This is placed in /var/log/openvswitch/ovsdb-ser<wbr>ver-nb.log<br></div><div>Please check if the logs has any new entries when you try to connect and when you issue the &#39;ovn-nbctl set-connection ptcp:6641&#39; command.<br></div><div>If the connection attempt is getting through, pvs db should print an error to the log.<br></div><div><br>Please also try restarting the ovn-northd service.<br><br></div><div>Do the ovn-controllers connect to the south-db?<br></div><div>You can verify this by looking at /var/log/openvswitch/ovn-contr<wbr>oller.log on the ovn-controller host (please look for entries saying &quot;... &lt;north ip&gt;:6642 connected&quot;)<br><br></div><div>Marcin<br></div><div><div><div><br><br></div></div></div></div></blockquote><div> </div></div></div></span><div class="gmail_extra">The ovirt nb log contains:</div><div class="gmail_extra"><div class="gmail_extra">2017-04-24T07:46:51.541Z|<wbr>00001|vlog|INFO|opened log file /var/log/openvswitch/ovsdb-<wbr>server-nb.log</div><div class="gmail_extra">2017-04-24T07:46:51.550Z|<wbr>00002|ovsdb_server|INFO|ovsdb-<wbr>server (Open vSwitch) 2.7.0</div><div class="gmail_extra">2017-04-24T07:47:01.560Z|<wbr>00003|memory|INFO|2268 kB peak resident set size after 10.0 seconds</div><div class="gmail_extra">2017-04-24T07:47:01.560Z|<wbr>00004|memory|INFO|cells:100 json-caches:1 monitors:1 ses</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">In my ovn-controller.log of my 3 hosts I have this, when I run the 2 commands below on the provider host</div><span class=""><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">ovn-sbctl set-connection ptcp:6642</div><div class="gmail_extra">ovn-nbctl set-connection ptcp:6641</div><div><br></div></div><div class="gmail_extra"><br></div></span><div class="gmail_extra"><div class="gmail_extra">2017-04-24T07:56:23.178Z|<wbr>00247|reconnect|INFO|tcp:<a href="http://10.4.192.43:6642" target="_blank">10.4.<wbr>192.43:6642</a>: connecting...</div><div class="gmail_extra">2017-04-24T07:56:23.178Z|<wbr>00248|reconnect|INFO|tcp:<a href="http://10.4.192.43:6642" target="_blank">10.4.<wbr>192.43:6642</a>: connection attempt failed (Connection refused)</div><div class="gmail_extra">2017-04-24T07:56:23.178Z|<wbr>00249|reconnect|INFO|tcp:<a href="http://10.4.192.43:6642" target="_blank">10.4.<wbr>192.43:6642</a>: waiting 8 seconds before reconnect</div><div class="gmail_extra">2017-04-24T07:56:31.187Z|<wbr>00250|reconnect|INFO|tcp:<a href="http://10.4.192.43:6642" target="_blank">10.4.<wbr>192.43:6642</a>: connecting...</div><div class="gmail_extra">2017-04-24T07:56:31.188Z|<wbr>00251|reconnect|INFO|tcp:<a href="http://10.4.192.43:6642" target="_blank">10.4.<wbr>192.43:6642</a>: connected</div><div class="gmail_extra">2017-04-24T07:56:31.193Z|<wbr>00252|ofctrl|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connecting to switch</div><div class="gmail_extra">2017-04-24T07:56:31.193Z|<wbr>00253|rconn|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connecting...</div><div class="gmail_extra">2017-04-24T07:56:31.201Z|<wbr>00254|rconn|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connected</div><div class="gmail_extra">2017-04-24T07:56:31.201Z|<wbr>00255|pinctrl|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connecting to switch</div><div class="gmail_extra">2017-04-24T07:56:31.201Z|<wbr>00256|rconn|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connecting...</div><div class="gmail_extra">2017-04-24T07:56:31.201Z|<wbr>00257|rconn|INFO|unix:/var/<wbr>run/openvswitch/br-int.mgmt: connected</div><div class="gmail_extra">2017-04-24T07:56:31.202Z|<wbr>00258|binding|INFO|Releasing lport 0a2a47bc-ea0d-4f1d-8f49-<wbr>ec903e519983 from this chassis.</div><div><br></div></div><div class="gmail_extra">On my provider I see then the 3 oVirt hosts connected:</div><div class="gmail_extra"><div class="gmail_extra">[root@ovmgr1 openvswitch]# netstat -tpn|grep 66</div><div class="gmail_extra">tcp        0      0 <a href="http://10.4.192.43:6642" target="_blank">10.4.192.43:6642</a>        <a href="http://10.4.168.76:38882" target="_blank">10.4.168.76:38882</a>       ESTABLISHED 6699/ovsdb-server   </div><div class="gmail_extra">tcp        0      0 <a href="http://10.4.192.43:6642" target="_blank">10.4.192.43:6642</a>        <a href="http://10.4.168.75:45486" target="_blank">10.4.168.75:45486</a>       ESTABLISHED 6699/ovsdb-server   </div><div class="gmail_extra">tcp        0      0 <a href="http://127.0.0.1:5432" target="_blank">127.0.0.1:5432</a>          <a href="http://127.0.0.1:37074" target="_blank">127.0.0.1:37074</a>         ESTABLISHED 16696/postgres: eng </div><div class="gmail_extra">tcp        0      0 <a href="http://10.4.192.43:6642" target="_blank">10.4.192.43:6642</a>        <a href="http://10.4.168.74:59176" target="_blank">10.4.168.74:59176</a>       ESTABLISHED 6699/ovsdb-server   </div><div class="gmail_extra">[root@ovmgr1 openvswitch]# </div><div><br></div><div>But it seems that the &quot;set&quot; command above is not persistent across reboot of the provider host.... that in my case is the oVirt engine server</div><div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0">MARCIN mIRECKI<br></p>

<p style="font-weight:normal;margin:0;font-size:10px;color:#999"><a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:&#39;overpass&#39;,sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br><br></span></a></p>



<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a> </td>
</tr></tbody></table>

</div></div></div>
</div>