Host profile apply failed with error: Error: A specified parameter was not found

Issue:

Running vSphere 6.7

I applied a host profile to a cluster. A couple of hosts didnt like the host profile so I decided to detach it entriely.  I was still presented with the error:

Host profile apply failed with error: Error: A specified parameter was not found

host_profile_failed1

 

Resolution

There are two ways of fixing this:

1) Ensure the host profile is detached then remove the host from the inventory (you'll need to disconnect first). Then Re-add it back in. 

2) Fix the host profile and remediate.  In my case there is a bug with IPv6 default gateway (if you have ipv6 turned off) where there is a double semi-colon (::) still present in the gateway settings. Simply remove this from the Vmnic Default IPv6 gateway

host_profile_failed2