<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 6:16 PM, Edward Clay <span dir="ltr">&lt;<a href="mailto:edward.clay@uk2group.com" target="_blank">edward.clay@uk2group.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 bgcolor="#f9faf9"><div><div class="gmail-h5"><div><br></div><div>On Tue, 2017-11-21 at 09:00 +0200, Edward Haas wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 1:24 AM, Edward Clay <span dir="ltr">&lt;<a href="mailto:edward.clay@uk2group.com" target="_blank">edward.clay@uk2group.com</a>&gt;</span> wrote:<br><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div bgcolor="#f9faf9"><div><div>Hello,</div><div><br></div><div>We have an issue where hosts are configured with the public facing nework interface as the ovirtmgmt network and it&#39;s default route is added to a ovirt created table but not to the main routing table.  From my searching I&#39;ve found this snippet from <a href="https://www.ovirt.org/develop/release-management/features/network/multiple-gateways/" target="_blank">https://www.ovirt.org/develop/<wbr>release-management/features/ne<wbr>twork/multiple-gateways/</a> which seems to explain why I can&#39;t ping anything or communicate with any other system needing a default route.</div></div></div><br></blockquote><div><br></div><div>By default, the default route is set on the ovirtmgmt network (the default one, defined on the interface/ip which you added the host to Engine).<br></div><div>Do you have a different network set up which you will like to set the default route on?<br></div><div></div><div> <br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div bgcolor="#f9faf9"><div><div><br></div><div>&quot;And finally, here&#39;s the host&#39;s main routing table. Any traffic coming in to the host will use the ip rules and an interface&#39;s routing table. The main routing table is only used for traffic originating from the host.&quot;</div><div><br></div><div>I&#39;m seeing the following main and custom ovirt created tables.</div><div><br></div><div>main:</div><div># ip route show table main</div><div><a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> via 10.4.16.1 dev enp3s0.106 </div><div><a href="http://10.4.16.0/24" target="_blank">10.4.16.0/24</a> dev enp3s0.106 proto kernel scope link src 10.4.16.15 </div><div><a href="http://1.1.1.0/24" target="_blank">1.1.1.0/24</a> dev PUBLICB proto kernel scope link src 1.1.1.1 <a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev enp6s0 scope link metric 1002 </div><div><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev enp3s0 scope link metric 1003 </div><div><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev enp7s0 scope link metric 1004 </div><div><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev enp3s0.106 scope link metric 1020 </div><div><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev PRIVATE scope link metric 1022 </div><div><a href="http://169.254.0.0/16" target="_blank">169.254.0.0/16</a> dev PUBLIC scope link metric 1024 </div><div><br></div><div>table 1138027711</div><div># ip route show table 1138027711</div><div>default via 1.1.1.1 dev PUBLIC</div><div><a href="http://1.1.1.0/24" target="_blank">1.1.1.0/24</a> via 1.1.1.1 dev PUBLIC</div><div><br></div><div>If I manually execute the following command to add the default route as well to the main table I can ping ouside of the local network.</div><div><br></div><div>ip route add <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a> via 1.1.1.1 dev PUBLIC</div><div><br></div><div>If I attempt to modify the /etc/sysconfig/network-scripts<wbr>/route-PUBLIC ad reboot the server ad one would think this file is recreated by vdsm on boot.</div><div><br></div><div>What I&#39;m looking for is the correct way to setup a default gateway for the main routing table so the hosts can get OS updates and communicate with the outside world.</div></div></div><br></blockquote><div><br></div><div>Providing the output from &quot;ip addr&quot; may help clear up some things.<br></div><div>It looks like you have on the host the default route set as 10.4.16.1 (on enp3s0.106), could you elaborate what this interface is?<br></div></div></div></div></div></blockquote><div><br></div></div></div><div>We have setup vlan taging to utilize the 2 internetal network interfaces (originally enp6s0 and enp7s0) to be configured with mulitiple networks each.  We eventually added 10Gb nics to all servers to improve san glusterfs performance which is enp3s0 which replaced enp6s0 in our setup.</div><div><br></div><div>enp3s0.106 = ovirtmgmt network access to private internal networks only</div><div>enp3s0.206 = private network bridge PRIVATE used for private internal network access for VMs</div><div>enp7s0.606 = is used for public access for both VMs (bridge) and each host/cp/san in our ovirt setup named PUBLIC</div><div><br></div><div># ip addr show</div><div>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN qlen 1</div><div>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</div><div>    inet <a href="http://127.0.0.1/8" target="_blank">127.0.0.1/8</a> scope host lo</div><div>       valid_lft forever preferred_lft forever</div><div>    inet6 ::1/128 scope host </div><div>       valid_lft forever preferred_lft forever</div><div>2: enp6s0: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000</div><div>    link/ether 00:25:90:38:d6:2c brd ff:ff:ff:ff:ff:ff</div><div>    inet6 fe80::225:90ff:fe38:d62c/64 scope link </div><div>       valid_lft forever preferred_lft forever</div><div>3: enp3s0: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc mq state UP qlen 1000</div><div>    link/ether 90:e2:ba:1d:a4:00 brd ff:ff:ff:ff:ff:ff</div><div>    inet6 fe80::92e2:baff:fe1d:a400/64 scope link </div><div>       valid_lft forever preferred_lft forever</div><div>4: enp7s0: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000</div><div>    link/ether 00:25:90:38:d6:2d brd ff:ff:ff:ff:ff:ff</div><div>20: <a href="mailto:enp3s0.106@enp3s0" target="_blank">enp3s0.106@enp3s0</a>: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue state UP qlen 1000</div><div>    link/ether 90:e2:ba:1d:a4:00 brd ff:ff:ff:ff:ff:ff</div><div>    inet <a href="http://10.4.16.15/24" target="_blank">10.4.16.15/24</a> brd 10.4.16.255 scope global enp3s0.106</div><div>       valid_lft forever preferred_lft forever</div><div>21: <a href="mailto:enp3s0.206@enp3s0" target="_blank">enp3s0.206@enp3s0</a>: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue master PRIVATEB state UP qlen 1000</div><div>    link/ether 90:e2:ba:1d:a4:00 brd ff:ff:ff:ff:ff:ff</div><div>22: PRIVATE: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue state UP qlen 1000</div><div>    link/ether 90:e2:ba:1d:a4:00 brd ff:ff:ff:ff:ff:ff</div><div>23: <a href="mailto:enp7s0.606@enp7s0" target="_blank">enp7s0.606@enp7s0</a>: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue master PUBLICB state UP qlen 1000</div><div>    link/ether 00:25:90:38:d6:2d brd ff:ff:ff:ff:ff:ff</div><div>24: PUBLIC: &lt;BROADCAST,MULTICAST,UP,LOWER_<wbr>UP&gt; mtu 1500 qdisc noqueue state UP qlen 1000</div><div>    link/ether 00:25:90:38:d6:2d brd ff:ff:ff:ff:ff:ff</div><div>    inet <a href="http://1.1.1.10/24" target="_blank">1.1.1.10/24</a> brd 1.1.1.255 scope global PUBLICB</div><div>       valid_lft forever preferred_lft forever</div><div>25: ;vdsmdummy;: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN qlen 1000</div><div>    link/ether 0e:32:93:dd:a4:55 brd ff:ff:ff:ff:ff:ff</div><div><br></div><div><br></div><div>So all this being said I just need to reconfigure things in a way that the PUBLIC interface has a default route in the main routing table.  Otherwise all ovirt host are unable to communicate with the outside world until I manually add a default route to 1.1.1.1 via the PUBLIC interface.  Is that possible.</div></div></blockquote><div><br></div><div>It is available in oVirt 4.2 as a network cluster role.<br></div><div>The option to assign a default route role to a network: <a href="https://www.ovirt.org/documentation/admin-guide/chap-Logical_Networks/#designate-a-specific-traffic-type-for-a-logical-network-with-the-manage-networks-window">https://www.ovirt.org/documentation/admin-guide/chap-Logical_Networks/#designate-a-specific-traffic-type-for-a-logical-network-with-the-manage-networks-window</a><br><br></div><div>On 4.1, it is available as a network custom property and its support is limited: See <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1200963#c43">https://bugzilla.redhat.com/show_bug.cgi?id=1200963#c43</a> and <a href="https://gerrit.ovirt.org/#/c/66127">https://gerrit.ovirt.org/#/c/66127</a><br></div><div>Make sure you do not define two networks with the flag on.<br></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 bgcolor="#f9faf9"><span class="gmail-"><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Thanks,<br></div><div>Edy.<br></div><div><br></div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></span><span class="gmail-HOEnZb"><font color="#888888"><div><span><pre>-- <br></pre><div>Edward Clay</div><div>Systems Adminstrator</div><div>UK2 Group -- US Operations<span style="color:rgb(0,0,0)"> </span></div><div><span style="color:rgb(0,0,0)">Phone: <a href="tel:%28800%29%20222-2165" value="+18002222165" target="_blank">1-800-222-2165</a></span></div><div><span style="color:rgb(0,0,0)">E-Mail: <a href="mailto:edward.clay@uk2group.com" target="_blank">edward.clay@uk2group.com</a></span></div></span></div></font></span></div></blockquote></div><br></div></div>