Univention Bugzilla – Bug 33174
User quota set by policy is not edited / removed upon editing / removing policy
Last modified: 2014-08-07 17:48:27 CEST
when defining a user quota policy in shares => policies quota gets set correctly as soon as someone connects to shared folder. But upon removing the policy the quota still exists. Also any changes made to this policy are not applied to the quota.
(In reply to Drees Dormann from comment #0) > Also any changes made to this policy are not applied to the quota. Again reported and reproduced by me at UCS 3.2-0 Errata 20 I found no way to force the updated settings - user quota always stucks at the initial values from first share connect. As described, even removing the policy and creating a new one doesn't have any effect.
Currently that is the design of the quota policy. Maybe we should change the default behavior and add a checkbox which controls whether the value is every time newly set.
The fix contains the following changes: - user share policy has been extended by an attribute to reapply the user-share quota on each login - univention-user-quota has been extended to evaluate the flag and reapply the quota if applicable - If more than one user-share quotaunivention-user-quota used to calculate the correct quota values wrong. It now sets the most restrictive quota values defined for each mountpoint r51290 univention-ldap 10.0.17-36.693.201406261204 r51291 yaml r51293 univention-directory-manager-modules 9.0.76-6.1204.201406261244 r51294 merge to UCS 4.0 univention-directory-manager-modules 10.0.0-2 r51295 yaml r51358 univention-quota 8.0.6-4.124.201406301032 r51359 yaml r51360 merge to UCS 4.0; not build yet, see Bug 35139#c3
(In reply to Erik Damrose from comment #3) > r51360 merge to UCS 4.0; not build yet, see Bug 35139#c3 Bug 35138#c3
OK - checkbox "Reapply settings on every login" OK - univention-user-quota OK - YAML OK - merged to 4.0
*** Bug 35306 has been marked as a duplicate of this bug. ***
From Bug 35306: The following traceback occurs if no quota has been activated for a partition/mountpoint but a share-policy defines a quota for it. univention-user-quota y23j4odaqi Traceback (most recent call last): File "/usr/sbin/univention-user-quota", line 168, in <module> mountpoints = get_mountpoints_with_quota(user, shares) File "/usr/sbin/univention-user-quota", line 135, in get_mountpoints_with_quota if _mountpoints[attrs['mountpoint']][policy_value] == '0' or int(attrs[policy_value]) < int(_mountpoints[attrs['mountpoint']][policy_value]): KeyError: '/'
Fix univention-user-quota traceback if no quota is defined r51632 univention-quota 8.0.6-8.128.201407090947 r51634 yaml
r51632 Merge to UCS 4.0
OK (errata3.2-2, 4.0-0) OK - YAML
http://errata.univention.de/ucs/3.2/150.html
This bug number also appears in the advisory for univention-quota, which will be released in one of the next errata updates (like tomorrow).
And the bug number is also refered to by an upcoming errata advisory for univention-directory-manager-modules.
http://errata.univention.de/ucs/3.2/158.html
http://errata.univention.de/ucs/3.2/170.html