Skip to main content
NetApp Knowledge Base

SCV Fails to add SVM (API Invoke Failed)

Views:
2,028
Visibility:
Public
Votes:
1
Category:
snapcenter
Specialty:
snapx
Last Updated:

Applies to

  • SnapCenter Plug-in for VMware vSphere(SCV) 4.4 and later 
  • ONTAP 9

Issue

  • SCV fails to add/update storage system due to an error like the following example.

Example:

Failed to add/update storage system information: Failed to connect to storage system 192.xxx.xxx.xxx.\nAPI invoke failed.. Connection refused

SCV Fails to add SVM
  • ProtectionService.log shows lines like the following example.

Example: 

2023-09-15 07:17:53.320 +10:00 [DBG] [Storage] [TID:123] [RID:0HMN25N3IVS52:00000002] [CID:] [JID:-1] Command starts: Invoke-NcEmsAutosupportLog - -StorageSystem vsavirt01.aus.aunty.abc.net.au -AppVersion 4.7 -EventSource SnapCenter VMware OVA Software -Category Error -ComputerName NUCPSTOSVC01.aus.aunty.abc.net.au -EventDescription Unable to discover resources on SCV: Unable to get storage details for datastore NMIVIRT01_T2_01 with managed object reference datastore-4263529. Storage system(s) may need to be added, also ensure that the associated host is in a connected state. -EventId 1002 -LogLevel 3 -AutoSupport False
 

2020-08-13 15:48:23.592 -05:00 [DBG] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] Connecting to example.mgmt.netapp.com via HTTPS
2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] API invoke failed. at NetApp.DataProtection.Storage.CommandAPI.ConnectNcController.ConnectHTTP(IController filer, DataProtectionCredential credentials)
at NetApp.DataProtection.Storage.CommandAPI.ConnectNcController.Connect(String name)
2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] Failed to run a command NetApp.DataProtection.Storage.CommandAPI.ConnectNcController, Exception:API invoke failed.
API invoke failed.
2020-08-13 15:48:23.592 -05:00 [DBG] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] ex.InnerException.InnerException.Message : Connection refused Connection refused
2020-08-13 15:48:23.592 -05:00 [INF] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] End InitializeONTAP
2020-08-13 15:48:23.592 -05:00 [DBG] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] InitializeONTAP() throw exception: Connection refused
2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] Failed to connect to the storage system example.mgmt.netapp.com
Please check the storage system name, IP address, or the specified credentials and the network connectivity., Exception:System.Exception: Connection refusedat SnapDrive.Nsf.Core.Storage.StorageConnection.Initialize(SDStorageSystemId storageSystemId)
2020-08-13 15:48:23.592 -05:00 [INF] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] End Initialize
2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b5048baa] [CorrId:] [JobId:0] Failed to connect to storage system example.mgmt.netapp.com.
Connection refused
 
  • Job_###.log 

2023-09-15 11:17:48.206 +10:00 [ERR] API invoke failed. at NetApp.DataProtection.Storage.CommandAPI.ConnectNcController.ConnectHTTP(IController filer, DataProtectionCredential credentials) at NetApp.DataProtection.Storage.CommandAPI.ConnectNcController.Connect(String name) 
2023-09-15 11:17:48.206 +10:00 [ERR] Failed to run a command NetApp.DataProtection.Storage.CommandAPI.ConnectNcController, Exception:API invoke failed. 
2023-09-15 11:17:48.208 +10:00 [ERR] Failed to get resource from the resource pool, Exception:System.NullReferenceException: Object reference not set to an instance of an object. at SnapDrive.Nsf.Common.Infrastructure.Storage.ResourcePool`2.GetResource(I identity)

 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.