| ERROR | vc-callback | AgencyImpl.java | 1295 | Failed to add agent to agency (AgencyImpl(ID:'Agency:XXXXX')): java.lang.RuntimeException: Host is no longer in vCenter inventory.
This scenario occurs by the method used to migrate ESXi host(s) between clusters. For example, migrating an ESXi host from standalone (No cluster affiliation) into an NSX prepared cluster.
The host parent relationship is present in two properties:
These two properties are not updated simultaneously.
Seldom (due to several conditions - network latency, concurrent locks, etc.) when an ESXi host is moved from standalone (or directly added to the cluster), the property change for cluster.hosts is received but host.parent still points to the previous object (that no longer exists).
When this condition occurs and EAM tries to create an internal representation of the host by traversing its parent, the error "Host is no longer in vCenter inventory" occurs and no agent (no preparation) is created for this host.
There are two different versions of this issue depending on the vCenter version:
Cause 1 - "Host is no longer in vCenter inventory" - vCenter 6.0 prior to U3c
Cause 2 - "Host is no longer in vCenter inventory" - vCenter 6.0 U3c and U3d
| ERROR | vc-callback | AgencyImpl.java | 1295 | Failed to add agent to agency (AgencyImpl(ID:'Agency:XXXXX')): java.lang.RuntimeException: Host is no longer in vCenter inventory
| WARN | eam-0 | AgencyImpl.java | 1954 | Disposing agency: AgencyImpl(ID:'Agency:XXXXXXX') due to failed load up.
| ERROR | eam-0 | AgencyImpl.java | 1895 | Failed to load agent: ManagedObjectReference: type = Agent, value = ########-####-####-####-########46fa, serverGuid = ########-####-####-####-########a719. Error: null java.lang.NullPointerException
EAM MOB Fails to Load “Host not covered by scope anymore”
| ERROR | eam-0 | VcListener.java | 116 | An unexpected error in the changes polling loop
| ERROR | eam-0 | AgencyImpl.java | 1895 | Failed to load agent: ManagedObjectReference: type = Agent, value = ########-####-####-####-########2e9a, serverGuid = ########-####-####-####-########a719. Error: Host not covered by scope anymore
This issue is resolved in VMware vCenter Server 6.5, available at Broadcom Downloads.
Note: Otherwise, database maintenance is required
Workaround:
To work around this issue: