#"no instances, entering standby Poller=aces collector=Zapi:SnapMirror task=data""

1 messages · Page 1 of 1 (latest)

violet radish
#

Can't figure this one out. (What else is new?) My passwords are good, and the curl test gets the version, so it isn't the password or the account.

#

"no instances, entering standby Poller=aces collector=Zapi:SnapMirror task=data""

haughty kite
#

hi @violet radish can you screenshot the actual log line or send the log files to ng-harvest-files@netapp.com

no instances typically means there are not instances of that object on the cluster. In this case, no SnapMirrors. It should be an INFO message and not an error for that reason

#

does the cluster in question have SnapMirrors configured on it?

violet radish
#

I have lots if snapmirrors, both volume and SVM

#

This is not the destination

#

They just rebooted my box, I can't see what the destination is saying, that is a positive message, but I still don't see any SMs. I'll get it in a few

haughty kite
#

looking at the log files you shared earlier, I see the same in those logs.
INF collector/collector.go:342 > no instances, entering standby Poller=aces collector=Zapi:SnapMirror task=data - that Zapi is returning nada. Let me find the right curl for you

#

try this, replacing user,pass, and $ip
curl --user user:pass -snk 'https://$ip/api/private/cli/snapmirror'

violet radish
#

Getting a user is not authorized on both source and destination

haughty kite
#

do you get similar with the following? Same as before, replace user, pass, and ip with your values
curl --user user:pass -snk --data-ascii '<?xml version="1.0" encoding="UTF-8"?> <netapp xmlns="http://www.netapp.com/filer/admin" version="1.30"> <snapmirror-get-iter/> </netapp>' -H "Content-Type: text/xml" -X POST 'https://$ip/servlets/netapp.servlets.admin.XMLrequest_filer'

violet radish
#

Should I assume the curl command is trying to get to netapp.com? I live in a dark site

haughty kite
#

no, the curl command is talking to your ontap cluster. Make sure you replace $ip with your cluster admin ip, same as what you specifiy in your harvest.yml file

violet radish
#

I think I typed it erroneously, no output; let me try again

haughty kite
#

sorry, that's rough to type out. Was hoping your could copy/paste
i tried locally and it also works without the XML namespace so you can use this too
curl --user user:pass -snk --data-ascii '<?xml version="1.0" encoding="UTF-8"?> <netapp version="1.30"> <snapmirror-get-iter/> </netapp>' -H "Content-Type: text/xml" -X POST 'https://$ip/servlets/netapp.servlets.admin.XMLrequest_filer'

violet radish
#

I think I finally got it correct: here is what it said on the SM source:

#

<?xml version'='1.0' encoding='UTF-8' ?>

#

<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_gx.dtd'>

#

<results status="passed"><num-records>0</num-records></results></netapp>

haughty kite
#

thanks. that matches the log message we started this conversation with. <num-records>0</num-records> means there are no instances

violet radish
#

Should I try on the destination?

haughty kite
#

the log message you pasted at the top is about talking to cluster aces. Is that the cluster you used in the curl commands above? If so, no need to look further. The log message is correct, Harvest sends that ZAPI to ONTAP asking for all snapmirror instances and ONTAP tells Harvest there are none. We print that message so we (and you) understand there won't be any metrics for that object

violet radish
#

Got a lot of output on the on acesd which is the SM destination

#

So how do I collect data?

haughty kite
#

Can you explain what you think should be happening that is not happening? I thought you question was about the log message you pasted, which hopefully I've explained. And yes, acesd has 263 instances

violet radish
#

When I open the SnapMirror dashboard, I get 0's and 'No data'. I see the Datacenter as my Secondary, but SourceClusteer is ALL and I cannot see individual source clusters. The same for Nodes, and SVM's, Volumes and Source Volumes

haughty kite
#

ok, that's the first mention of dashboard, got it

violet radish
#

I'm sorry, sometimes I ass-u-me. 😉

haughty kite
#

no worries! easy to do when you've been troubleshooting

#

what version of Harvest are you on?

violet radish
#

Thank you... You are a gentleman and a scholar

haughty kite
#

and sounds like when you click the SourceCluster dropdown you only see All and not clusters like this?

violet radish
#

23.11.0-1

#

I only see my Secondary Dattacenter, which is the SM/DR cluster

#

But no omdividual cluster, just ALL

haughty kite
#

the datacenter variable gets its values from this query

#

and the sourcecluster variable gets its values from this query

#

which is a join of snapmirror_labels and volume_labels so either the SnapMirror collector or the Volume collector must have errors if you aren't see the data you expect

violet radish
#

How did I create a Primary and Secondary Datacenter?

haughty kite
#

datacenter is taking directly from your harvest.yml like so

violet radish
#

I didn't do it via yml, I am pretty sure it was a configuration item. Oh well, yes I can send logs, but my partner is on vacation and won't be in until Wed. I'll send them then. Thank you

#

Duh, found it

haughty kite
#

the only place we read datacenter is from harvest.yml

#

where was it?

violet radish
#

When you add the array, there ia a GROUP field.

#

NABOX/Systems/Storage Systems

haughty kite
#

Nabox is a front-end to Harvest which means Nabox added datacenter: what-you-typed-for-group in your harvest.yml

violet radish
#

Yes. Part of the config instructions, I believe

haughty kite
#

glad you got it sorted

violet radish
#

Now I just need to get it working

haughty kite
#

I've got to run to a meeting. I'll catch you later

violet radish
#

ok

#

Thank you

violet radish
#

@zealous marsh Yann, have you seen any issues with the SnapMirror dashboard not reporting any data in NABOX 3.3, Harvest 23.11.0-1?

haughty kite
#

hi @violet radish how is the snapmirror dashboard looking today?

violet radish
#

Same sir. 0's and "No data" ; I haven't had a chance to look in logs

haughty kite
#

did you fix the datacenter problem we dicussed yesterday?

zealous marsh
narrow swan
#

@violet radish As you have seen this info panel for SnapMirror dashboard that both the source and destination cluster must be monitored by Harevst and export the metrics in same Prometheus instance. Just to make sure, Could you please share the query result for this in your NABox prometheus instance.
You can access the prometheus here, https://[nabox ip]/prometheus/ replace [nabox ip] with your nabox address.

Run this query in promQL
group by (datacenter, cluster)(snapmirror_labels)

violet radish
haughty kite
#

hi @violet radish yes, the PromQL Hardik shared is meant to be run in Prometheus
your response means there is only one cluster being monitored that is exporting snapmirror metrics. Is that what you expected?

haughty kite