NDB or SCV backups failing with "getMo was passed a null pointer for ServiceInstance"
Applies to
- SnapCenter Plug-in for VMware vSphere (SCV)
- vCenter Server Appliance (vCSA)
Issue
- Backup fails with error:
"Unable to discover resources on SCV: getMo was passed a null pointer for ServiceInstance".
Example:
vmcontrol.log
shows that the vSphere session is reported aNULL.
Example:
DEBUG <HOST> --- [p250075633-6234] c.n.a.v.VsphereService : [JobId:<JOB_ID>] NVPF vSphere session is NULL, can't get vSphere service instance using null session!
DEBUG <HOST> --- [p250075633-6234] c.n.a.v.VsphereInventoryService : Enter getMo with Datastore:<DATASTORE>
DEBUG <HOST> --- [p250075633-6234] c.n.a.v.VsphereInventoryService : getMo was passed a null pointer for ServiceInstance.
ERROR <HOST> --- [p250075633-6234] c.n.a.s.p.DiscoverResourcesManager : [JobId:<JOB_ID>] com.netapp.nvpf.api.model.ApiException: getMo was passed a null pointer for ServiceInstance.
DEBUG <HOST> --- [p250075633-6234] c.n.a.m.DatastoreStorageDetailsCache : JobId + <JOB_ID> count reduced to 0, removing from cache
DEBUG <HOST> --- [p250075633-6234] c.n.a.s.p.DiscoverResourcesManager : <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SmDiscoverResourcesResponse>
<Result>
<_message>getMo was passed a null pointer for ServiceInstance.</_message>
<_errorCode>-1</_errorCode>
</Result>
<TotalCount>0</TotalCount>
<DisplayCount>0</DisplayCount>
</SmDiscoverResourcesResponse>