Closed sto228 closed 2 years ago
we found an issue where we could pick up the wrong SVM. Both both SVMs would need to be in the same cluster. Is this the case here?
Hi, yes most likely that's the issue because in the case of metrocluster are SVMs sitting on the different clusters, basically primary SVM named svm1
is sitting on the cluster1
and the DR replica named svm1-mc
is sitting on the cluster2
and between clusters is metrocluster relationship(synchronous mirror of the data and SVM configurations). So, if mentioned module expects that both SVMs are located on the same cluster, then it's wrong.
Do you still see the issue with 21.14.0 or 21.14.1?
We fixed an issue in a similar area, though I cannot say for sure it is the same issue.
Hi, I've tested with netapp.ontap collection version 21.14.1 and it seems to be working properly also in the case of Metrocluster setup. I used the use_rest: auto
option in the playbook and there was no message in the output about falling back to ZAPI, so I guess that issue has been fixed in mentioned collection version.
Thank you for confirming.
Hi, we are facing this issue again - the same error code in the case of Metrocluser, only a bit expanded message error. I have tested it a couple of times before confirming this issue seemed to be fixed but now it has occurred again and there is no evident difference compared to my test tasks. I'll do more tests and get back to you with the details.
{ "msg": "Error on creating export policy: calling: protocols/nfs/export-policies: got {'message': 'This operation is not permitted on a SVM that is configured as the destination of a MetroCluster SVM relationship.', 'code': '2621574'}.",
We are affected by this Bug too on our Metrocluster. Same error Message as sto228. Is there another workaround other than use ZAPI?
I could be wrong, but could this be related to?
Thank you for the pointer.
It's an ONTAP bug, so the solution is to:
(the link requires to be authenticated before clicking on it).
One work-around is to
On our side, we can look at the second work-around
Summary
Symptom:
Creation of the export-policy on the IP Metrocluster running ONTAP 9.8P6 on platform AFF-A300 fails with message:
Error on creating export policy: {'message': 'This operation is not permitted on a SVM that is configured as the destination of a MetroCluster SVM relationship.', 'code': '2621574'}
although the mentioned vserver is not destination SVM(replica with suffix "-mc") of the metrocluster configuration.Workaround:
Falling back to the ZAPI by using
use_rest: never
resolves that issueDescription:
Module
na_ontap_export_policy
works fine on the single-site(HA) configuration with the same ONTAP version 9.8P2. When we are applying the same playbook including thena_ontap_export_policy
module to the IP Metrocluster it fails with the message mentioned above although we are applying it to the right one(primary) vserverSVM_NAME
, not to the inactive replica withSVM_NAME-mc
suffix on the opposite cluster of the metrocluster deployment.Used versions:
netapp.ontap collection 21.7.0. ansible 2.9.17 python 3.6.8
Component Name
na_ontap_export_policy
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Run the playbook below against to IP Metrocluster(currently running ONTAP 9.8P6 on AFF-A300)
Expected Results
Actual Results