Default tree rules auto-created even specific qtree name has been specified
Applies to
ONTAP 9
Issue
ONTAP API online documentation page said that:
qtree.name - Qtree for which to create the rule. For default tree rules, the qtree name must be specified as "".However, while creating quota policy rule by REST API, the default rule also gets auto-created unexpectedly even a specific qtree name has been specified.
The operation log details are as below.
========================
cluster1::> volume quota policy rule show -volume vol1There are no entries matching your query.----- body -----{"qtree": {"name":"qtree1"},"space": {"hard_limit": "104857600","soft_limit": "5242880"},"svm": {"name": "svm1"},"type": "tree","volume": {"name": "qtree1"}}----------------cluster1::> volume quota policy rule show -volume vol1Vserver: svm1 Policy: default Volume: vol1 Soft Soft
User Disk Disk Files Files
Type Target Qtree Mapping Limit Limit Limit Limit Threshold
----- -------- ------- ------- -------- ------- ------ ------- --------tree "" "" - - - - - - <----default rule is created unexpectedtree qtree1 "" - 100MB 5MB - - -2 entries were displayed.