VAMI - Error in method invocation ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')
search cancel

VAMI - Error in method invocation ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')

book

Article ID: 327768

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

This article provides steps to resolve issue caused due to invalid attributes added in /etc/systemd/network/10-eth0.network file.

Symptoms:
vCenter 7.0 patch update was completed successfully but there is following error in VAMI Networking tab "Error in method invocation ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')"

Environment

VMware vCenter Server 7.0.x
VMware vCenter Server 8.0.x

Cause

We see below errors in applmgmt.log
File "/usr/lib/applmgmt/networking/py/vmware/appliance/networking/utils.py", line 1193, in _getDNSConfigCB
    raise Exception('netmgr --get failed with error. Err = %s', err)
Exception: ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')
2024-01-31T17:35:33 PM UTC [3009]DEBUG:vmware.appliance.networking.impl:IPv6 Default gateway is not configured on the nic0 interface
2024-01-31T17:35:33 PM UTC [3009]DEBUG:vmware.appliance.networking.impl:com.vmware.appliance.version1.networking.dns.hostname.get()
2024-01-31T17:35:33 PM UTC [3009]DEBUG:vmware.appliance.networking.impl:com.vmware.appliance.version1.networking.dns.servers.get()
2024-01-31T17:35:33 PM UTC [3009]ERROR:vmware.appliance.networking.utils:netmgr --get failed with error = 204
2024-01-31T17:35:33 PM UTC [3009]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.networking in get - ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')
Traceback (most recent call last):
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
    service_id, operation_id, input_value, ctx)
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 248, in _invoke_int
    method_result = iface.invoke(ctx, method_id, input_value)
  File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, in invoke
    meth_output = method(**meth_args)
  File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 43, in wrapper
    return sync_call_from_thread(func, *args, **kw)
  File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 13, in sync_call_from_thread
    return threads.blockingCallFromThread(reactor, func, *args, **kw)
  File "/usr/lib/python3.7/site-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
    result.raiseException()
  File "/usr/lib/python3.7/site-packages/twisted/python/failure.py", line 488, in raiseException
    raise self.value.with_traceback(self.tb)
  File "/usr/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/applmgmt/networking/py/vmware/appliance/networking/utils.py", line 1193, in _getDNSConfigCB
    raise Exception('netmgr --get failed with error. Err = %s', err)
Exception: ('netmgr --get failed with error. Err = %s', b'Error: value not found\n')

Tried to manually update network configuration.
1. Login to VCSA via putty and run /opt/vmware/share/vami/vami_config_net
2. Try configuring DNS again from here
3. if this fails. take a backup and delete this file /etc/resolv.conf
4. Reboot vCenter, file would be recreated
5. Go to VAMI page or /opt/vmware/share/vami/vami_config_net to reconfigure DNS
The above steps also did not work.

Resolution

Cross-matched/etc/systemd/network/10-eth0.network from a working vCenter and found additional attributes have been added to the file.

10-eth0.network from a working vCenter,
[Match]
Name=eth0

[Network]
Gateway=xxx.xxx.x.xxx
Address=xxx.xxx.x.xx/xx
LinkLocalAddressing=no
DHCP=no

[DHCP]
UseDNS=false

10-eth0.network from problem vCenter,
[Match]
Name=eth0

[Network]
Gateway=xx.xx.xxx.x
Address=xx.xx.xx.xx/xx
LinkLocalAddressing=no
DHCP=no

[omains=[corp.int]---------------> Invalid Attributes

[DHCP]
UseDNS=false


[Route]---------------> Invalid Attributes
Gateway=xx.xx.xx.xx---------------> Invalid Attributes
Destination=0.0.0.0/0---------------> Invalid Attributes

Follow the below steps to resolve the issue.

1. Take a backup/snapshot of the vCenter before making any changes
2. Delete any additional attributes from the /etc/systemd/network/10-eth0.network file
3. Stop/Start applmgmt service

Additional Information

Impact/Risks:
  • Unable to configure Networking for vCenter
  • No network information available in vCenter Management
  • Backups do not work


Attachments

image get_app