SCV backup fails Discovering Resources due to name resolution issue
Applies to
SnapCenter Plug-in for VMware vSphere (SCV)
Issue
- SCV backup job fails to discover resources with error:
The backup job <JOB_ID> has completed on primary
Status: failed
Task failures
Task 'Discovering Resources' failed with error: Unable to discover resources on SCV: Failed to get the storage system for host resource : Name : /<NFS_VOLUME>, Type: SDNASDir
- The following notificaton is sent,
Unable to discover resources on SCV: Unable to get storage details for datastore <datastore> with managed object reference datastore-XXXX. Storage system(s) may need to be added, also ensure that the associated host is in a connected state.,
wfe_<JOB_ID>.logindicatesUnable to discover resources on SCV: Failed to get the storage system for host resource
INFO snapcenter --- [ Thread-3] c.n.w.m.WorkflowExecutor : Activity - Discovering Resources, Starting
DEBUG snapcenter --- [ Thread-3] c.n.w.u.LogHelper : Starting discover resources activity
DEBUG snapcenter --- [ Thread-3] c.n.w.r.SCVBackupServiceImpl : Discovering resources on SCV
DEBUG snapcenter --- [ Thread-3] c.n.w.r.u.RestClientUtil : Connecting to scv url: https://localhost:8144/scbr/smcoreplugin/discoverResources
ERROR snapcenter --- [ Thread-3] c.n.w.r.SCVBackupServiceImpl : Unable to discover resources on SCV: Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
DEBUG snapcenter --- [ Thread-3] c.n.w.u.LogHelper : Exception in discover resources com.netapp.wfe.model.ApiException: Unable to discover resources on SCV: Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
vmcontrol_<JOB_ID>.logindicatesFailed to get the storage system for host resourceby using NFS LIF IP
DEBUG snapcenter --- [tp1825027294-18] c.n.a.d.VsphereDiscoveryManager : Datastore type is NFS
DEBUG snapcenter --- [tp1825027294-18] c.n.a.m.DatastoreStorageDetailsCache : Calling GetNasStorageInfo with NFS LIF <IP> and exportPath <NFS_VOLUME>
..
ERROR snapcenter --- [tp1825027294-18] c.n.a.s.c.SnapManagerStorageServiceImpl : Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
ERROR snapcenter --- [tp1825027294-18] c.n.a.m.DatastoreStorageDetailsCache : Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
ERROR snapcenter --- [tp1825027294-18] c.n.a.s.p.DiscoverResourcesManager : [JobId:<JOB_ID>] com.netapp.nvpf.api.model.ApiException: Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
ERROR snapcenter --- [tp1825027294-18] c.n.a.s.p.DiscoverResourcesManager : Encountered error while processing discover resources. Error: Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
com.netapp.nvpf.api.model.ApiException: Failed to get the storage system for host resource : Name : <NFS_VOLUME>, Type: SDNASDir
ProtectionService-<YYYYMMDD>.logreports error:Failed to run a command NetApp.DataProtection.Storage.CommandAPI.ConnectNcController, Exception:System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, Nullable`1 startingTimestamp)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress, AddressFamily family)
at NetApp.Ontapi.NaServer..ctor(String name, String uri, Int32 port)
at NetApp.DataProtection.Storage.CommandAPI.ConnectNcController.Connect(String name)
at SnapDrive.Nsf.Core.Storage.StorageConnection.InitializeONTAP(SDStorageSystemId storageSystemId)- At a time different from backup job,
ProtectionService.logreports error:
[WRN] [Storage] [TID:11] [RID:] [CID:] [JID:-1] Failed to resolve <IP_ADDRESS> byHostEntry, Exception:System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name or service not known
at System.Net.Dns.InternalGetHostByAddress(IPAddress address)
at System.Net.Dns.GetHostEntry(String hostNameOrAddress)
at SnapDrive.Nsf.Common.Infrastructure.Storage.NetworkResourceIdCache.ResolveWithDns(String hostName)- At a time different from backup job,
