During ESXi host upgrade, if there is any object showing not healthy, the upgrade would fail.
The vSAN objects would show as below:
VMware vSAN 7.x
VMware vSAN 8.x
This is an expected behaviour.
While upgrading, there will be a pre-check that will look at the vSAN objects for health. If any object does not show healthy, the upgrade will fail, and we would need to remediate the objects.
Monitor the resync operation till completion and then retry the upgrade.
We can monitor resync by navigating to the vSAN cluster > Monitor > vSAN > Resyncing objects.
From cli we can us the below command to check resync status:
esxcli vsan debug resync summary get
Once all the objects are healthy, the upgrade should complete normally.