<div dir="ltr"><div><font face="monospace, monospace">Hi,</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Issue summary:</font></div><div><font face="monospace, monospace">--------------</font></div><div><font face="monospace, monospace">On setting, &quot;ovsdb-server/set-sync-exclude-tables&quot; for certain tables, ovsdb-server replication does not work.</font></div><div><font face="monospace, monospace">i.e the ovsdb-server which connects to the active ovsdb-server doesn&#39;t become &#39;backup&#39;.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Expected: </font></div><div><font face="monospace, monospace">---------</font></div><div><font face="monospace, monospace">ovsdb-server which connects to active ovsdb-server should become &#39;backup&#39; and recieve sync for all the tables except for the tables specified in the ctl command &quot;ovsdb-server/set-sync-exclude-tables&quot;.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Reproduction steps:</font></div><div><font face="monospace, monospace">-------------------</font></div><div><font face="monospace, monospace">[&quot;db:Hardware_vtep&quot;---OVSDB-SERVER(Active)-(ptcp:3.1.1.2:7000)-]------------------[-OVSDB-SERVER(Backup)---&quot;db:Hardware_vtep&quot;]</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">1. Start two ovsdb-server instances with db schema as &quot;Hardware_vtep&quot;. Lets call them instance-1 and instance-2.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">ps -ef | grep ovsdb-server</font></div><div><font face="monospace, monospace">root      2704  2093  0 19:56 ?        00:00:03 ovsdb-server /opt/ovsdb/db/vtep.db --remote=punix:/opt/ovsdb/db/db.sock --unixctl=/opt/ovsdb/ovsdb-server.ctl</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">2. At instance-1: Add an entry in &#39;Manager&#39; table.</font></div><div><font face="monospace, monospace">    vtep-ctl --db=unix:/opt/ovsdb/db/db.sock set-manager ssl:<a href="http://10.133.130.126:6640">10.133.130.126:6640</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    ovsdb-client dump unix:/opt/ovsdb/db/db.sock    &lt;&lt;---showing only the tables which is relevant to this issue.</font></div><div><font face="monospace, monospace">    Global table</font></div><div><font face="monospace, monospace">    _uuid                                managers                               other_config switches</font></div><div><font face="monospace, monospace">    ------------------------------------ -------------------------------------- ------------ --------</font></div><div><font face="monospace, monospace">    4121ba6c-a729-45b1-8f69-806b32584d04 [73affd9e-07f0-422f-a394-47ae2a1ab499] {}           </font></div><div><font face="monospace, monospace">        </font></div><div><font face="monospace, monospace">    Manager table</font></div><div><font face="monospace, monospace">    _uuid                                inactivity_probe is_connected max_backoff other_config status  target</font></div><div><font face="monospace, monospace">    ------------------------------------ ---------------- ------------ ----------- ------------ ------- -------------------------</font></div><div><font face="monospace, monospace">    73affd9e-07f0-422f-a394-47ae2a1ab499 []               false         []          {}                  &quot;ssl:<a href="http://10.133.130.126:6640">10.133.130.126:6640</a>&quot;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">3. Now do ovsdb replication related configs:</font></div><div><font face="monospace, monospace">    3.1. At instance-1:</font></div><div><font face="monospace, monospace">        ovs-appctl -t /opt/ovsdb/ovsdb-server.ctl ovsdb-server/add-remote ptcp:7000:3.1.1.2</font></div><div><font face="monospace, monospace">    </font></div><div><font face="monospace, monospace">    3.2 At instance-2:</font></div><div><font face="monospace, monospace">    ovs-appctl -t /opt/ovsdb/ovsdb-server.ctl ovsdb-server/set-active-ovsdb-server tcp:<a href="http://3.1.1.2:7000">3.1.1.2:7000</a></font></div><div><font face="monospace, monospace">    ovs-appctl -t /opt/ovsdb/ovsdb-server.ctl ovsdb-server/set-sync-exclude-tables hardware_vtep:Manager</font></div><div><font face="monospace, monospace">    ovs-appctl -t /opt/ovsdb/ovsdb-server.ctl ovsdb-server/connect-active-ovsdb-server </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">4. Issue reproduced now!!    </font></div><div><font face="monospace, monospace">    Instance-2 will not become &#39;Backup&#39; and it&#39;ll remain in &#39;Active&#39; state.</font></div><div><font face="monospace, monospace">    </font></div><div><font face="monospace, monospace">    This seem to be due to the following error, while processing the notification for &#39;Global&#39; table:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">&quot;Aug  9 12:26:38 Pollux daemon.err ovsdb-server: ovs|00070|ovsdb_error|ERR|unexpected ovsdb error: referential integrity violation: Table Global column managers row 4121ba6c-a729-45b1-8f69-806b32584d04 references nonexistent row 5dbedec1-8221-435f-89b3-503867d0e987 in t&quot;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">    Note: In the hardware_vtep schema, &#39;Global&#39; table has a reference to &#39;Manager&#39; table.</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Additional inputs:</font></div><div><font face="monospace, monospace">------------------</font></div><div><font face="monospace, monospace">bash-3.2# ovsdb-server --version</font></div><div><font face="monospace, monospace">ovsdb-server (Open vSwitch) 2.7.0</font></div><div><font face="monospace, monospace">   </font></div><div><font face="monospace, monospace">Linux version 4.1.14</font></div><div><font face="monospace, monospace">   </font></div><div><font face="monospace, monospace">Thanks,</font></div><div><font face="monospace, monospace">Arun.</font></div><div><br></div></div>