I was wondering if anyone could offer advice on what could be causing this 401 error I'm getting when trying to authenticate with the Ontapi .
This is the error message:
Failed to create backend: problem initializing storage driver ‘ontap-nas’: error initializing ontap-nas driver: could not create Data ONTAP API client: error creating ONTAP API client: error reading SVM details: response code 401 (Unauthorized): incorrect or missing credentials :
Logs from the CLI:
------------------------ --------------- -------------- -------------- -------
Tue Aug 29 16:15:45 2023 server123 vsadmin 10.21.132.8 Error
Input : Login Attempt
Message: Authentication failed.
Tue Aug 29 16:15:45 2023 server123 vsadmin 10.21.132.8 Error
Input : POST /servlets/netapp.servlets.admin.XMLrequest_filer HTTP/1.1
Message: 401 Unauthorized
- The credentials are definitely correct
- The account is not locked
- The machine connecting to ONTAP is in the correct IP range stated in the export policy
- The network interface service-policy has management-https and management-ssh included (added this from a support guide)
- We are initiating the connection from Trident
- The storage driver is ontap-nas
I appreciate a 401 error is a bit vague, please let me know if I can clarify anything.