My Oracle Support Banner

OLVM: Sync All Networks Failed with "Error while executing action SyncAllHostNetworks: Network is currently being used." (Doc ID 2676939.1)

Last updated on JULY 27, 2023

Applies to:

Linux OS - Version Oracle Linux 7.6 and later
Linux x86-64

Symptoms

When clicking "Sync All Networks" on one KVM host in AdminPortal, it fails with "Error while executing action SyncAllHostNetworks: Network is currently being used."

ovirt-engine log reports below error:

2020-06-03 15:54:39,595+12 ERROR [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-7) [583f3532] Command 'org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand' failed: EngineException: org.ovirt.engine.core.vdsbroker.vdsbroker.VDSErrorException: VDSGenericException: VDSErrorException: Failed to HostSetupNetworksVDS, error = Bridge VM_Public has interfaces set([u'vnet0']) connected, code = 28 (Failed with error ERR_USED_BRIDGE and code 28)
2020-06-03 15:54:39,597+12 INFO [org.ovirt.engine.core.bll.network.host.HostSetupNetworksCommand] (default task-7) [583f3532] Lock freed to object 'EngineLock:{exclusiveLocks='[HOST_NETWORKxxxxxxxxxxx=HOST_NETWORK]', sharedLocks=''}'
2020-06-03 15:54:39,601+12 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-7) [583f3532] EVENT_ID: PERSIST_SETUP_NETWORK_ON_HOST_FAILED(10,904), (1/1): Failed to apply changes on host KVMHost. (User: xxx@internal-authz)
2020-06-03 15:54:39,605+12 ERROR [org.ovirt.engine.core.bll.network.host.SyncAllHostNetworksCommand] (default task-7) [583f3532] Transaction rolled-back for command 'org.ovirt.engine.core.bll.network.host.SyncAllHostNetworksCommand'.
2020-06-03 15:54:39,611+12 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-7) [583f3532] EVENT_ID: HOST_SYNC_ALL_NETWORKS_FAILED(10,900), Failed to sync all host KVMHost networks

supervdsm.log reports below error:

MainProcess|jsonrpc/6::ERROR::2020-06-03 15:54:48,972::supervdsm_server::103::SuperVdsm.ServerCallback::(wrapper) Error in setupNetworks
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vdsm/supervdsm_server.py", line 101, in wrapper
res = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/network/api.py", line 228, in setupNetworks
_setup_networks(networks, bondings, options, net_info)
File "/usr/lib/python2.7/site-packages/vdsm/network/api.py", line 249, in _setup_networks
networks, bondings, options, net_info, in_rollback)
File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch/configurator.py", line 139, in setup
_setup(networks, bondings, options, in_rollback, net_info)
File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch/configurator.py", line 157, in _setup
legacy_nets, legacy_bonds, options, net_info, in_rollback)
File "/usr/lib/python2.7/site-packages/vdsm/network/netswitch/configurator.py", line 194, in _setup_legacy
_netinfo)
File "/usr/lib/python2.7/site-packages/vdsm/network/legacy_switch.py", line 346, in remove_networks
keep_bridge=keep_bridge)
File "/usr/lib/python2.7/site-packages/vdsm/network/legacy_switch.py", line 168, in wrapped
return func(network, configurator, net_info, bondattr, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/network/legacy_switch.py", line 274, in _del_network
bridged and not keep_bridge, _netinfo)
File "/usr/lib/python2.7/site-packages/vdsm/network/legacy_switch.py", line 323, in _validateDelNetwork
_assert_bridge_clean(network, vlan, bonding, nics)
File "/usr/lib/python2.7/site-packages/vdsm/network/legacy_switch.py", line 258, in _assert_bridge_clean
' %s connected' % (bridge, brifs))
ConfigNetworkError: (28, u"Bridge VM_Public has interfaces set([u'vnet0']) connected")

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
Cause
Solution

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