Restoring a VM to the original location fails with "VM not found"
Applies to
SnapCenter Plug-in for VMware vSphere (SCV)Issue
- SCV restore job for VM to its original location fails with error:
Error: Exception while calling restore on SCV: Error occured while calling SCV: Server Error
- vCenter task of SCV restore job gets stuck at 50%
vmcontrol_<JobID>.log
reportsVM not found
c.n.a.r.AbstractRestoreStrategy : Registering the VM
...
c.n.a.v.VsphereService : [JobId:<JobID>] Connecting to vSphere with session XXXXXXXX
c.n.a.v.VsphereInventoryService : vm is null; checking to see if it is a template:
c.n.a.v.VsphereInventoryService : Searching all virtual machine managed entities
c.n.a.v.VsphereInventoryService : [JobId:<JobID>] VM not found, setting as null
vpxd.log
on vCenter reports error from ESXi host :
info vpxd[XXXXX] [Originator@XXXX sub=vpxLro opID=XXXXXXXX] [VpxLRO] -- BEGIN task-XXXX -- group-vXXXX -- vim.Folder.registerVm -- XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
info vpxd[XXXXX] [Originator@XXXX sub=VdbOpJournal opID=XXXXXXXX] Added new journal id=XXX type=1
info vpxd[XXXXX] [Originator@XXXX sub=vpxLro opID=XXXXXXXX-01] [VpxLRO] -- BEGIN lro-XXXXXXXX -- group-vXXXX -- vim.Folder.registerVm -- XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX(XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
warning vpxd[XXXXX] [Originator@XXXX sub=AuthorizeManager opID=XXXXXXXX] Privilege check for entity datacenter-XXXX, privilege System.Read made on null session. Backtrace N7Vmacore9ExceptionE(Privilege check in null session)
--> [context]XXXXXXXXXXX[/context]
info vpxd[XXXXX] [Originator@XXXX sub=Invt opID=XXXXXXXX-01-XXXXXXXX] Started call to update entity state moId on host; [vim.HostSystem:host-XXXX,<HOST_NAME>], store: (vm, 60), v: XXXXXXXX:vm-XXXX:XXXXXXXX, callId: 5
warning vpxd[XXXXX] [Originator@XXXX sub=vmmoVm opID=XXXXXXXX-01-XXXXXXXX] Setting VM [vim.VirtualMachine:vm-XXXX,<VM_NAME>] numCpu to default 1
warning vpxd[XXXXX] [Originator@XXXX sub=vmmoVm opID=XXXXXXXX-01-XXXXXXXX] Setting VM [vim.VirtualMachine:vm-XXXX,<VM_NAME> memory size to default 32MB
warning vpxd[XXXXX] [Originator@XXXX sub=vmomi.soapStub[XX] opID=TaskLoop-host-XXXX] SOAP request returned HTTP failure; <<io_obj p:0x00007fcedd02b5c8, h:35, <UNIX ''>, <UNIX '/var/run/envoy-hgw/hgw-pipe'>>, /hgw/host-XXXX/vpxa>, method: waitForUpdates; code: 500(Internal Server Error)
error vpxd[XXXXX] [Originator@XXXX sub=Invt opID=XXXXXXXX-01] Failed to update entity state moId on host; [vim.HostSystem:host-XXXX,<HOST_NAME>], store: (vm, 60), v: XXXXXXXX:vm-XXXX:XXXXXXXX, e: XXXXXXXX(Fault cause: vim.fault.InvalidState
--> )
--> [context]XXXXXXXXXXX[/context]