irods / irods_rule_engine_plugin_logical_quotas

BSD 3-Clause "New" or "Revised" License
1 stars 9 forks source link

unable to unset max-size or max-objects when tracking is disabled #5

Closed anderbubble closed 4 years ago

anderbubble commented 4 years ago

If we start tracking and then set max-size and/or max-objects, and then stop tracking, the max attributes are retained. (I think this is good behavior.)

[root@irods1 ~]# ilogiq stop-monitoring /curcZone/home/joan5896
[root@irods1 ~]# ilogiq ls /curcZone/home/joan5896
AVUs defined for collection /curcZone/home/joan5896:
attribute: irods::logical_quotas::maximum_number_of_data_objects
value: 100
units: 
----
attribute: irods::logical_quotas::maximum_size_in_bytes
value: 10000000000
units: 

But I can't unset these max attributes because tracking is disabled.

[root@irods1 ~]# ilogiq unset-max-objects /curcZone/home/joan5896
remote addresses: 10.225.160.101 ERROR: rcExecMyRule error.  status = -1205000 RE_RUNTIME_ERROR
Level 0: Logical Quotas Policy: [/curcZone/home/joan5896] is not a monitored collection

This check should probably be updated to just check to see if the attribute being removed is present; not whether the tracking attributes are present.