On Skyline health, an error is seen showing "Failed to get host encryption health result" after renewing certificate on vCenter appliance.
In the /var/log/vmware/vsan-health/vmware-vsan-health-service.log in vCenter, this is seen below:
ERROR vsan-mgmt[412291] [VsanVapiUtil::GetVapiConfigStubBySolUser opID=06e96157] Fail to connect vAPI by solution user vpxd-extension
In the same logs, this is observed "host encryption health checking"
Then VC health reports error about host encryption health checkingWARNING vsan-mgmt[66558] [VsanHealthEncUtil::_AggregateEncryptionConfigHealthForKmx opID=06e96157] Host: encryption health error: (vim.fault.VsanFault) { faultMessage = (vmodl.LocalizableMessage) [ (vmodl.LocalizableMessage) { key = 'com.vmware.vsan.health.msg.list.x.provider.error', message = 'get provider info error, please check the health logs' } ]}WARNING vsan-mgmt[66558] [VsanHealthEncUtil::_AggregateEncryptionConfigHealthForKmx opID=06e96157] Host: health error: (vim.fault.VsanFault) { faultMessage = (vmodl.LocalizableMessage) [ (vmodl.LocalizableMessage) { key = 'com.vmware.vsan.health.msg.list.x.provider.error', message = 'get provider info error, please check the health logs'
VMware vSphere vCenter 8.0.x
This is caused due to /storage/vsan-health/vpxd-extension.cert and /storage/vsan-health/vpxd-extension.key having stale credentials, which is used by SSO authentication, leading to authorization failing.
This issue is fixed in 8.0 p05 release.
The current workaround for this issue is:
1. Login to VC via SSH.
2. Backup vpxd-extension.cert and vpxd-extension.key. ----> cp /storage/vsan-health/vpxd-extension.cert /storage/vsan-health/vpxd-extension.cert.bak ----> cp /storage/vsan-health/vpxd-extension.key /storage/vsan-health/vpxd-extension.key.bak
3. Remove vpxd-extension.cert and vpxd-extension.key. ----> rm /storage/vsan-health/vpxd-extension.cert ----> rm /storage/vsan-health/vpxd-extension.key
4. Once this is removed, please do a Skyline health reset on vCenter interface by going on the cluster lever, click on monitor, then go to vSAN skyline health and then initiate a retest. This should clear the alarm.