Error "Unexpected error checking compliance: module 'string' has no attribute 'atoi'" during Host Profile compliance check
book
Article ID: 327998
calendar_today
Updated On:
Products
VMware vSphere ESXi
Issue/Introduction
Symptoms:
Host Profile compliance check fails with error Unexpected error checking compliance: module 'string' has no attribute 'atoi'
In the hostprofiletrace.log file, you see entries similar to:
2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: ERROR: Exception while checking host compliance. Exception: module 'string' has no attribute 'atoi'^@ 2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: WARNING: Exception while checking host compliance. Backtrace: File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/compliancemanager.py", line 199, in CheckHostCompliance File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/compliancemanager.py", line 397, in CheckHostComplianceInt File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 197, in validate File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostpro 2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: files/pyEngine/comply.py", line 503, in validate File "/build/mts/release/bora-5224529/bora/build/esx/r^@ 2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: WARNING: elease/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 521, in validateSerial File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 508, in _validateInt1 File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 503, in validate File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 521, in validateSerial File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5 2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: /site-packages/hostprofiles/pyEngine/comply.py", line 508, in _validateInt1 File "/build/mts/release/bo^@ 2017-04-10T04:30:32Z Host Profiles[1141210 opID=ComplianceActionResolver-applyOnMultiEntity-109004-ngc-58-SWI-3ed1987-c2-f6e3]: WARNING: ra-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 301, in validate File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/comply.py", line 2347, in validateInt File "/build/mts/release/bora-5224529/bora/build/esx/release/vmvisor/sys/lib64/python3.5/site-packages/hostprofiles/pyEngine/nodeputil.py", line 862, in GetIpListFromStringArray
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Resolution
This issue is resolved in VMware vSphere Hypervisor ESXi 6.5 U1, available at VMware Downloads.