Bug 1186330 - Gateway entry (outside of 'cfg') is not set for non-VM networks
Summary: Gateway entry (outside of 'cfg') is not set for non-VM networks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.6.0
Assignee: Ondřej Svoboda
QA Contact: Michael Burman
URL:
Whiteboard: network
Depends On:
Blocks: 1070613
TreeView+ depends on / blocked
 
Reported: 2015-01-27 13:01 UTC by Lior Vernia
Modified: 2016-02-10 19:36 UTC (History)
11 users (show)

Fixed In Version: vdsm-4.17.0-632.git19a83a2
Clone Of:
Environment:
Last Closed: 2015-11-04 12:59:25 UTC
oVirt Team: Network
Embargoed:


Attachments (Terms of Use)
getVdsCaps (28.52 KB, text/plain)
2015-01-27 13:01 UTC, Lior Vernia
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 37440 0 master MERGED netinfo: report a gateway for statically configured networks Never
oVirt gerrit 37448 0 master MERGED networkTests: also check we successfully report an IPv4 gateway Never
oVirt gerrit 37667 0 master MERGED _get_gateway: allow duplicated gateways if they are in fact the same routes Never

Description Lior Vernia 2015-01-27 13:01:40 UTC
Created attachment 984634 [details]
getVdsCaps

Description of problem:

When configuring stating boot protocol with gateway for a non-VM network (either VLAN-tagged or not), its gateway is not set though its IP address and subnet are.


Version-Release number of selected component (if applicable):

Building from current master.


How reproducible:

Always.


Steps to Reproduce:
1. Create non-VM network.
2. Configure on host with static boot protocol, including gateway.
3. Look at the configuration following the setup networks command.

Actual results:

Gateway entry remains empty (though inside the 'cfg' entry, gateway is set).


Expected results:

Gateway outside of the 'cfg' entry should be consistent with that inside the 'cfg' entry!


Additional info:

Note that the problem is on vdsm side - engine sends the proper configuration. Also, attaching output of getVdsCaps.

Comment 1 Ondřej Svoboda 2015-02-10 10:37:03 UTC
The fix http://gerrit.ovirt.org/#/c/37440/ has been merged to master.

Comment 2 Ondřej Svoboda 2015-02-10 14:13:50 UTC
I just noticed that on my EL6 host the routes are almost perfectly duplicated between the 'main' routing table and the table dedicated to the (dynamic, DHCP) source route. Although the dedicated table and the main table differ in the first route (did the kernel really do this?), the default route is the same.

The duplication results in the gateway not being reported.

# ip route show table 170016670 
10.34.60.0/22 via 10.34.63.158 dev ovirtmgmt 
default via 10.34.63.254 dev ovirtmgmt 

# ip route show table main 
10.34.60.0/22 dev ovirtmgmt  proto kernel  scope link  src 10.34.63.158 
default via 10.34.63.254 dev ovirtmgmt 

The treatment should be as follows: Since VDSM manages its policy routing itself we should skip routes explicitly belonging to the 'main' (254) table.

I will try to understand why the gateway for the ovirtmgmt network is duplicated. I assume that the reason to it is due to the ovirtmgmt gateway being default to the whole system. Dan, am I right in this respect?

Comment 3 Dan Kenigsberg 2015-03-05 12:05:58 UTC
Additional fixed merged.

Comment 4 Michael Burman 2015-04-27 09:00:39 UTC
Verified on - 3.6.0-0.0.master.20150412172306.git55ba764.el6
and vdsm-4.17.0-632.git19a83a2.el7.x86_64

vlans = {'bond0.165': {'addr': '5.5.5.9',
                               'cfg': {'BOOTPROTO': 'none',
                                       'DEFROUTE': 'no',
                                       'DEVICE': 'bond0.165',
                                       'GATEWAY': '5.5.5.254',
                                       'HOTPLUG': 'no',
                                       'IPADDR': '5.5.5.9',
                                       'MTU': '1500',
                                       'NETMASK': '255.255.255.0',
                                       'NM_CONTROLLED': 'no',
                                       'ONBOOT': 'no',
                                       'VLAN': 'yes'},
                               'dhcpv4': False,
                               'dhcpv6': False,
                               'gateway': '5.5.5.254',
                               'iface': 'bond0',
                               'ipv4addrs': ['5.5.5.9/24'],
                               'ipv6addrs': ['fe80::210:18ff:fe24:476e/64'],
                               'ipv6gateway': '::',
                               'mtu': '1500',
                               'netmask': '255.255.255.0',
                               'vlanid': 165}}



'net1': {'addr': '5.5.5.9',
         'bridged': False,
         'dhcpv4': False,
         'dhcpv6': False,
         'gateway': '5.5.5.254',
         'iface': 'bond0.165', 
         'interface': 'bond0.165', 
         'ipv4addrs': ['5.5.5.9/24'],
         'ipv6addrs': ['fe80::210:18ff:fe24:476e/64'],
         'ipv6gateway': '::', 
         'mtu': '1500',
         'netmask': '255.255.255.0'},

Comment 6 Sandro Bonazzola 2015-11-04 12:59:25 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.


Note You need to log in before you can comment on or make changes to this bug.