Host remediation fails with: You need to set host customizations before proceeding with host remediation
search cancel

Host remediation fails with: You need to set host customizations before proceeding with host remediation

book

Article ID: 433107

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • vSphere hosts in cluster report compliance errors when using Host Profiles. Users see the message "UnabletoCheckCompliance" under the Hosts > Configure > Host Profile tab.

  • Attempting to remediate results in the error: You need to set host customizations before proceeding with host remediation.

  • Logs on ESXi host located at /var/run/log/syslog.log will show entries similar to:

Er(11) hostprofile[123456]: opID=######-######-auto-#####-h5:########-e4-WorkQueue-######-##-####: Failed with invalid IP address ##.##.##.## 
Er(11)[+] hostprofile[123456]: Traceback (most recent call last):
Er(11)[+] hostprofile[123456]:   File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/nodeputil.py", line 90, in IsValidIpv4Address
Er(11)[+] hostprofile[123456]: OSError: illegal IP address string passed to inet_aton^@
Er(11) hostprofile[123456]: opID=######-######-auto-#####-h5:########-e4-WorkQueue-######-##-####: Failed to parse address ##.##.##.## 
Er(11)[+] hostprofile[123456]: Traceback (most recent call last):
Er(11)[+] hostprofile[123456]:   File "/lib64/python3.11/site-packages/hostprofiles/pyEngine/nodeputil.py", line 129, in IsValidIpv6Address
Er(11)[+] hostprofile[123456]:   File "/lib64/python3.11/socket.py", line 974, in getaddrinfo
Er(11)[+] hostprofile[123456]: socket.gaierror: [Errno -2] Name or service not known^@

Environment

vCenter Server 8.Xx
vSphere ESXi 8.x 

Cause

An IP address entry within the Host Profile configuration contains a trailing space, causing the validation engine to treat the integer-based IP as an invalid string.

Resolution

  1. Log in to the vSphere Client.

  2. Navigate to Policies and Profiles > Host Profiles.

  3. Select the affected Host Profile and click Edit Settings.

  4. Search for the IP address identified in the syslog.

  5. Remove any trailing or leading spaces from the IP address field.

  6. Save the Host Profile.

  7. Re-run the compliance check and proceed with remediation.