After upgrading to vSphere 8.0.3, host profile remediation may fail with the error "Host profile apply failed with error: Error: name 'c' is not defined." Further investigation shows an SSH public key mismatch between the profile and host. Attempts to resolve this using standard SSH key remediation procedures may cause vCenter Server to crash, requiring service restarts.
This issue occurs when host profile entries in the vCenter database become corrupted, particularly affecting the profile's compliance settings. The corruption can manifest during SSH key mismatch resolution attempts.
If unable to remove the host profile through normal means: