SCV Fails to add SVM (API Invoke Failed)
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

ProtectionService.logshows lines like the following example.
Example:
Command starts: Invoke-NcEmsAutosupportLog - -StorageSystem <SVM> -AppVersion 4.7 -EventSource SnapCenter VMware OVA Software -Category Error -ComputerName <COMPUTERNAME> -EventDescription Unable to discover resources on SCV: Unable to get storage details for datastore <DATASTORE> with managed object reference <DATASTORE>. 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-6813b504affe] [CorrId:] [JobId:0] Connecting to <SVM or CLUSTER> via HTTPS2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b504affe] [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-6813b504affe] [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-6813b504affe] [CorrId:] [JobId:0] ex.InnerException.InnerException.Message : Connection refused Connection refused2020-08-13 15:48:23.592 -05:00 [INF] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b504affe] [CorrId:] [JobId:0] End InitializeONTAP2020-08-13 15:48:23.592 -05:00 [DBG] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b504affe] [CorrId:] [JobId:0] InitializeONTAP() throw exception: Connection refused2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b504affe] [CorrId:] [JobId:0] Failed to connect to the storage system example.mgmt.netapp.comPlease 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-6813b504affe] [CorrId:] [JobId:0] End Initialize2020-08-13 15:48:23.592 -05:00 [ERR] [ServiceName:Storage] [RequestId:ac1052aa-836b-4485-8c32-6813b504affe] [CorrId:] [JobId:0] Failed to connect to storage system <SVM or CLUSTER>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)
