ansible-collections / netapp.ontap

Ansible collection to support NetApp ONTAP configuration.
https://galaxy.ansible.com/netapp/ontap
GNU General Public License v3.0
51 stars 34 forks source link

Retry after configuration baseline lock #147

Closed robertattenberger closed 1 year ago

robertattenberger commented 1 year ago

Summary

In some circumstances a module-call returns with the following error message: "This Vserver is temporarily locked from changes while recording the configuration baseline. Try again in a few minutes or manually stop configuration replication by running \"vserver config-replication pause\" and retry the command.', 'code': '2621573', 'target': 'security_style"

This error occurs occasionally when some configuration changes with multiple module-calls are made in a sort time.

To avoid the problem at the moment I place a pause-task (about 10 seconds) in the playbook at the position where it occurs.

It would be great if the ontap-modules would not fail, but do a retry themself after a couple of seconds, if it gets that response from the Ontap-REST-API.

Component Name

ontap.netapp.*

Additional Information

The problem occors at IP-Metroclusters.

Here are some sequences, where the error occurs. The last task is each the failing one:

mohanrajb9 commented 1 year ago

we are looking in to this.

can you add debug to tasks which throws error

feature_flags:
        trace_apis: true

and mail us the logs saved in /tmp/ontap_apis.log. more info on - https://github.com/ansible-collections/netapp.ontap/wiki/Debugging

robertattenberger commented 1 year ago

May you please provide me a mail-address to send you the logs.

mohanrajb9 commented 1 year ago

sorry, I missed it in my post this one - ng-ansibleteam@netapp.com

mohanrajb9 commented 1 year ago

Thanks @robertattenberger for sharing the logs, tracked internally with DEVOPS-6192. can you please share the baseline configuration lock error message you are getting on volume and quota module here.

robertattenberger commented 1 year ago

The lock error message is for volume and quota both the same. It is "This Vserver is temporarily locked from changes while recording the configuration baseline. Try again in a few minutes or manually stop configuration replication by running "vserver config-replication pause" and retry the command."

mamoep commented 1 year ago

Same problem as issue #47

carchi8py commented 1 year ago

This was fixed in 22.6.0