YYYY-MM-DDTHH:MM:SS.347Z error wcp [eamagency/retreat.go:49] [opID=vCLS] Unable to destroy agency (Agency:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx): ServerFaultCode: "com.vmware.eam.DisabledOperationException: Invocation of disabled API Agency.DestroyAgency"
vCenter 7.x
# sed '/<vcls>/,/<\/vcls>/d' -i /etc/vmware-vpx/vpxd.cfg
Refer to Disable vCLS on a Cluster via Retreat Mode article For Versions Prior to vSphere 7.0 U3o and 8.0 U2, Using the vSphere Client for more information.
https://<vCenter_FQDN_or_IP_address>/eam/mob?vmodl=1
Under Methods section look for com.vmware.vim.binding.vmodl.ManagedObjectReference and click enable against it.
In the new window, modify the contents to include the "MOID" of the target cluster:
By default: <cluster type="ClusterComputeResource" serverGuid="Server GUID">MOID</cluster>
Our modification: <cluster type="ClusterComputeResource" serverGuid="Server GUID">domain-cx</cluster>
Click Invoke Method.
The powered off vCLS VMs were deleted automatically after the above change.
New vCLS VMs were deployed and powered on successfully.