Description of problem: We are not able to setup an OVS network with static default route when there is already an existing one. How reproducible: Always. Steps to Reproduce: 1. Run setupNetworks with defaultRoute=True and gateweay='...' Actual results: Setup fails with IPWrapper Error because of we cannot overwrite existing default route. Expected results: Just set it up.
Hi Petr, please provide us the steps to test this report, because we not sure how. Another think that maybe relevant here, when setting a gateway over an ovs network via setup networks, we end up with network as out-of-sync and no gateway reported in caps for this network.
engine pass ipv4Gateway='null' to vdsm Please tell if it's related to this bug or deserves it's own bug
I'm redirecting the question to Petr, but Michael, could you specify the complete setupNetwork argument list? 'null' in quotes surprises me.
Ok, - So we first of all trying to figure out how exactly to test it. - Another thing that maybe relevant, when passing a gateway over ovs network, we end up as out-of-sync. This is the complete command. 2016-11-21 08:46:18,841 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand] (default task-9) [686863fd] START, HostSetupNetworksVDSCommand(HostName = zeus-vds1.qa.lab.tlv.redhat.com, Host SetupNetworksVdsCommandParameters:{runAsync='true', hostId='e6a65b9b-2752-4274-8b39-a4f7c5ae9ae4', vds='Host[zeus-vds1.qa.lab.tlv.redhat.com,e6a65b9b-2752-4274-8b39-a4f7c5ae9ae4]', rollbackOnFailure='true', connec tivityTimeout='120', networks='[HostNetwork:{defaultRoute='false', bonding='false', networkName='ovs1', nicName='enp4s0', vlan='162', mtu='0', vmNetwork='true', stp='false', properties='[]', ipv4BootProtocol='STAT IC_IP', ipv4Address='5.5.5.5', ipv4Netmask='24', ipv4Gateway='null', ipv6BootProtocol='NONE', ipv6Address='null', ipv6Prefix='null', ipv6Gateway='null'}, HostNetwork:{defaultRoute='false', bonding='false', networkName='new-filter-net', nicName='ens1f1', vlan='166', mtu='0', vmNetwork='true', stp='false', properties='null', ipv4BootProtocol='NONE', i pv4Address='null', ipv4Netmask='null', ipv4Gateway='null', ipv6BootProtocol='NONE', ipv6Address='null', ipv6Prefix='null', ipv6Gateway='null'}]', removedNetworks='[]', bonds='[]', removedBonds='[]', clusterSwitchT ype='OVS'}), log id: 37b3ff6c
Reproducer should be simple. When deploying a host, just use static IP instead of DHCP for management network (I don't know if it is possible to set it before deployment, if not, editing existing DHCP ovirtmgmt into static should be OK as well). Without our fix setupNetworks of static IP management network would fail. Regarding the out-of-sync. OVS switch supports gateway settings only for the main management network (with defaultRoute='true'), we have not implemented source routing for non-management networks yet. Anyways, the gateway='null' I don't understand.
Thanks Petr, Verified on - vdsm-4.18.16-1.el7ev.x86_64 and 4.0.6-0.1.el7ev The other issue(gateway=null) is tracked on BZ - 1397721