#Harvest 23.11 - Node Power is missing

1 messages · Page 1 of 1 (latest)

vale wasp
#

Hi all, I‘ve just saw that since we upgraded to the new harvest 23.11 version, the power consumption of the nodes is missing. I checked the documentation page regarding to the permissions and from my point of view it looks fine. We have a local user called nabox with the default readonly role. Ontapi and http are also defined.

After the downgrade the data is back

regal birch
vale wasp
#

Hi @regal birch mail is send

regal birch
#

I also don't see any relevant errors in logs.

vale wasp
#

hmm interesting. Let me check another environment

vale wasp
#

but what this looks wired, after upgrading there are no more metrics in the dashboard for an A250

regal birch
#

Okay is this some other environment? From email screenshot, I do see node power reported. If yes, can you share logs from this environment

vale wasp
#

log is on the way

regal birch
#

Received

#

I see the error. You need to provide Rest permissions for the relevant user for these clusters.

#

2024-01-03T08:17:20Z ERR collector/collector.go:633 > init plugin [Sensor]: error="StatusCode: 401, Error: auth failed, Message: 401 Unauthorized, API: /api/cluster?fields=%2A&return_records=true" Poller=xxxxx collector=Zapi:Sensor stack="goroutine 1 [running]:\ngithub.com/netapp/harvest/v2/pkg/logging.MarshalStack({0xc2c840?,

vale wasp
#

strage. the user which we use have the readonly role, which have access to rest

regal birch
#

okay. Can you try running below for that cluster? Replace USER,PASS,CLUSTER_IP as applicable.

curl -s -k -u USER:PASS 'https://CLUSTER_IP/api/cluster?return_records=true&fields=*'
vale wasp
#

that worked. Ok found the issue, after enabling REST I need to restart the poller in the NABox 🙂

regal birch
#

Great! Power Collector failed during startup, hence, even after granting permissions, it didn't retry. It makes sense that a restart was needed.

vale wasp
#

yes I can confrim after addind the http application and restarting the nabox or poller it works again, thank you for your help 🌻

regal birch
dapper swift
#

the same problem with harvest 24.05.1. REST is enabled, checked that with:
vserver services web access show -role harvest2-role -name ontapi
vserver services web access show -role harvest2-role -name rest
vserver services web access show -role harvest2-role -name docs-api

did anyone see the node power in nabox 4.0.0?

regal birch
dapper swift
regal birch
#

Received

limpid wraith
#

Isn't it a known issue for the A250?

Harvest does not calculate power metrics for AFF A250 systems. This data is not available from ONTAP via ZAPI or REST. See ONTAP bug 1511476 for more details

dapper swift
#

my test system is a A300 and no one of my AFF systems show the node power. @limpid wraith , did you see node power in nabox 4 with harvest 24.05.1?

regal birch
#

For me, I am getting power metrics for AFF300. @dapper swift We'll know more from logs.

dapper swift
regal birch
#

Thanks Received

#

@dapper swift Based on harvest logs, this is a REST permission issue. There are a few endpoints which are succeeding while others are failing. We updated the documentation for REST permissions some time back, which is available at https://netapp.github.io/harvest/24.05/prepare-cdot-clusters/#create-rest-role. Could you recreate the REST role as mentioned in the document, restart Harvest, and check if it is working?

dapper swift
#

@regal birch , thank you so much for your support - works now!

                                                             Second

User/Group Authentication Acct Authentication
Name Application Method Role Name Locked Method


harvest2 http password harvest2-rest-role no none
harvest2 ontapi password harvest2-role no none