Attempting to add\connect a host to the vCenter Server fails with the error after reaching to 90%:
Cannot complete the license assignment operation. Can not assign a license to "Host" <host_name>. Make sure the License Service is available.
VMware vCenter Server
VMware vSphere ESXi
This issue occurs when the vCenter has VMDir in read-only mode.
Please perform the below steps to change the vmdir to NORMAL state:
Note: Ensure to take a backup of vCenter Server before proceeding.
shell and press Enter/usr/lib/vmware-vmdir/bin/vdcadmintoolservice-control --restart vmdird