While performing Host Profile remediation, it fails with the following error in vCenter UI:
Received SOAP response fault from [<SSL(<io_obj p:0x00007f1420ac1908, h:265, <TCP 'VC_IP : 40044'>, <TCP 'Host_IP : 443'>>), /vpxa>]: generateHostConfigTaskSpec Received SOAP response fault from [<<io_obj p:0x000000ed995711a8, h:18, <TCP '127.0.0.1 : 14805'>, <TCP '127.0.0.1 : 8307'>>, /sdk>]: generateHostConfigTaskSpec A general system error occurred:
/var/log/vmware/vpxd/vpxd.log shows the following error message:
YYYY-MM-DDTHH:MM:SS info vpxd[08432] [Originator@6876 sub=vmomi.soapStub[106120]] SOAP request returned HTTP failure; <SSL(<io_obj p:0x00007f16584b19b8, h:112, <TCP 'VC_IP : 44534'>
, <TCP 'VC_IP : 443'>>), /vpxa>, method: deletePorts; code: 500(Internal Server Error); fault: (vim.fault.PlatformConfigFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = (vmodl.LocalizableMessage) [
--> (vmodl.LocalizableMessage) {
--> key = "com.vmware.esx.hostctl.default",
--> arg = (vmodl.KeyAnyValue) [
--> (vmodl.KeyAnyValue) {
--> key = "reason",
--> value = "Unable to delete DVPort "" that is in use, use list: vmk1"
--> }
--> ],
--> message = "Operation failed, diagnostics report: Unable to delete DVPort "" that is in use, use list: vmk1"
--> }
--> ],
--> text = ""
--> msg = "Received SOAP response fault from [<SSL(<io_obj p:0x00007f16584b19b8, h:112, <TCP 'VC_IP : 44534'>, <TCP 'Host_IP : 443'>>), /vpxa>]: deletePorts
--> Received SOAP response fault from [<<io_obj p:0x0000009d59d46738, h:28, <TCP '127.0.0.1 : 57298'>, <TCP '127.0.0.1 : 8307'>>, /sdk>]: deletePorts
--> An error occurred during host configuration."
--> }
YYYY-MM-DDTHH:MM:SS error vpxd[08432] [Originator@6876 sub=hostMethod] Host call [deletePorts] for host [[vim.HostSystem:host-885986,ESXi.local]] failed with excepti
on [Fault cause: vim.fault.PlatformConfigFault
--> ]VMware ESXi
VMware vCenter
This issue can occur if the host profile is extracted from an ESXi host that is either not part of an identical configuration or not connected to the Distributed Virtual Switch (DVS).
Since the DVPort was assigned to vmk1 and was actively in use, the system was unable to delete the port during the remediation process. As a result, the task failed with the following error message recorded in the vpxd logs:
"Operation failed, diagnostics report: Unable to delete DVPort "" that is in use, use list: vmk1"
To resolve the issue, extract the host profile from an ESXi host that is part of the same cluster and has an identical configuration. This ensures that the extracted profile accurately reflects the required settings, including:
Distributed Virtual Switch (DVS) port assignments (e.g., vmk1 for vMotion)
Storage configurations
Network settings
Once the right host profile is extracted, reapply it to the target hosts.