Revision 95e64ecd
b/snf-cyclades-app/Changelog | ||
---|---|---|
1 | 1 |
Changelog |
2 | 2 |
--------- |
3 | 3 |
|
4 |
dev |
|
5 |
*** |
|
6 |
* Private networks quota setting added (``MAX_NETWORKS_PER_USER``) |
|
7 |
* Simple per user networks/vms quota mechanism based on |
|
8 |
NETWORKS_USER_QUOTA/VMS_USER_QUOTA settings. |
|
9 |
This allows you to override the global per user quota for the specific user |
|
10 |
ids:: |
|
11 |
|
|
12 |
# limit all users to 2 vms per user |
|
13 |
MAX_VMS_PER_USER = 2 |
|
14 |
|
|
15 |
# but let `user1@grnet.gr` and `user2@grnet.gr` to be able to create up to |
|
16 |
# 10 vms each. |
|
17 |
VMS_USER_QUOTA = { |
|
18 |
'user1@grnet.gr': 10, |
|
19 |
'user2@grnet.gr': 10 |
|
20 |
} |
|
21 |
|
|
22 |
* Fix error message when no available network links can be created. |
|
23 |
|
|
24 |
|
|
4 | 25 |
v0.9.14 |
5 | 26 |
******* |
6 | 27 |
|
b/snf-cyclades-app/synnefo/app_settings/default/api.py | ||
---|---|---|
55 | 55 |
|
56 | 56 |
# Quota |
57 | 57 |
# |
58 |
# Maximum number of VMs a user is allowed to have |
|
58 |
# Maximum number of VMs a user is allowed to have.
|
|
59 | 59 |
MAX_VMS_PER_USER = 3 |
60 | 60 |
|
61 |
# VMs user/quota map. |
|
61 |
# Override maximum number of VMs for specific users. |
|
62 |
# e.g. VMS_USER_QUOTA = {'user1@grnet.gr': 5, 'user2@grnet.gr': 10} |
|
62 | 63 |
VMS_USER_QUOTA = {} |
63 | 64 |
|
64 |
# Maximum number of networks a user is allowed to have |
|
65 |
# Maximum number of networks a user is allowed to have.
|
|
65 | 66 |
MAX_NETWORKS_PER_USER = 5 |
66 | 67 |
|
67 |
# Networks user/quota map. |
|
68 |
# Override maximum number of private networks for specific users. |
|
69 |
# e.g. NETWORKS_USER_QUOTA = {'user1@grnet.gr': 5, 'user2@grnet.gr': 10} |
|
68 | 70 |
NETWORKS_USER_QUOTA = {} |
69 | 71 |
|
70 | 72 |
# URL templates for the stat graphs. |
Also available in: Unified diff