You experience continuous event spam in the vSphere Client Event Viewer with "The object or item referred to could not be found" (ManagedObjectNotFound) errors. This occurs when ESX Agent Manager (EAM) repeatedly fails to deploy vSphere Cluster Services (vCLS) agent VMs to a cluster due to a datastore selection failure.
The /var/log/vmware/eam/eam.log shows the following error repeating:
JOB FAILED: DeployVmJob(ClusterAgent(ID: <agent-id>))
com.vmware.eam.job.DeployVmJob$DeployVmJobFailure: Can't provision VM for ClusterAgent due to lack of suitable datastore.
EAM retries the failed deployment continuously, generating an event with each attempt. This floods the Event Viewer and makes it difficult to monitor legitimate tasks and events. The issue can occur even when healthy shared datastores with adequate free space are available on the cluster, if EAM becomes stuck retrying a cached placement decision for a datastore that is no longer suitable (such as decommissioned or full storage).
Additional symptoms reported:
ESX Agent Manager (EAM) uses a datastore selection policy to determine where to deploy vSphere Cluster Services (vCLS) agent VMs. When EAM selects a datastore and attempts deployment, it caches that placement decision. If the deployment fails, EAM retries the same placement rather than re-evaluating which datastores are currently available.
This becomes a problem when the originally selected datastore becomes unsuitable—for example, if the datastore is decommissioned, enters an alert state, runs out of space, or becomes inaccessible. Even though other healthy shared datastores may be available on the cluster, EAM continues retrying deployment to the original (now unsuitable) datastore. Each failed retry generates an event, causing the continuous event spam visible in the vSphere Client.
The datastore selection policy setting (such as "useLeastUtilized") only applies during the initial selection. Once EAM has made a placement decision and entered a retry loop, it does not automatically re-evaluate available datastores.
https://<vcenter-fqdn>/eam/mobThis step is critical. The resolution differs significantly depending on whether the affected cluster has Workload Management (vSphere with Tanzu/Kubernetes) enabled.
From the vSphere Client:
From the EAM MOB:
Proceed with the following steps to reset vCLS:
Note: While vCLS is in Retreat mode, DRS fully automated migrations and certain vSphere HA functions are temporarily unavailable. Perform this procedure during a maintenance window or period when brief degradation of these features is acceptable.
WARNING: Do not use Retreat mode or destroy EAM agencies on Supervisor clusters. Supervisor control plane VMs are managed by EAM. Destroying these agencies deletes the control plane VMs, which can render the entire Kubernetes environment unrecoverable.
For Supervisor clusters experiencing datastore placement failures:
Once the underlying datastore issue is resolved, EAM will automatically retry deployment and should succeed.
For more information on vSphere Cluster Services and datastore configuration, see Introduction to the vSphere Clustering Service (vCLS).
For more information on the ESX Agent Manager and agency management, see vSphere ESX Agent Manager.
Related articles: