On vCenter server, when applying ESXi host profile gives an error: "Error setting advanced options on the host."
When applying ESXi host profile, you might notice below entries in host logs:
"Failed to set Syslog configuration: Cannot set the audit record storage directory while audit record storage is enabled (in use)"
/var/run/log/hostd.log
-vim.option.OptionManager.updateValues-921
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099717]: [Originator@6876 sub=Hostsvc.SyslogConfigProvider opID=<Op-ID> sid=52436b03 user=vpxuser] Set called with key
'Syslog.global.auditRecord.storageDirectory', value '"[] /scratch/auditlog"'
yyyy-mm-ddThh-mm-ssZ Er(163) Hostd[2099717]: [Originator@6876 sub=Hostsvc.SyslogConfigProvider opID=<Op-ID> sid=52436b03 user=vpxuser] Failed to set globa
l syslog configuration : Cannot set the audit record storage directory while audit record storage is enabled (in use).
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099717]: [Originator@6876 sub=AdapterServer opID=<Op-ID> sid=52436b03 user=vpxuser] AdapterServer caught exception; <<
52436b03-6363-3cd1-226b-25dc81760122, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 55517'>>, ha-adv-options, vim.option.OptionManager.updateValues, <vim.version.v8_0_3_0, internal, 8.0.3.0>, [N11HostdCommon1
8VmomiAdapterServer19ActivationResponderE:0x000000337be032d8]>, N5Vmomi5Fault11SystemError9ExceptionE(Fault cause: vmodl.fault.SystemError
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099689]: --> )
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099689]: -->
/var/run/log/vpxa.log
-vim.option.OptionManager.updateValues-921
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099717]: [Originator@6876 sub=Hostsvc.SyslogConfigProvider opID=<Op-ID> sid=52436b03 user=vpxuser] Set called with key
'Syslog.global.auditRecord.storageDirectory', value '"[] /scratch/auditlog"'
yyyy-mm-ddThh-mm-ssZ Er(163) Hostd[2099717]: [Originator@6876 sub=Hostsvc.SyslogConfigProvider opID=<Op-ID> user=vpxuser] Failed to set globa
l syslog configuration : Cannot set the audit record storage directory while audit record storage is enabled (in use).
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099717]: [Originator@6876 sub=AdapterServer opID=<Op-ID> sid=52436b03 user=vpxuser] AdapterServer caught exception; <<
52436b03-6363-3cd1-226b-25dc81760122, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 55517'>>, ha-adv-options, vim.option.OptionManager.updateValues, <vim.version.v8_0_3_0, internal, 8.0.3.0>, [N11HostdCommon1
8VmomiAdapterServer19ActivationResponderE:0x000000337be032d8]>, N5Vmomi5Fault11SystemError9ExceptionE(Fault cause: vmodl.fault.SystemError
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099689]: --> )
yyyy-mm-ddThh-mm-ssZ In(166) Hostd[2099689]: -->