#ONTAP and Ansible error creating quota rules

1 messages · Page 1 of 1 (latest)

grand gate
#

I'm using Ansible 2.15.0, netapp.ontap 22.7.0 and ONTAP 9.11.1P8. Trying to create a quota rule ({"state": "present", "vserver": "testsvm", "volume": "test1", "quota_target": "757", "type": "user", "disk_limit": "300MB", "set_quota_status": True}) results in 2 issues:

  1. after the creation, the API returns: [WARNING]: Quota policy rule create opertation succeeded. However quota resize failed due to an internal error. To make quotas active, reinitialize(disable and enable again) the quota for volume test1 in SVM testsvm.
  2. lack of idempotency: applying the playbook again, results in an idempotency issue, as it seems to attempt to create the rule again, resulting in this error: Error on creating quotas rule: calling: storage/quota/rules: got {'message': 'duplicate entry', 'code': '1', 'target': 'uuid'}

My initial suspicion was, that #2 is caused by #1, so I followed the advice and manually disabled/enabled the quota before applying the playbook again, but this changed nothing - I hoped, this being a workaround to the issue - but it isn't.

boreal tendon
#

Could you run the playbook again with -VVV and the output to ng-ansibleteam@netapp.com

The rest API returned one of the following error code back ('5308568', '5308569', '5308567'), i'm tying to see which one.

For the second issue can you also send me the playbook for this. We only hit the create state if we when we call the get REST API and get no results. If we get any results we will run a Patch to modify.

grand gate
grand gate
#

@boreal tendon sorry, didn't see your response here before. Will send you further details via mail, some is also already included in the issue above.