Closed LH8PPL closed 2 years ago
hi @LH8PPL cluster-identity-get
happens early in the lifecycle and is a strange zapi to fail. Let's make sure we don't have some auth or network problem first.
Can you try running this from a different machine?
./bin/zapi --poller netappdev show data --api cluster-identity-get
i cant run it on any other machine. but after i talked to the storage guys and changed the ip i got this:
7:49AM INF command-line-arguments/poller.go:153 > log level used: info Poller=netappdev
7:49AM INF command-line-arguments/poller.go:154 > options config: /opt/harvest.yml Poller=netappdev
7:49AM INF command-line-arguments/poller.go:179 > started in foreground [pid=1] Poller=netappdev
7:49AM WRN command-line-arguments/poller.go:532 > init collector-object (Zapi:Node): connection error => api request rejected => Insufficient privileges: user 'domain1\user1' does not have read access to this resource Poller=netappdev
7:49AM WRN command-line-arguments/poller.go:534 > aborting collector (Zapi) Poller=netappdev
7:49AM WRN command-line-arguments/poller.go:532 > init collector-object (ZapiPerf:SystemNode): connection error => api request rejected => Insufficient privileges: user 'domain1\user1' does not have read access to this resource Poller=netappdev
7:49AM WRN command-line-arguments/poller.go:534 > aborting collector (ZapiPerf) Poller=netappdev
7:49AM WRN command-line-arguments/poller.go:257 > no collectors initialized, stopping Poller=netappdev
7:49AM INF command-line-arguments/poller.go:421 > cleaning up and stopping [pid=1] Poller=netappdev
this are the permissions they gave me:
API ACCESS LEVEL
/api/cluster Read-Only
/api/name-services/dns Read-Only
/api/name-services/ldap Read-Only
/api/name-services/name-mappings Read-Only
/api/name-services/nis Read-Only
/api/name-services/nsswitch Read-Only
/api/network/fc/interfaces Read-Only
/api/network/fc/logins Read-Only
/api/network/fc/wwpn-aliases Read-Only
/api/network/http-proxy Read-Only
/api/network/ip/interfaces Read-Only
/api/network/ip/service-policies Read-Only
/api/protocols/audit Read-Only
/api/protocols/cifs/home-directory/search-paths Read-Only
/api/protocols/cifs/services Read-Only
/api/protocols/cifs/shares Read-Only
/api/protocols/cifs/unix-symlink-mapping Read-Only
/api/protocols/file-security/effective-permissions Read-Only
/api/protocols/fpolicy Read-Only
/api/protocols/nfs/connected-clients Read-Only
/api/protocols/nfs/export-policies Read-Only
/api/protocols/nfs/kerberos/interfaces Read-Only
/api/protocols/nfs/kerberos/realms Read-Only
/api/protocols/nfs/services Read-Only
/api/protocols/nvme/interfaces Read-Only
/api/protocols/nvme/services Read-Only
/api/protocols/nvme/subsystem-controllers Read-Only
/api/protocols/nvme/subsystem-maps Read-Only
/api/protocols/nvme/subsystems Read-Only
/api/protocols/san/fcp/services Read-Only
/api/protocols/san/igroups Read-Only
/api/protocols/san/iscsi/credentials Read-Only
/api/protocols/san/iscsi/services Read-Only
/api/protocols/san/iscsi/sessions Read-Only
/api/protocols/san/lun-maps Read-Only
/api/protocols/vscan Read-Only
/api/protocols/vscan/server-status Read-Only
/api/security/accounts Read-Only
/api/security/authentication/password Read/Write
/api/security/authentication/publickeys Read/Write
/api/security/azure-key-vaults Read-Only
/api/security/certificates Read-Only
/api/security/gcp-kms Read-Only
/api/security/ipsec Read-Only
/api/security/ipsec/policies Read-Only
/api/security/ipsec/security-associations Read-Only
/api/security/key-managers Read-Only
/api/security/login/messages Read-Only
/api/security/roles None
/api/storage/file/clone Read-Only
/api/storage/flexcache/flexcaches Read-Only
/api/storage/flexcache/origins Read-Only
/api/storage/luns Read-Only
/api/storage/namespaces Read-Only
/api/storage/qtrees Read-Only
/api/storage/quota/reports Read-Only
/api/storage/quota/rules Read-Only
/api/storage/snapshot-policies Read-Only
/api/storage/volumes Read-Only
/api/svm/peer-permissions Read-Only
/api/svm/peers Read-Only
/api/svm/svms Read-Only
/api/svms Read-Only
hi @LH8PPL - those permissions look like REST permissions and may not match the permissions Harvest needs since Harvest is sending ZAPIs. Can you take a look at this page on permissions and check that you have necessary access?
Hi, thanks for the replies. This is what our storage guys sent me, they say this are the permissions they gave me through the CLI:
DEFAULT none
df readonly
lun readonly
network interface readonly
network interface failover-groups none
security certificate readonly
security certificate file none
security ipsec config show readonly
security ipsec policy all
security ipsec show-ikesa readonly
security ipsec show-ipsecsa readonly
security key-manager external readonly
security key-manager key query all
security key-manager show-key-store readonly
security key-manager volume-encryption-supported readonly
security login banner readonly
security login motd readonly
security login password all
security login publickey all
security login role show-ontapi all
security login role show-user-capability all
security ssh readonly
security ssl readonly
set all
statistics readonly
statistics cache none
statistics catalog readonly
statistics lif none
statistics lun none
statistics samples none
statistics show-periodic none
statistics start none
statistics stop none
statistics volume none
timezone all
version all
volume readonly
volume check none
volume constituent none
volume efficiency none
volume move none
vserver readonly
vserver http-proxy readonly
vserver nvme readonly
vserver services name-service unix-group max-limit none
vserver services name-service unix-user max-limit none
vserver services web none
Hi @LH8PPL - that list won't work with Harvest. The set of permissions needed are listed here.
If you compare that list with what you pasted about, there are some important ones missing:
@LH8PPL you are all set with the connection of your cluster?
All set on this one, closing
Describe the bug K8S Deployment connecting to NetApp getting the following: 9:39AM INF command-line-arguments/poller.go:153 > log level used: info Poller=netappdev 9:39AM INF command-line-arguments/poller.go:154 > options config: /opt/harvest.yml Poller=netappdev 9:39AM INF command-line-arguments/poller.go:179 > started in foreground [pid=1] Poller=netappdev 9:39AM WRN command-line-arguments/poller.go:532 > init collector-object (Zapi:Node): connection error => api request rejected => Unable to find API: cluster-identity-get Poller=netappdev 9:39AM WRN command-line-arguments/poller.go:534 > aborting collector (Zapi) Poller=netappdev 9:39AM WRN command-line-arguments/poller.go:532 > init collector-object (ZapiPerf:SystemNode): connection error => api request rejected => Unable to find API: cluster-identity-get Poller=netappdev 9:39AM WRN command-line-arguments/poller.go:534 > aborting collector (ZapiPerf) Poller=netappdev 9:39AM WRN command-line-arguments/poller.go:257 > no collectors initialized, stopping Poller=netappdev 9:39AM INF command-line-arguments/poller.go:421 > cleaning up and stopping [pid=1] Poller=netappdev
Environment
To Reproduce Steps to reproduce the behavior:
Expected behavior It should connect to my Netapp storage
Actual behavior got errors: init collector-object (Zapi:Node): connection error => api request rejected => Unable to find API: cluster-identity-get Poller=netappdev
Possible solution, workaround, fix No workaround or fix that i know
Additional context deployment.yaml: