root / snf-astakos-app / astakos / im / presentation.py @ 75380308
History | View | Annotate | Download (6 kB)
1 | 4161cb70 | Giorgos Korfiatis | # Copyright 2012, 2013 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 4161cb70 | Giorgos Korfiatis | #
|
3 | 4161cb70 | Giorgos Korfiatis | # Redistribution and use in source and binary forms, with or
|
4 | 4161cb70 | Giorgos Korfiatis | # without modification, are permitted provided that the following
|
5 | 4161cb70 | Giorgos Korfiatis | # conditions are met:
|
6 | 4161cb70 | Giorgos Korfiatis | #
|
7 | 4161cb70 | Giorgos Korfiatis | # 1. Redistributions of source code must retain the above
|
8 | 4161cb70 | Giorgos Korfiatis | # copyright notice, this list of conditions and the following
|
9 | 4161cb70 | Giorgos Korfiatis | # disclaimer.
|
10 | 4161cb70 | Giorgos Korfiatis | #
|
11 | 4161cb70 | Giorgos Korfiatis | # 2. Redistributions in binary form must reproduce the above
|
12 | 4161cb70 | Giorgos Korfiatis | # copyright notice, this list of conditions and the following
|
13 | 4161cb70 | Giorgos Korfiatis | # disclaimer in the documentation and/or other materials
|
14 | 4161cb70 | Giorgos Korfiatis | # provided with the distribution.
|
15 | 4161cb70 | Giorgos Korfiatis | #
|
16 | 4161cb70 | Giorgos Korfiatis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | 4161cb70 | Giorgos Korfiatis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | 4161cb70 | Giorgos Korfiatis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | 4161cb70 | Giorgos Korfiatis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | 4161cb70 | Giorgos Korfiatis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | 4161cb70 | Giorgos Korfiatis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | 4161cb70 | Giorgos Korfiatis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | 4161cb70 | Giorgos Korfiatis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | 4161cb70 | Giorgos Korfiatis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | 4161cb70 | Giorgos Korfiatis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | 4161cb70 | Giorgos Korfiatis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | 4161cb70 | Giorgos Korfiatis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | 4161cb70 | Giorgos Korfiatis | #
|
29 | 4161cb70 | Giorgos Korfiatis | # The views and conclusions contained in the software and
|
30 | 4161cb70 | Giorgos Korfiatis | # documentation are those of the authors and should not be
|
31 | 4161cb70 | Giorgos Korfiatis | # interpreted as representing official policies, either expressed
|
32 | 4161cb70 | Giorgos Korfiatis | # or implied, of GRNET S.A.
|
33 | 4161cb70 | Giorgos Korfiatis | |
34 | 75380308 | Kostas Papadimitriou | from astakos.im import settings |
35 | 75380308 | Kostas Papadimitriou | |
36 | 75380308 | Kostas Papadimitriou | RESOURCES = { |
37 | 4161cb70 | Giorgos Korfiatis | 'groups': {
|
38 | 4161cb70 | Giorgos Korfiatis | 'compute': {
|
39 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('Compute resources ' |
40 | 4161cb70 | Giorgos Korfiatis | '(amount of VMs, CPUs, RAM, System disk) '),
|
41 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
42 | 4161cb70 | Giorgos Korfiatis | 'report_desc': '', |
43 | 4161cb70 | Giorgos Korfiatis | 'verbose_name': 'compute', |
44 | 4161cb70 | Giorgos Korfiatis | }, |
45 | 4161cb70 | Giorgos Korfiatis | 'storage': {
|
46 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('Storage resources ' |
47 | 4161cb70 | Giorgos Korfiatis | '(amount of space to store files on Pithos) '),
|
48 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
49 | 4161cb70 | Giorgos Korfiatis | 'report_desc': '', |
50 | 4161cb70 | Giorgos Korfiatis | 'verbose_name': 'storage', |
51 | 4161cb70 | Giorgos Korfiatis | }, |
52 | 4161cb70 | Giorgos Korfiatis | 'network': {
|
53 | 4161cb70 | Giorgos Korfiatis | 'help_text': ' Network resources (number of Private Networks) ', |
54 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
55 | 4161cb70 | Giorgos Korfiatis | 'report_desc': '', |
56 | 4161cb70 | Giorgos Korfiatis | 'verbose_name': 'network', |
57 | 4161cb70 | Giorgos Korfiatis | }, |
58 | 4161cb70 | Giorgos Korfiatis | }, |
59 | 4161cb70 | Giorgos Korfiatis | 'resources': {
|
60 | 75380308 | Kostas Papadimitriou | 'pithos.diskspace': {
|
61 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('This is the space on Pithos for storing files ' |
62 | 4161cb70 | Giorgos Korfiatis | 'and VM Images. '),
|
63 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ('This is the total amount of space on ' |
64 | 4161cb70 | Giorgos Korfiatis | 'Pithos that will be granted to each '
|
65 | 4161cb70 | Giorgos Korfiatis | 'user of this Project '),
|
66 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
67 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'Storage Space', |
68 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 10GB', |
69 | 4161cb70 | Giorgos Korfiatis | 'verbose_name': 'Storage Space', |
70 | 75380308 | Kostas Papadimitriou | 'group': 'storage' |
71 | 4161cb70 | Giorgos Korfiatis | }, |
72 | 4161cb70 | Giorgos Korfiatis | 'cyclades.disk': {
|
73 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('This is the System Disk that the VMs have that ' |
74 | 4161cb70 | Giorgos Korfiatis | 'run the OS '),
|
75 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ("This is the total amount of System Disk " |
76 | 4161cb70 | Giorgos Korfiatis | "that will be granted to each user of "
|
77 | 4161cb70 | Giorgos Korfiatis | "this Project (this refers to the total "
|
78 | 4161cb70 | Giorgos Korfiatis | "System Disk of all VMs, not each VM's "
|
79 | 4161cb70 | Giorgos Korfiatis | "System Disk) "),
|
80 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
81 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'System Disk', |
82 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 5GB, 2GB etc', |
83 | 75380308 | Kostas Papadimitriou | 'verbose_name': 'System Disk', |
84 | 75380308 | Kostas Papadimitriou | 'group': 'compute' |
85 | 4161cb70 | Giorgos Korfiatis | }, |
86 | 4161cb70 | Giorgos Korfiatis | 'cyclades.ram': {
|
87 | 4161cb70 | Giorgos Korfiatis | 'help_text': 'RAM used by VMs ', |
88 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ('This is the total amount of RAM that ' |
89 | 4161cb70 | Giorgos Korfiatis | 'will be granted to each user of this '
|
90 | 4161cb70 | Giorgos Korfiatis | 'Project (on all VMs) '),
|
91 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': True, |
92 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'RAM', |
93 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 4GB', |
94 | 75380308 | Kostas Papadimitriou | 'verbose_name': 'ram', |
95 | 75380308 | Kostas Papadimitriou | 'group': 'compute' |
96 | 75380308 | Kostas Papadimitriou | |
97 | 4161cb70 | Giorgos Korfiatis | }, |
98 | 4161cb70 | Giorgos Korfiatis | 'cyclades.cpu': {
|
99 | 4161cb70 | Giorgos Korfiatis | 'help_text': 'CPUs used by VMs ', |
100 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ('This is the total number of CPUs that ' |
101 | 4161cb70 | Giorgos Korfiatis | 'will be granted to each user of this '
|
102 | 4161cb70 | Giorgos Korfiatis | 'Project (on all VMs) '),
|
103 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': True, |
104 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'CPUs', |
105 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 1', |
106 | 75380308 | Kostas Papadimitriou | 'verbose_name': 'cpu', |
107 | 75380308 | Kostas Papadimitriou | 'group': 'compute' |
108 | 75380308 | Kostas Papadimitriou | |
109 | 4161cb70 | Giorgos Korfiatis | }, |
110 | 4161cb70 | Giorgos Korfiatis | 'cyclades.vm': {
|
111 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('These are the VMs one can create on the ' |
112 | 4161cb70 | Giorgos Korfiatis | 'Cyclades UI '),
|
113 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ('This is the total number of VMs that ' |
114 | 4161cb70 | Giorgos Korfiatis | 'will be granted to each user of this '
|
115 | 4161cb70 | Giorgos Korfiatis | 'Project '),
|
116 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': True, |
117 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'Virtual Machines', |
118 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 2', |
119 | 4161cb70 | Giorgos Korfiatis | 'verbose_name': 'vm', |
120 | 75380308 | Kostas Papadimitriou | 'group': 'compute' |
121 | 75380308 | Kostas Papadimitriou | |
122 | 4161cb70 | Giorgos Korfiatis | }, |
123 | 4161cb70 | Giorgos Korfiatis | 'cyclades.network.private': {
|
124 | 4161cb70 | Giorgos Korfiatis | 'help_text': ('These are the Private Networks one can create on ' |
125 | 4161cb70 | Giorgos Korfiatis | 'the Cyclades UI. '),
|
126 | 4161cb70 | Giorgos Korfiatis | 'help_text_input_each': ('This is the total number of Private ' |
127 | 4161cb70 | Giorgos Korfiatis | 'Networks that will be granted to each '
|
128 | 4161cb70 | Giorgos Korfiatis | 'user of this Project '),
|
129 | 4161cb70 | Giorgos Korfiatis | 'is_abbreviation': False, |
130 | 4161cb70 | Giorgos Korfiatis | 'report_desc': 'Private Networks', |
131 | 4161cb70 | Giorgos Korfiatis | 'placeholder': 'eg. 1', |
132 | 75380308 | Kostas Papadimitriou | 'verbose_name': 'Private Network', |
133 | 75380308 | Kostas Papadimitriou | 'group': 'network' |
134 | 75380308 | Kostas Papadimitriou | |
135 | 4161cb70 | Giorgos Korfiatis | } |
136 | 4161cb70 | Giorgos Korfiatis | }, |
137 | 4161cb70 | Giorgos Korfiatis | 'groups_order': ['storage', 'compute', 'network'], |
138 | 75380308 | Kostas Papadimitriou | 'resources_order': ['pithos.diskspace', |
139 | 4161cb70 | Giorgos Korfiatis | 'cyclades.disk',
|
140 | 4161cb70 | Giorgos Korfiatis | 'cyclades.cpu',
|
141 | 4161cb70 | Giorgos Korfiatis | 'cyclades.ram',
|
142 | 4161cb70 | Giorgos Korfiatis | 'cyclades.vm',
|
143 | 4161cb70 | Giorgos Korfiatis | 'cyclades.network.private'
|
144 | 4161cb70 | Giorgos Korfiatis | ] |
145 | 4161cb70 | Giorgos Korfiatis | } |