In(14) hostprofile[2120939]: opID=<ID>: Task haTask--vim.profile.host.profileEngine.HostProfileManager.applyHostConfig-2692 started^@In(14) hostprofile[2120939]: opID=<ID>: ApplyHostConfig called for host profile version 8.0.3^@
In(14) hostprofile[2120939]: opID=<ID>: Applying config first....***^@
In(14) hostprofile[2120939]: opID=<ID>: Re-arranged "add" vnics as []^@
In(14) hostprofile[2120939]: opID=<ID>: Refreshing hostd networking now...^@
Er(11) hostprofile[2120939]: opID=<ID>: Exception while applying host config. Exception: (vim.fault.ResourceInUse) {
Er(11)[+] hostprofile[2120939]: dynamicType = <unset>,
Er(11)[+] hostprofile[2120939]: dynamicProperty = (vmodl.DynamicProperty) [],
Er(11)[+] hostprofile[2120939]: msg = "The resource '<Port Group>' is in use.",
Er(11)[+] hostprofile[2120939]: faultCause = <unset>,
Er(11)[+] hostprofile[2120939]: faultMessage = (vmodl.LocalizableMessage) [],
Er(11)[+] hostprofile[2120939]: type = vim.host.PortGroup,
Er(11)[+] hostprofile[2120939]: name = '<Port Group>'
Er(11)[+] hostprofile[2120939]: }^@
Wa(12) hostprofile[2120939]: opID=<ID>: Exception while applying host config. Backtrace:
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/hostprofilemanager.py", line 1820, in _ApplyHostConfig
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 4728, in ApplyHostConfig
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 3467, in ApplyNetworkConfigCLI
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 3189, in RemovePortGroupConfig
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/pyVmomi/VmomiSupport.py", line 618, in <lambda>
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/pyVmomi/VmomiSupport.py", line 391, in _InvokeMethod
Wa(12)[+] hostprofile[2120939]: ^@
Wa(12) hostprofile[2120939]: opID=<ID>: File "/lib64/python3.11/site-packages/pyVmomi/SoapAdapter.py", line 1607, in InvokeMethod
Wa(12)[+] hostprofile[2120939]: ^@
In(14) hostprofile[2120939]: opID=<ID>: ApplyHostConfig completed^@
In(14) hostprofile[2120939]: opID=<ID>: Cleaned up Host Configuration^@
Log location- /var/run/log/hostprofiletrace.logVMware vSphere ESXi
VMware vCenter Server
A standard switch port group in the Host is still in use. This is because the management or other vmk interfaces on it are still connected to the uplink network via this standard switch port group. As a result, the Host Profile Manager cannot tear up this configuration and push it to the distributed switch port group.
In a setup where the host profile is configured to use the distributed switch port groups, please ensure that all the networks are migrated from the Standard Switch to the distributed switch before the host profile is used to remediate the Hosts. The detailed instructions on how to do the same can be found here- https://techdocs.broadcom.com/us/en/vmware-cis/vsan/vsan/8-0/vsan-network-design/migrating-from-standard-to-distributed-vswitch.html
Note: Please engage Broadcom Support to assist you with the standard to distributed switch migration. An incorrect migration can cause the Hosts to go unresponsive and not connect back to the vCenter server as well.