#Unable to add ONTAP Cluster - 4.0.1
1 messages · Page 1 of 1 (latest)
hi @stoic ivy is this the link you used to added permissions? https://netapp.github.io/harvest/nightly/prepare-cdot-clusters/#least-privilege-approach
If so, can you share your Harvest logs? The logs will tell us what the issue is.
By chance are you falarcon10 from GitHub?
What is your ONTAP version ? Please collect a support bundle and send it to help@NAbox.org
The link helped with troubleshooting, thanks for that! Adding a cluster has now worked. However, I find the documentation (especially on nabox.org) somewhat misleading, or maybe I don't fully understand the permissions concept.
I currently don't have access to the systems, but I will send an update tomorrow.
Thanks a lot for now!
@autumn zephyr I'm not falarcon10, sorry 🙂
glad you made some progress! No worries, we got a similar question on GitHub and I was trying to understand if they were the same. Thanks
Let me know how I can improve the documentation !
Okay, although I don't have any logs, I'll try to explain our approach.
If I understand the documentation correctly, the connection should work if there is a user with "-application http" and an RO role with "-api /api".
However, this resulted in the error 'empty cluster name'.
After we added "-application ontapi" to the user, it worked. The role wasn't changed.
Does Harvest gather data either via ONTAPI or REST, or are both methods used and there needs to be a corresponding user?
I don’t think everything is available through REST. What is the exact ONTAP version indicated by “version” ?
It's 9.12.1P7
Ok. The error seems to indicate that version couldn’t be fetched using rest and fell back to Zapi which failed again.
How Harvest handles REST and ZAPI is documented here https://netapp.github.io/harvest/nightly/architecture/rest-strategy/#how-does-harvest-decide-whether-to-use-rest-or-zapi-apis
"empty cluster name" is an nabox error that happened when trying to add a new cluster via the UI. As Yann, mentioned nabox attempts to use REST to gather the cluster's name first and if that fails, attempts to use ZAPI.
Sounds like in your case, the initial REST request failed and then ZAPI failed. ZAPI failing was expected in your case, but what is not understood is why REST failed. @sweet crag is anything logged when the REST call fails the first time?
Harvest does not require ZAPI
What has been changed to make it work ? It seems maybe even rest didn’t have privileges ?
I’m providing a build with details logged soon
Ok I believe this is fixed in https://dl.nabox.org/nabox/NAbox-4.0.1-zapi-fix.nbx
I managed to add 4 clusters, but the 5th failed with " strcov.Atoi: parsing "" : invalid syntax "... ontap 9.14.1. have created harvest2 role and user (both ontapi and restapi)... does this fix apply to 4.0.1 ?
What is the exact version string for this cluster ?
it's the GA so : NetApp Release 9.14.1: Wed Jan 24 02
30 UTC 2024
The others that worked are 9.14.1P5
Ok I see what’s going on
Just tested with another cluster... also running the same release and I get the same result... I'm looking for a cluster with another release so make sure it's the version that is causing it..
...yep managed to add a cluster with release 9.13.1P4
Thanks I will check it out soon
It’s in 4.0.2 which has been released
Upgrading to 4.0.2 fixed the import of 9.14.1 systems... 🙂
I don't got time yet to try the fix but hopefully tomorrow. Is the fix also in the 4.0.2. release or should I test the linked version?
4.0.2 has it