YYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-####-####-####-#######]:WARNING: File "/lib64/python3.8/site-packages/pyVim/account.py", line 66, in RemoveUser ^@YYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-####-####-####-#######]:WARNING: File "/lib64/python3.8/site-packages/pyVmomi/VmomiSupport.py", line 595, in <lambda> ^@YYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-####-####-####-#######]:WARNING: File "/lib64/python3.8/site-packages/pyVmomi/VmomiSupport.py", line 385, in _InvokeMethod ^@YYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-####-####-####-#######]:WARNING: File "/lib64/python3.8/site-packages/pyVmomi/SoapAdapter.py", line 1570, in InvokeMethod ^@YYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-####-####-####-#######]:WARNING: excObj is a runtime fault: (vmodl.fault.SecurityError) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], msg = 'Access to perform the operation was denied.', faultCause = <unset>, faultMessage = (vmodl.LocalizableMessage) [ (LocalizableMessageWithPath) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], key = 'com.vmware.vim.profile.engine.UnexpectedError', arg = (vmodl.KeyAnyValue) [ (vmodl.KeyAnyValue) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], key = 'error', value = 'Access to perform the operation was denied.' }, (vmodl.KeyAnyValue) { dynamicType = <unset>, dynamicProperty = (vmodl.DynamicProperty) [], key = 'context', value = 'ExceptYYYY-MM-DDTHH:MM:SSZ Host Profiles[17258452 opID=#####-#####-auto-#####-h5: ion while applying host config' } ], message = 'Error: Access to perform the operation was denied..'YYYY-MM-DDTHH:MM:SSZ info vpxa[2102528] [Originator@6876 sub=vpxLro opID=#####-####-auto-#####-####-######-##-##-##] [VpxLRO] -- FINISH task-1360946YYYY-MM-DDTHH:MM:SSZ info vpxa[2102528] [Originator@6876 sub=Default opID=#####-####-auto-#####-####-######-##-##-##] [VpxLRO] -- ERROR task-1360946 -- HostdHostProfileManager -- vim.profile.host.profileEngine.HostProfileManager.applyHostConfig: vmodl.fault.SecurityError:--> Result:--> (vmodl.fault.SecurityError) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = (vmodl.LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "com.vmware.vim.profile.engine.UnexpectedError",--> arg = (vmodl.KeyAnyValue) [--> (vmodl.KeyAnyValue) {--> key = "error",--> value = "Access to perform the operation was denied."--> },--> (vmodl.KeyAnyValue) {--> key = "context",--> value = "Exception while applying host config"--> }--> ],--> message = "Error: Access to perform the operation was denied.."--> }--> ]--> msg = "Access to perform the operation was denied."VMware vCenter Server 7.x/8.x
VMware vSphere ESXi 7.x/8.x
This issue occurs when ESXi host credentials are modified externally(such as automation, scripts, etc.) causing a credential mismatch between the active host configuration and the stored host profile.
To resolve this issue,