SCV restore task is stuck due to "Unable to unregister VM"
Applies to
SnapCenter Plug-in for VMware vSphere (SCV) 4.3
Issue
- SCV restore task is stuck at 25% in the Recent Tasks pane of vSphere Client.
- The cancel icon of the task is grayed out.
- The following messages are reported in
vmcontrol.log
.
Example:
2020-12-03 06:54:02.133 DEBUG scvhost --- [qtp250075633-16] c.n.a.v.VsphereService : [JobId:1240] Connecting to vSphere with session 8091f89692fd163d95d948c6e8f7f7a4ec20229d
2020-12-03 06:54:02.147 DEBUG scvhost --- [qtp250075633-16] c.n.a.v.VirtualMachineService : [JobId:1240] Unregistering VM <VM NAME>
2020-12-03 06:54:02.265 WARN scvhost --- [qtp250075633-16] c.n.a.v.VirtualMachineService : [JobId:1240] Invalid Power State Exception in unregistering vm:null
2020-12-03 06:54:02.265 ERROR scvhost --- [qtp250075633-16] c.n.a.r.AbstractRestoreStrategy : Unable to unregister VM: <VM NAME>
2020-12-03 06:54:02.265 DEBUG scvhost --- [qtp250075633-16] c.n.a.v.VsphereTaskUtil : Retrieving task with moref Task:task-14655
2020-12-03 06:54:02.265 DEBUG scvhost --- [qtp250075633-16] c.n.a.v.VsphereService : [JobId:1240] Connecting to vSphere with session 8091f89692fd163d95d948c6e8f7f7a4ec20229d
2020-12-03 06:54:02.279 ERROR scvhost --- [qtp250075633-16] c.n.a.s.p.RestoreWorkflowManager : [JobId:1240] Unable to unregister VM: <VM NAME>