My Oracle Support Banner

OLVM: Can Not Assign A Logical Network to A Bonding Interface (Doc ID 2771859.1)

Last updated on OCTOBER 01, 2021

Applies to:

Linux OS - Version Oracle Linux 7.9 and later
x86_64

Symptoms

In an OLVM + OL(KVM) host setup, a bonding interface "bond0" has been created successfully by following "OLVM: How To Create A Bond Device in AdminPortal (Doc ID 2678663.1)".

A logical network("ProdNet20") has been created with VLAN tag (VLAN 20) enabled&allocated.

Assigning above logical network "ProdNet20" to "bond0" by "Compute" -> "Host"-> KVM host name -> "Network Interfaces" -> "Setup Host Networks" -> Drag "ProdNet20" from "Unassigned Logical Networks" to put it column "Assigned Logical Networks" for "bond0" -> Click "OK"

Above assignment completes without any error. However when click the "Setup Host Networks" button again, it shows "Prodnet20" is still in "Unassigned Logical Networks" lists.

Further checking shows vlan 20 has been created on on bond0, "bond0.20" is visible and up in both OLVM Admin portal and on KVM host

Bridge device "ProdNet20" has also been created on the KVM host but still no any network interface attached.

 

In engine.log it shows as below with the only warning message being highlighted), 

2021-04-21 13:35:13,541+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Lock Acquired to object 'EngineLock:{exclusiveLocks='[HOST_NETWORKd5135c23-9848-416f-a8ba-b2e3eecd055f=HOST_NETWORK]', sharedLocks=''}'
2021-04-21 13:35:13,570+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Running command: HostSetupNetworksCommand internal: false. Entities affected :  ID: d5135c23-9848-416f-a8ba-b2e3eecd055f Type: VDSAction group CONFIGURE_HOST_NETWORK with role type ADMIN
2021-04-21 13:35:13,570+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Before acquiring lock in order to prevent monitoring for host '' from data-center ''
2021-04-21 13:35:13,570+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Lock acquired, from now a monitoring of host will be skipped for host '' from data-center ''
2021-04-21 13:35:13,571+07 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] START, HostSetupNetworksVDSCommand(HostName = , HostSetupNetworksVdsCommandParameters:{hostId='d5135c23-9848-416f-a8ba-b2e3eecd055f', vds='Host[,d5135c23-9848-416f-a8ba-b2e3eecd055f]', rollbackOnFailure='true', commitOnSuccess='true', connectivityTimeout='120', networks='[HostNetwork:{defaultRoute='false', bonding='true', networkName='<ProdNet20>', vdsmName='<ProdNet20>', nicName='bond0', vlan='20', vmNetwork='true', stp='false', properties='null', ipv4BootProtocol='NONE', ipv4Address='null', ipv4Netmask='null', ipv4Gateway='null', ipv6BootProtocol='NONE', ipv6Address='null', ipv6Prefix='null', ipv6Gateway='null', nameServers='null'}]', removedNetworks='[]', bonds='[]', removedBonds='[]', clusterSwitchType='LEGACY', managementNetworkChanged='false'}), log id: 4ac0867e
2021-04-21 13:35:13,572+07 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HostSetupNetworksVDSCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] FINISH, HostSetupNetworksVDSCommand, return: , log id: 4ac0867e
2021-04-21 13:35:19,092+07 WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] EVENT_ID: NETWORK_WITHOUT_INTERFACES(1,128), Network <ProdNet20> is not attached to any interface on host .
2021-04-21 13:35:19,111+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Host setup networks finished. Lock released. Monitoring can run now for host '' from data-center ''
2021-04-21 13:35:19,113+07 INFO  [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-4) [3b8198d7-90ea-4a53-8b3d-15b1b3daeafa] Lock freed to object 'EngineLock:{exclusiveLocks='[HOST_NETWORKd5135c23-9848-416f-a8ba-b2e3eecd055f=HOST_NETWORK]', sharedLocks=''}'
2021-04-21 13:35:19,220+07 INFO  [org.ovirt.engine.core.bll.network.host.CommitNetworkChangesCommand] (default task-4) [2624119e-8fb8-4c4e-aa35-1000bce2bd7e] Running command: CommitNetworkChangesCommand internal: false. Entities affected :  ID: d5135c23-9848-416f-a8ba-b2e3eecd055f Type: VDSAction group CONFIGURE_HOST_NETWORK with role type ADMIN
2021-04-21 13:35:19,221+07 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand] (default task-4) [2624119e-8fb8-4c4e-aa35-1000bce2bd7e] START, SetSafeNetworkConfigVDSCommand(HostName = , VdsIdVDSCommandParametersBase:{hostId='d5135c23-9848-416f-a8ba-b2e3eecd055f'}), log id: 74d830b3
2021-04-21 13:35:19,228+07 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand] (default task-4) [2624119e-8fb8-4c4e-aa35-1000bce2bd7e] FINISH, SetSafeNetworkConfigVDSCommand, return: , log id: 74d830b3
2021-04-21 13:35:19,236+07 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-4) [2624119e-8fb8-4c4e-aa35-1000bce2bd7e] EVENT_ID: NETWORK_COMMINT_NETWORK_CHANGES(1,104), Network changes were saved on host

 

Setting up network needs root permissions so operation was done by supervdsm on KVM host and the corresponding log can be found in supervdsm.log, 

MainProcess|jsonrpc/2::DEBUG::2021-04-21 13:35:15,693::cmdutils::133::root::(exec_cmd) /usr/bin/systemd-run --scope --unit=d2e32072-ff02-45f6-aca9-ced740a71b19 --slice=vdsm-dhclient /sbin/ifup bond0.20 (cwd None)
MainProcess|jsonrpc/2::DEBUG::2021-04-21 13:35:15,837::cmdutils::141::root::(exec_cmd) SUCCESS: <err> = "Running scope as unit d2e32072-ff02-45f6-aca9-ced740a71b19.scope.\ncan't add bond0.20 to bridge <ProdNet20>: No data available\n"; <rc> = 0
netlink/events::DEBUG::2021-04-21 13:35:15,839::concurrent::261::root::(run) FINISH thread <Thread(netlink/events, stopped daemon 140491632731904)>
MainProcess|jsonrpc/2::DEBUG::2021-04-21 13:35:15,837::cmdutils::141::root::(exec_cmd) SUCCESS: <err> = "Running scope as unit d2e32072-ff02-45f6-aca9-ced740a71b19.scope.\ncan't add bond0.20 to bridge <ProdNet20>: No data available\n"; <rc> = 0

 

Further tests shows using single port network face for logical network "ProdNet20" does not have above problem. Allocating VLAN tag to a logical network or not has no impact to this issue.

 

Changes

In OLVM admin portal assigning a logical network to a bonding interface for one KVM  host.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.