#qos workload detail volume

1 messages · Page 1 of 1 (latest)

ripe fox
#

@timber pebble workload detail volume is only collected for volumes with workload-class autovolume. Could you share output of below command
bin/zapi -p POLLERNAME show data --api qos-workload-get-iter

timber pebble
#

Hi @ripe fox do you know how I can do this inside the NABox? 🙂

ripe fox
#

Can you try ssh to nabox machine with root user and run below
docker run --entrypoint "bin/zapi" --volume /opt/harvest2-conf/harvest.yml:/opt/harvest/harvest.yml rahulguptajss/harvest -p POLLERNAME show data --api qos-workload-get-iter

timber pebble
#

thank for you answer. I receive the error docker: Error response from daemon: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: exec: "bin/zapi": stat bin/zapi: no such file or directory: unknown.
ERRO[0000] error waiting for container: context canceled

ripe fox
#

hmm let's try different image cr.netapp.io/harvest:latest. How about below?
docker run --entrypoint "bin/zapi" --volume /opt/harvest2-conf/harvest.yml:/opt/harvest/harvest.yml cr.netapp.io/harvest:latest -p POLLERNAME show data --api qos-workload-get-iter

timber pebble
#

hmm still the same

ripe fox
#

Ok. We can try Rest API way. Could you let me know the ONTAP version?

timber pebble
#

sure currently it is ONTAP 9.9.1 P6

ripe fox
#

Okay, Let's check the output of below URL. You'll need to pass user:pass for the poller
https://IP_ADDRESS/api/private/cli/qos/workload?fields=class,vserver,volume,lun,qtree,wid,workload&class=autovolume

timber pebble
#

with curl I only see 8 records and only the root volumes

#

"records": [
{
"workload": "<volume>_root-wid27591",
"class": "autovolume",
"wid": 27591,
"vserver": "<vserver>",
"volume": "<volume>_root"
},
{
"workload": "<volume>_root-wid10923",
"class": "autovolume",
"wid": 10923,
"vserver": "<vserver>",
"volume": "<volume>_root"
}
],
"num_records": 8

ripe fox
#

that is the reason you see root volumes only. What other workload-classes you want to collect?

timber pebble
#

ahhh I see. our Volumes would be user-defined class

ripe fox
#

okay that would need a code change. Could you open a github issue for this. Thanks.

timber pebble
#

yes sure 🙂 Are we the only one which are requesting for that?

ripe fox
#

so far yes 🙂

timber pebble
#

sorry for that 😇