<div dir="ltr"><div><div>Hi Mark,<br><br></div><div>This and some other problems have been fixed on the master branch.<br></div>I would suggest using the master branch for your tests, at least until the fixes are back-ported to the 4.0 branch.<br><br></div><div>Thanks,<br></div><div>Edy.<br></div><div><br></div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 8:34 AM, lifuqiong <span dir="ltr">&lt;<a href="mailto:lifuqiong@cncloudsec.com" target="_blank">lifuqiong@cncloudsec.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
        I want to test ovs in vdsm of release 4.0.2. And according Petr&#39;s helpful advice, created an ovs-based cluster and install vdsm to ovirt engine. But report a &#39;RTNETLINK answers: File exists&#39; error as bellows.<br>
<br>
It seems that vdsm want to  add a default gw through &#39; ip -4 route add default via 192.168.0.1&#39; ; but of course this gateway already exists, why the vdsm will still add the default gateway?<br>
<br>
<br>
Error log:<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,203::commands::68::ro<wbr>ot::(execCmd) /usr/bin/taskset --cpu-list 0-3 /sbin/ip link set dev ovirtmgmt up (cwd None)<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,205::commands::86::ro<wbr>ot::(execCmd) SUCCESS: &lt;err&gt; = &#39;&#39;; &lt;rc&gt; = 0<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,205::commands::68::ro<wbr>ot::(execCmd) /usr/bin/taskset --cpu-list 0-3 /sbin/ip link set dev p3p1 up (cwd None)<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,207::commands::86::ro<wbr>ot::(execCmd) SUCCESS: &lt;err&gt; = &#39;&#39;; &lt;rc&gt; = 0<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,207::commands::68::ro<wbr>ot::(execCmd) /usr/bin/taskset --cpu-list 0-3 /sbin/ip addr flush dev ovirtmgmt scope global (cwd None)<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,209::commands::86::ro<wbr>ot::(execCmd) SUCCESS: &lt;err&gt; = &#39;&#39;; &lt;rc&gt; = 0<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,209::commands::68::ro<wbr>ot::(execCmd) /usr/bin/taskset --cpu-list 0-3 /sbin/ip -4 addr add dev ovirtmgmt <a href="http://192.168.0.117/255.255.255.0" rel="noreferrer" target="_blank">192.168.0.117/255.255.255.0</a> (cwd None)<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,211::commands::86::ro<wbr>ot::(execCmd) SUCCESS: &lt;err&gt; = &#39;&#39;; &lt;rc&gt; = 0<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,211::commands::68::ro<wbr>ot::(execCmd) /usr/bin/taskset --cpu-list 0-3 /sbin/ip -4 route add default via 192.168.0.1 (cwd None)<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,213::commands::86::ro<wbr>ot::(execCmd) FAILED: &lt;err&gt; = &#39;RTNETLINK answers: File exists\n&#39;; &lt;rc&gt; = 2<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,213::api::246::root::<wbr>(setupNetworks) Setting up network according to configuration: networks:{u&#39;ovirtmgmt&#39;: {&#39;remove&#39;: True}}, bondings:{}, options:{&#39;connectivityCheck&#39;: 0, &#39;inRollback&#39;: True}<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,213::api::267::root::<wbr>(_setup_networks) Validating configuration<br>
MainProcess|jsonrpc.Executor/4<wbr>::DEBUG::2016-08-02 22:35:03,216::routes::75::root<wbr>::(get_gateway) The gateway 192.168.0.1 is duplicated for the device p3p1<br>
<br>
MainProcess|jsonrpc.Executor/4<wbr>::ERROR::2016-08-02 22:35:03,310::supervdsmServer:<wbr>:96::SuperVdsm.ServerCallback:<wbr>:(wrapper) Error in setupNetworks<br>
Traceback (most recent call last):<br>
  File &quot;/usr/share/vdsm/supervdsmServ<wbr>er&quot;, line 94, in wrapper<br>
    res = func(*args, **kwargs)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/api.py&quot;, line 248, in setupNetworks<br>
    _setup_networks(networks, bondings, options)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/api.py&quot;, line 275, in _setup_networks<br>
    netswitch.setup(networks, bondings, options, in_rollback)<br>
  File &quot;/usr/lib64/python2.7/contextl<wbr>ib.py&quot;, line 35, in __exit__<br>
    self.gen.throw(type, value, traceback)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/api.py&quot;, line 199, in _rollback<br>
    six.reraise(excType, value, tb)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/api.py&quot;, line 182, in _rollback<br>
    yield<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/api.py&quot;, line 275, in _setup_networks<br>
    netswitch.setup(networks, bondings, options, in_rollback)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/netswitch.py&quot;<wbr>, line 119, in setup<br>
    _setup_ovs(ovs_nets, ovs_bonds, options, in_rollback)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/netswitch.py&quot;<wbr>, line 165, in _setup_ovs<br>
    connectivity.check(options)<br>
  File &quot;/usr/lib/python2.7/site-packa<wbr>ges/vdsm/network/netconfpersis<wbr>tence.py&quot;, line 243, in __exit__<br>
    raise ne.RollbackIncomplete(config_d<wbr>iff, ex_type, ex_value)<br>
IPRoute2Error: [&#39;RTNETLINK answers: File exists&#39;]<br>
<br>
ip addr show<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------<br>
   [root@server117 ~]# ip addr show<br>
  1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN<br>
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>
      inet <a href="http://127.0.0.1/8" rel="noreferrer" target="_blank">127.0.0.1/8</a> scope host lo<br>
         valid_lft forever preferred_lft forever<br>
      inet6 ::1/128 scope host<br>
         valid_lft forever preferred_lft forever<br>
  2: p3p1: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc pfifo_fast master ovirtmgmt state UP qlen 1000<br>
      link/ether 64:00:6a:23:b8:c0 brd ff:ff:ff:ff:ff:ff<br>
  3: em1: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc mq master ovs-system state UP qlen 1000<br>
      link/ether a0:36:9f:09:36:c0 brd ff:ff:ff:ff:ff:ff<br>
      inet6 fe80::a236:9fff:fe09:36c0/64 scope link<br>
         valid_lft forever preferred_lft forever<br>
  4: em2: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN qlen 1000<br>
      link/ether a0:36:9f:09:36:c1 brd ff:ff:ff:ff:ff:ff<br>
  5: wlp4s0: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN qlen 1000<br>
      link/ether 60:6d:c7:29:d7:55 brd ff:ff:ff:ff:ff:ff<br>
  6: ovs-system: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN<br>
      link/ether 42:ab:a1:1b:24:94 brd ff:ff:ff:ff:ff:ff<br>
  7: br0: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue state UNKNOWN<br>
      link/ether a0:36:9f:09:36:c0 brd ff:ff:ff:ff:ff:ff<br>
      inet6 fe80::a236:9fff:fe09:36c0/64 scope link<br>
         valid_lft forever preferred_lft forever<br>
  8: ovirtmgmt: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue state UP<br>
      link/ether 64:00:6a:23:b8:c0 brd ff:ff:ff:ff:ff:ff<br>
      inet <a href="http://192.168.0.117/24" rel="noreferrer" target="_blank">192.168.0.117/24</a> brd 192.168.0.255 scope global ovirtmgmt<br>
         valid_lft forever preferred_lft forever<br>
  9: ;vdsmdummy;: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN<br>
      link/ether 4e:ce:20:14:aa:24 brd ff:ff:ff:ff:ff:ff<br>
<br>
<br>
<br>
How to solve it? Thank you.<br>
Mark<br>
Hope hear from you asap.<br>
<br>
</blockquote></div><br></div></div></div></div></div></div>