Symptoms:
An error occurred while starting service 'wcp'. Failed to start Workload Control Plane Service.
An error occurred while invoking external command: 'Error 166 while adding user workload_storage_management-########-####-####-####-a52f0cb11e3d to SSO group "ServiceProviderUsers": dir-cli failed, error= Specified User or Group to be added doesn't exist. 100006 ' Failed to configure Workload Control Plane.
Resolution: This is an unrecoverable error, please retry install. If you encounter this error again, please search for these symptoms in the VMware Knowledge Base for any known issues and possible resolutions. If none can be found, collect a support bundle and open a support request.
Starting service process with pid: 9662.
time="yyyy-mm-ddThh:mm:ss.Z" level=info msg="Set debug mode to false"
time="yyyy-mm-ddThh:mm:ss.Z" level=error msg="Encountered error when opening file /etc/vmware/wcp/.storageUser: open /etc/vmware/wcp/.storageUser: no such file or directory"
time="yyyy-mm-ddThh:mm:ss.Z" level=error msg="Failed to parse Service Account data from file /etc/vmware/wcp/.storageUser: open /etc/vmware/wcp/.storageUser: no such file or directory"
time="yyyy-mm-ddThh:mm:ss.Z" level=fatal msg="Failed to load storage service account from /etc/vmware/wcp/.storageUser, verify that firstboot succeeded"
Verification of the issue:
/etc/vmware/wcp/
if the file (.storageUser) exists (in the example below, it does exist) -
ls -lah .storage*
-rw------- 1 wcp lwisRegReader 96 Mar 23 07:27 .storageUser
How to fix the issue:
/usr/lib/vmware-vmafd/bin/vmafd-cli get-machine-id --server-name localhost
/usr/lib/vmware-vmafd/bin/dir-cli user delete --account 'workload_storage_management-<vc-machine-id>'