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:
- 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. - 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.