Adding RHV host fails with "KeyError: 'dhcp'" error

Solution Verified - Updated -

Issue

Adding RHV host to the environment fails with following errors

  • engine.log
2021-07-23 12:54:50,625+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CollectVdsNetworkDataAfterInstallationVDSCommand] (EE-ManagedThreadFactory-engine-Thread-499107) [7326cc65] Command 'CollectVdsNetworkDataAfterInstallationVDSCommand(HostName = test, CollectHostNetworkDataVdsCommandParameters:{hostId='046e9a64-f422-45b4-b070-da2f941ea28f', vds='Host[test,046e9a64-f422-45b4-b070-da2f941ea28f]'})' execution failed: VDSGenericException: VDSErrorException: Failed to CollectVdsNetworkDataAfterInstallationVDS, error = Internal JSON-RPC error: {'reason': "'dhcp'"}, code = -32603
  • vdsm.log
MainProcess|jsonrpc/2::ERROR::2021-07-23 12:54:50,006::supervdsm_server::97::SuperVdsm.ServerCallback::(wrapper) Error in network_caps
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/supervdsm_server.py", line 95, in wrapper
    res = func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/network/api.py", line 59, in network_caps
    return netswitch.configurator.netcaps(compatibility=30600)
  File "/usr/lib/python3.6/site-packages/vdsm/network/netswitch/configurator.py", line 504, in netcaps
    net_caps = netinfo(compatibility=compatibility)
  File "/usr/lib/python3.6/site-packages/vdsm/network/netswitch/configurator.py", line 512, in netinfo
    _netinfo = netinfo_get(vdsmnets, compatibility)
  File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 264, in get
    return _stringify_mtus(_get(vdsmnets))
  File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 75, in _get
    extra_info.update(_get_devices_info_from_nmstate(devices))
  File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 165, in _get_devices_info_from_nmstate
    nmstate.show_interfaces(filter=devices)
  File "/usr/lib/python3.6/site-packages/vdsm/network/netinfo/cache.py", line 164, in <dictcomp>
    for ifname, ifstate in six.viewitems(
  File "/usr/lib/python3.6/site-packages/vdsm/network/nmstate/api.py", line 210, in is_dhcp_enabled
    return family_info[InterfaceIP.ENABLED] and family_info[InterfaceIP.DHCP]
KeyError: 'dhcp'

Environment

  • Red Hat Virtualization 4.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content