VMware Cloud Community
KennyY
Contributor
Contributor

Failures Against Host Profile - Unexpected error checking compliance: 'NoneType' object has no attribute 'config'

vcenter 6, build 6855219, ESXi 6.0.0 build 7967664

Host profile failed on one out of 16 hosts in the same cluster.

Unexpected error checking compliance: 'NoneType' object has no attribute 'config'

pastedImage_0.png

Reply
0 Kudos
4 Replies
SupreetK
Commander
Commander

Can you re-attempt compliance check and share the hostprofiletrace.log (under var/log/ on the affected ESXi host) once the compliance check fails?

Cheers,

Supreet

Reply
0 Kudos
BenFB
Virtuoso
Virtuoso

KennyY did you ever get to the bottom of this?

I'm also seeing this error on one host in a cluster that are all running VMware ESXi 6.0.0 build-7967664. Below are the contents of /var/log/hostprofiletrace.log. Let me know your thoughts SupreetK

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155155-cli-commands.trc^^^512^^^ Command: esxcli ['system', 'syslog', 'config', 'get'], status: (0), output: "{'Remote Host': 'udp://10.1.1.2:514', 'Message Queue Drop Mark': 90, 'Local Logging Default Rotation Size': 1024, 'Local Log Output Is Persistent': False, 'Default Network Retry Timeout': 180, 'Log To Unique Subdirectory': True, 'Enforce SSL Certificates': False, 'Dropped Log File Rotation Size': 100, 'Local Logging Default Rotations': 8, 'Dropped Log File Rotations': 10, 'Local Log Output Is Configured': F^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155155-cli-commands.trc^^^43^^^ alse, 'Local Log Output': '/scratch/log'}"

^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155155-cli-commands.trc^^^512^^^ Command: esxcli ['network', 'ip', 'route', 'ipv4', 'list', '--netstack', 'defaultTcpipStack'], status: (0), output: "[{'Interface': 'vmk0', 'Source': 'MANUAL', 'Netmask': '0.0.0.0', 'Gateway': '1.1.1.254', 'Network': 'default'}, {'Interface': 'vmk0', 'Source': 'MANUAL', 'Netmask': '255.255.255.0', 'Gateway': '0.0.0.0', 'Network': '10.1.1.0'}, {'Interface': 'vmk1', 'Source': 'MANUAL', 'Netmask': '255.255.255.0', 'Gateway': '0.0.0.0', 'Network': '10.1.2.0'}, {'Interface': 'vmk2', 'Source': 'MANUAL', ^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155155-cli-commands.trc^^^80^^^ 'Netmask': '255.255.255.0', 'Gateway': '0.0.0.0', 'Network': '10.1.3.0'}]"

^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155155-cli-commands.trc^^^210^^^ Command: esxcli ['system', 'coredump', 'network', 'get'], status: (0), output: "{'Network Server IP': '10.1.1.3', 'Is Using IPv6': False, 'Host VNic': 'vmk0', 'Enabled': True, 'Network Server Port': 6500}"

^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155151-CheckHostCompliance-error.trc^^^512^^^ <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:vim25" xsi:type="LocalizedMethodFault"><fault xsi:type="SystemError"><faultMessage xsi:type="LocalizableMessage"><key>com.vmware.vim.profile.ComplianceFailure.UnexpectedError</key><arg><key>context</key><value xsi:type="xsd:string">Exception while checking host compliance</value></arg><arg><key>error</key><value xsi:type="xsd:string">'NoneType' object has no attribute 'config'</value></arg><^@

2018-10-04T15:51:55Z hostprofiletrace: ^^^hostProfiles-4336323-20181004-155151-CheckHostCompliance-error.trc^^^148^^^ message>Unexpected error checking compliance: 'NoneType' object has no attribute 'config'</message></faultMessage><reason></reason></fault></object>^@

Reply
0 Kudos
BenFB
Virtuoso
Virtuoso

I tagged the wrong users initially. KennyY​ or SupreetK​ did you see my above post?

I'm not having any luck with this. If I don't hear back I'll file an SR.

Reply
0 Kudos
BenFB
Virtuoso
Virtuoso

For some reason the compliance check is now succeeding. It looks like a reboot fixed it.

Reply
0 Kudos