VMware Cloud Community
rmav01
Enthusiast
Enthusiast
Jump to solution

Bulk Import Fails -- Error processing [RegisterVM]. The machine cannot be found.

Hello all,

I am currently migrating a series of machines into a newly created vRealize Automation 7.6 environment, and am seeing the following error on the vSphere agent logs when attempting to bulk import a particular device:

Error processing [RegisterVM], error details:

System.NullReferenceException: The machine 'vm01' cannot be found.

   at DynamicOps.Vrm.Agent.vSphere.VSphereRegisterMachineRequest.RegisterVirtualMachine()

   at DynamicOps.Vrm.Agent.vSphere.VSphereHypervisorServiceProvider.RegisterMachine(VSphereVirtualMachine machine)

   at DynamicOps.Vrm.Agent.BaseHypervisorAgent`3.RegisterMachine(WorkItem workItem, PropertyBagHelper propertyBagHelper)

   at DynamicOps.Vrm.Agent.BaseHypervisorAgent`3.ProcessWorkitem(WorkItem workItem, String task, PropertyBagHelper propertyBag)

   at DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.ProcessWorkitem(WorkItem workItem, String task, PropertyBagHelper propertyBag)

   at DynamicOps.Vrm.Agent.BaseAgent.ProcessWorkitem(WorkItem workItem)

The odd part about this is that in my bulk import list, this particular machine has a partner node that is on the same vLAN, host, storage, etc., just with a different IP address. The partner imported with no problem, along with the handful of other machines that I imported with the same blueprint.The blueprint itself is generic and one component in length. Event broker is turned off and I'm able to see this particular machine when generating an export of unmanaged machines for this particular endpoint. After the bulk import processes, the job returns as 'completed.' Its in the monitoring logs that I see the error above and the Audit logs that I see it die during the Register Virtual Machine phase.

Has anyone run into this before? I've checked that there is no allocation conflicts from the [vra].[dbo].[StaticIPvAddress] table. I can ping/nslookup the target just fine from the agent machine, and I can logon and see the box with the service account we are leveraging with the agent.

1 Solution

Accepted Solutions
rmav01
Enthusiast
Enthusiast
Jump to solution

Ended up talking to GSS, and after exhausting all avenues listed below it was suggested to remove the machine in the target vCenter's inventory and then re-add it. This ended up fixing our problem and allowed us to import the device into vRA. Far from ideal that we had to power off the machine as part of the un-manage action to get this go in, but maybe this information will help someone else in the future.

View solution in original post

1 Reply
rmav01
Enthusiast
Enthusiast
Jump to solution

Ended up talking to GSS, and after exhausting all avenues listed below it was suggested to remove the machine in the target vCenter's inventory and then re-add it. This ended up fixing our problem and allowed us to import the device into vRA. Far from ideal that we had to power off the machine as part of the un-manage action to get this go in, but maybe this information will help someone else in the future.