[Users] hosted engine setup (network)

Antoni Segura Puimedon asegurap at redhat.com
Mon Mar 3 11:18:57 EST 2014



----- Original Message -----
> From: "René Koch" <rkoch at linuxland.at>
> To: users at ovirt.org
> Sent: Monday, March 3, 2014 12:48:43 PM
> Subject: [Users] hosted engine setup (network)
> 
> Hi,
> 
> During hosted engine setup I faced issues with network configuration on
> my CentOS 6.5 hosts:
> 
> My network setup was the following which doesn't work with hosted engine
> setup:
> - eth0.200 (VLAN tag 200) should become ovirtmgmt interface
> - GATEWAY is in /etc/sysconfig/network and not in ifcfg-eth0.200
> 
> The following errors occured:
> 014-02-25 15:42:31 INFO
> otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189
> Configuring the management bridge
> 2014-02-25 15:42:31 DEBUG
> otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:198
> getVdsCaps for eth0: {'addr': '', 'cfg': {'DEVICE': 'eth0', 'PEERDNS':
> 'no', 'NM_CONTROLLED': 'no', 'BOOTPROTO': 'none', 'HWADDR': '00:25:9
> 0:75:87:C2', 'ONBOOT': 'yes'}, 'ipv6addrs':
> ['fe80::225:90ff:fe75:87c2/64'], 'mtu': '1500', 'netmask': '', 'hwaddr':
> '00:25:90:75:87:c2', 'speed': 1000}
> 2014-02-25 15:42:31 DEBUG otopi.context context._executeMethod:152
> method exception
> Traceback (most recent call last):
>    File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142,
> in _executeMethod
>      method['method']()
>    File
> "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py",
> line 231, in _misc
>      'gateway=%s' % caps['cfg']['GATEWAY'],
> KeyError: 'GATEWAY'
> 
> This can be solved by setting GATEWAY in ifcfg-eth* file instead of
> /etc/sysconfig/network

Currently we look only at ifcfg files for that sort of information. In the future, though, we'll be
checking things like dhcp leases for the device to know what is the bootproto.

> 
> 
> Next, VLAN tagged interfaces don't work:
> 2014-02-25 15:35:20 INFO
> otopi.plugins.ovirt_hosted_engine_setup.network.bridge bridge._misc:189
> Configuring the management bridge
> 2014-02-25 15:35:20 DEBUG otopi.context context._executeMethod:152
> method exception
> Traceback (most recent call last):
>    File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142,
> in _executeMethod
>      method['method']()
>    File
> "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/network/bridge.py",
> line 194, in _misc
>      ].s.getVdsCapabilities()['info']['nics'][nics]
> KeyError: 'eth0.200'
> 
> So I had to do the following:
> - Set switch port to untagged for this VLAN
> - Configure eth0 instead of eth0.200
> - Run hosted engine setup
> - Configure VLAN for ovirtmgmt in oVirt (which surprisingly worked for
> an active interface)
> - Configure VLAN tagging on hosts
> - Reconfigure switch ports
> - Sync networks in oVirt network setup tab
> 
> As this was a real pain to do I would love to see support for VLAN
> tagging in hosted engine setup :)
> 
> 
> Shall I open bug reports for these 2 issues or are they already known?

I'd say for the second one. /etc/sysconfig/network is losing relevance fast
and I think the new code that checks live device information is better than
parsing that file.

> 
> 
> --
> Best Regards
> 
> René Koch
> Senior Solution Architect
> 
> ============================================
> LIS-Linuxland GmbH
> Brünner Straße 163, A-1210 Vienna
> 
> Phone:   +43 1 236 91 60
> Mobile:  +43 660 / 512 21 31
> E-Mail:  rkoch at linuxland.at
> ============================================
> 
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 


More information about the Users mailing list