When Upgrading vCenter Exception occured in postInstallHook for vmafd-patch:Patch. Please check the logs for more details. Take corrective action and then resume.
search cancel

When Upgrading vCenter Exception occured in postInstallHook for vmafd-patch:Patch. Please check the logs for more details. Take corrective action and then resume.

book

Article ID: 336308

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:


Upgrade fail with below errors in PatchRunner.log:

yyyy-mm-dd hh:mm:ssZ vmafd-patch:Patch ERROR vmafd-patch.utils Failed to restart service lwsmd
yyyy-mm-dd hh:mm:ssZ vmafd-patch:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'vmafd-patch:Patch' failed.
Traceback (most recent call last):
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
    executionResult = systemExtension(args)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/libs/sdk/extensions.py", line 106, in __call__
    result = self.extension(*args)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/libs/sdk/extensions.py", line 123, in _func
    return func(*args)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/payload/components-script/vmafd-patch/__init__.py", line 355, in patch
    utils.restart_svc('lwsmd')
    File "/storage/seat/software-updates9572uki/stage/scripts/patches/payload/components-script/vmafd-patch/utils.py", line 404, in restart_svc
    raise Exception('Failed to restart service')
Exception: Failed to restart service
yyyy-mm-dd hh:mm:ssZ ERROR vmware_b2b.patching.phases.patcher Patch hook Patch got ComponentWrapperError.
Traceback (most recent call last):
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 199, in patch
    _patchComponents(ctx, userData, statusAggregator.reportingQueue)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/phases/patcher.py", line 86, in _patchComponents
    executeComponentHook(Hook.Patch, ctx, c, userData, reportingQueue)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 98, in executeComponentHook
    reportQueue, identifier, expectedResultType)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/executor/execution_facade.py", line 53, in executeHook
    result = executor.executeHook(scriptFile, hook, args, reportQueue, reportIdentifier)
  File "/storage/seat/software-updates9572uki/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor_process.py", line 119, in executeHook
    raise ex
patch_errors.ComponentError
yyyy-mm-dd hh:mm:ssZ WARNING root stopping status aggregation...
yyyy-mm-dd hh:mm:ssZ ERROR __main__ Patch vCSA failed

 

Installer error :

Cause

  • The reason vmafd patch fails is because Likewise restart fails.
  • Likewise restart fails because stopping of the likewise managed services (during the restart phase) takes more than 60s which is the timeout value specified post which systemd force kills the services. This results in child processes still running as left over processes.
  • Due to the left-over processes, the likewise start (during restart) also fails as likewise isn't properly terminated and is still running as a zombie process.
  • Now, the reason for this slowness in Likewise restart is because of the process vmafd.

Resolution

This issue has been resolved in 7.0 U3f.

Contact VMware by Broadcom support and mention this KB for workaround steps.