Configuring DNS suffix via vCenter server direct console fails with "Setting DNS failed: ("DNS Configuration failed",)"
search cancel

Configuring DNS suffix via vCenter server direct console fails with "Setting DNS failed: ("DNS Configuration failed",)"

book

Article ID: 380698

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 8.0 VMware vCenter Server 7.0

Issue/Introduction

  • Configuring Custom DNS Suffixes via vCenter Server Appliance (VCSA) Direct Console fails with Setting DNS failed: ("DNS Configuration failed",)

  • /var/log/vmware/applmgmt/dcui.log

YYYY-MM-DDTHH:MM:SS [2795862]DEBUG:vmware.vherd.base.detwist:Method = 'set', args = [<vmware.appliance.networking.impl.DNSDomains object at 0x7f9e246145e0>, ['<dns suffix>', '<dns suffix>', '<dns suffix>']]
YYYY-MM-DDTHH:MM:SS [2795862]ERROR:vmware.appliance.networking.utils:restart network failed.
YYYY-MM-DDTHH:MM:SS [2795862]ERROR:vmware.vherd.base.detwist:Method failure = <twisted.python.failure.Failure builtins.Exception: restart network failed>
YYYY-MM-DDTHH:MM:SS [2795862]ERROR:vmware.vherd.base.detwist:Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/twisted/internet/_baseprocess.py", line 64, in maybeCallProcessEnded
    proto.processEnded(Failure(reason))
  File "/usr/lib/python3.10/site-packages/twisted/internet/utils.py", line 138, in processEnded
    self.deferred.callback(reason.value.exitCode)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python3.10/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python3.10/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 1052, in _getIpv4InfoCB
    raise Exception("restart network failed")
builtins.Exception: restart network failed

YYYY-MM-DDTHH:MM:SS [2795862]ERROR:vmware.vherd.base.detwist:Got non-pint error restart network failed
YYYY-MM-DDTHH:MM:SS [2795862]DEBUG:vmware.vherd.base.detwist:Method result = {'code': '1', 'message': 'Internal Error', 'attributes': {}, '__error__': True}

YYYY-MM-DDTHH:MM:SS [2016]ERROR:vmkctl:DnsConfigImpl.SaveConfig() dns domains result={'code': '1', 'message': 'Internal Error', 'attributes': {}, '__error__': True}
YYYY-MM-DDTHH:MM:SS [2016]ERROR:vmkctl:Exception = {('Error setting DNS domains: %s', 'Internal Error')}
Traceback (most recent call last):
  File "/usr/lib/applmgmt/dcui/vmkctl.py", line 746, in SaveConfig
    raise HostCtlException('Error setting DNS domains: %s',
vmkctl.HostCtlException: ('Error setting DNS domains: %s', 'Internal Error')
YYYY-MM-DDTHH:MM:SS [2016]ERROR:string_factory:String with key GENERAL_WINDOW_ENABLE_ERROR_TITLE not found
YYYY-MM-DDTHH:MM:SS [2016]ERROR:network_window:Setting DNS failed: ('DNS configuration failed',)

Resolution

Broadcom is working towards a permanent fix for this issue.

As an alternate procedure, perform the below steps to add the DNS suffix on the VCSA using appliancesh shell

Command> com.vmware.appliance.version1.networking.dns.domains.set --domains <comma separated domains list>

  • To validate the configuration, execute the below command

Command> com.vmware.appliance.version1.networking.dns.domains.list