root / vocabs.py @ 800ee222
History | View | Annotate | Download (13.5 kB)
1 |
IMAGE_TAGS = { |
---|---|
2 |
1: 'archlinux', |
3 |
2: 'centos', |
4 |
3: 'debian', |
5 |
4: 'freebsd', |
6 |
5: 'gentoo', |
7 |
6: 'netbsd', |
8 |
7: 'openbsd', |
9 |
8: 'redhat', |
10 |
9: 'slackware', |
11 |
10: 'suse', |
12 |
11: 'ubuntu', |
13 |
12: 'windows', |
14 |
} |
15 |
|
16 |
MOCK_IMAGES = [ |
17 |
{ |
18 |
"id" : 2, |
19 |
"name" : "CentOS 5.2", |
20 |
"updated" : "2010-10-10T12:00:00Z", |
21 |
"created" : "2010-08-10T12:00:00Z", |
22 |
"status" : "ACTIVE" |
23 |
}, |
24 |
{ |
25 |
"id" : 3, |
26 |
"name" : "Debian Lenny", |
27 |
"updated" : "2010-10-10T12:00:00Z", |
28 |
"created" : "2010-08-10T12:00:00Z", |
29 |
"status" : "ACTIVE" |
30 |
}, |
31 |
{ |
32 |
"id" : 11, |
33 |
"name" : "Ubuntu 10.04 server 64bit", |
34 |
"updated" : "2010-10-10T12:00:00Z", |
35 |
"created" : "2010-08-10T12:00:00Z", |
36 |
"status" : "ACTIVE" |
37 |
}, |
38 |
{ |
39 |
"id" : 20, |
40 |
"name" : "Ubuntu 10.10 server 64bit", |
41 |
"updated" : "2010-10-10T12:00:00Z", |
42 |
"created" : "2010-08-10T12:00:00Z", |
43 |
"status" : "ACTIVE" |
44 |
}, |
45 |
{ |
46 |
"id" : 4, |
47 |
"name" : "FreeBSD 8.1 Release i386", |
48 |
"updated" : "2010-10-10T12:00:00Z", |
49 |
"created" : "2010-08-10T12:00:00Z", |
50 |
"status" : "ACTIVE" |
51 |
}, |
52 |
{ |
53 |
"id" : 12, |
54 |
"name" : "My Server Backup", |
55 |
"serverId" : 12, |
56 |
"updated" : "2010-10-10T12:00:00Z", |
57 |
"created" : "2010-08-10T12:00:00Z", |
58 |
"status" : "SAVING", |
59 |
"progress" : 80 |
60 |
}, |
61 |
] |
62 |
|
63 |
|
64 |
MOCK_SERVERS = [ |
65 |
{ |
66 |
"id" : 1234, |
67 |
"name" : "sample-server", |
68 |
"imageId" : 11, |
69 |
"flavorId" : 1, |
70 |
"hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0", |
71 |
"status" : "BUILD", |
72 |
"progress" : 60, |
73 |
"addresses" : {
|
74 |
"public" : [
|
75 |
"67.23.10.132",
|
76 |
"67.23.10.131"
|
77 |
], |
78 |
"private" : [
|
79 |
"10.176.42.16"
|
80 |
] |
81 |
}, |
82 |
"metadata" : {
|
83 |
"Server Label" : "Web Head 1", |
84 |
"Image Version" : "2.1" |
85 |
} |
86 |
}, |
87 |
{ |
88 |
"id" : 5678, |
89 |
"name" : "sample-server2", |
90 |
"imageId" : 6, |
91 |
"flavorId" : 1, |
92 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
93 |
"status" : "ACTIVE", |
94 |
"addresses" : {
|
95 |
"public" : [
|
96 |
"67.23.10.133"
|
97 |
], |
98 |
"private" : [
|
99 |
"10.176.42.17"
|
100 |
] |
101 |
}, |
102 |
"metadata" : {
|
103 |
"Server Label" : "DB 1" |
104 |
} |
105 |
}, |
106 |
{ |
107 |
"id" : 1548, |
108 |
"name" : "sample-server9", |
109 |
"imageId" : 3, |
110 |
"flavorId" : 1, |
111 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
112 |
"status" : "ACTIVE", |
113 |
"addresses" : {
|
114 |
"public" : [
|
115 |
"67.23.10.143"
|
116 |
], |
117 |
"private" : [
|
118 |
"10.176.42.21"
|
119 |
] |
120 |
}, |
121 |
"metadata" : {
|
122 |
"Server Label" : "DB 19" |
123 |
} |
124 |
}, |
125 |
{ |
126 |
"id" : 3678, |
127 |
"name" : "sample-server19", |
128 |
"imageId" : 3, |
129 |
"flavorId" : 1, |
130 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
131 |
"status" : "ACTIVE", |
132 |
"addresses" : {
|
133 |
"public" : [
|
134 |
"67.23.10.118"
|
135 |
], |
136 |
"private" : [
|
137 |
"10.176.42.18"
|
138 |
] |
139 |
}, |
140 |
"metadata" : {
|
141 |
"Server Label" : "DB 5" |
142 |
} |
143 |
}, |
144 |
{ |
145 |
"id" : 890, |
146 |
"name" : "sample-server3", |
147 |
"imageId" : 12, |
148 |
"flavorId" : 2, |
149 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
150 |
"status" : "SUSPENDED", |
151 |
"addresses" : {
|
152 |
}, |
153 |
"metadata" : {
|
154 |
"Server Label" : "DB 2" |
155 |
} |
156 |
}, |
157 |
{ |
158 |
"id" : 14354, |
159 |
"name" : "sample-server8", |
160 |
"imageId" : 3, |
161 |
"flavorId" : 1, |
162 |
"hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0", |
163 |
"status" : "BUILD", |
164 |
"progress" : 20, |
165 |
"addresses" : {
|
166 |
"public" : [
|
167 |
"67.23.10.140",
|
168 |
"67.23.10.141"
|
169 |
], |
170 |
"private" : [
|
171 |
"10.176.42.24"
|
172 |
] |
173 |
}, |
174 |
"metadata" : {
|
175 |
"Server Label" : "Web Head 8", |
176 |
"Image Version" : "3.0" |
177 |
} |
178 |
}, |
179 |
{ |
180 |
"id" : 1633, |
181 |
"name" : "sample-server33", |
182 |
"imageId" : 5, |
183 |
"flavorId" : 5, |
184 |
"hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0", |
185 |
"status" : "BUILD", |
186 |
"progress" : 33, |
187 |
"addresses" : {
|
188 |
"public" : [
|
189 |
"67.23.10.133",
|
190 |
"67.23.10.133"
|
191 |
], |
192 |
"private" : [
|
193 |
"10.176.42.33"
|
194 |
] |
195 |
}, |
196 |
"metadata" : {
|
197 |
"Server Label" : "My Web Server 33", |
198 |
"Image Version" : "3.3" |
199 |
} |
200 |
}, |
201 |
{ |
202 |
"id" : 16, |
203 |
"name" : "sample-server 66", |
204 |
"imageId" : 5, |
205 |
"flavorId" : 5, |
206 |
"hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0", |
207 |
"status" : "BUILD", |
208 |
"progress" : 66, |
209 |
"addresses" : {
|
210 |
"public" : [
|
211 |
"67.23.10.166",
|
212 |
"67.23.10.166"
|
213 |
], |
214 |
"private" : [
|
215 |
"10.176.42.66"
|
216 |
] |
217 |
}, |
218 |
"metadata" : {
|
219 |
"Server Label" : "My Web Server 66", |
220 |
"Image Version" : "6.6" |
221 |
} |
222 |
}, |
223 |
{ |
224 |
"id" : 1665, |
225 |
"name" : "sample-server28", |
226 |
"imageId" : 3, |
227 |
"flavorId" : 12, |
228 |
"hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0", |
229 |
"status" : "BUILD", |
230 |
"progress" : 66, |
231 |
"addresses" : {
|
232 |
"public" : [
|
233 |
"67.23.10.150",
|
234 |
"67.23.10.129"
|
235 |
], |
236 |
"private" : [
|
237 |
"10.176.42.99"
|
238 |
] |
239 |
}, |
240 |
"metadata" : {
|
241 |
"Server Label" : "My Web Server 18", |
242 |
"Image Version" : "5.5" |
243 |
} |
244 |
}, |
245 |
{ |
246 |
"id" : 4758, |
247 |
"name" : "my sample-server for mysql", |
248 |
"imageId" : 6, |
249 |
"flavorId" : 9, |
250 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
251 |
"status" : "SUSPENDED", |
252 |
"addresses" : {
|
253 |
}, |
254 |
"metadata" : {
|
255 |
"Server Label" : "Mysql DB production" |
256 |
} |
257 |
}, |
258 |
{ |
259 |
"id" : 1548, |
260 |
"name" : "mongodb8", |
261 |
"imageId" : 6, |
262 |
"flavorId" :6, |
263 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
264 |
"status" : "ACTIVE", |
265 |
"addresses" : {
|
266 |
"public" : [
|
267 |
"67.23.11.55"
|
268 |
], |
269 |
"private" : [
|
270 |
"10.176.11.76"
|
271 |
] |
272 |
}, |
273 |
"metadata" : {
|
274 |
"Server Label" : "Mongodb production" |
275 |
} |
276 |
}, |
277 |
{ |
278 |
"id" : 3678, |
279 |
"name" : "sample-server29", |
280 |
"imageId" : 6, |
281 |
"flavorId" : 6, |
282 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
283 |
"status" : "ACTIVE", |
284 |
"addresses" : {
|
285 |
"public" : [
|
286 |
"67.23.10.56"
|
287 |
], |
288 |
"private" : [
|
289 |
"10.176.42.58"
|
290 |
] |
291 |
}, |
292 |
"metadata" : {
|
293 |
"Server Label" : "Sample Server 29" |
294 |
} |
295 |
}, |
296 |
{ |
297 |
"id" : 156, |
298 |
"name" : "sample-server15", |
299 |
"imageId" : 3, |
300 |
"flavorId" : 3, |
301 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
302 |
"status" : "ACTIVE", |
303 |
"addresses" : {
|
304 |
"public" : [
|
305 |
"67.23.10.96"
|
306 |
], |
307 |
"private" : [
|
308 |
"10.176.42.99"
|
309 |
] |
310 |
}, |
311 |
"metadata" : {
|
312 |
"Server Label" : "Sample Server 15" |
313 |
} |
314 |
}, |
315 |
{ |
316 |
"id" : 5620, |
317 |
"name" : "sample-server20", |
318 |
"imageId" : 3, |
319 |
"flavorId" : 3, |
320 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
321 |
"status" : "ACTIVE", |
322 |
"addresses" : {
|
323 |
"public" : [
|
324 |
"67.23.10.20"
|
325 |
], |
326 |
"private" : [
|
327 |
"10.176.42.20"
|
328 |
] |
329 |
}, |
330 |
"metadata" : {
|
331 |
"Server Label" : "Sample Server 20" |
332 |
} |
333 |
}, |
334 |
{ |
335 |
"id" : 5629, |
336 |
"name" : "sample-server29", |
337 |
"imageId" : 6, |
338 |
"flavorId" : 1, |
339 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
340 |
"status" : "ACTIVE", |
341 |
"addresses" : {
|
342 |
"public" : [
|
343 |
"67.23.10.29"
|
344 |
], |
345 |
"private" : [
|
346 |
"10.176.42.29"
|
347 |
] |
348 |
}, |
349 |
"metadata" : {
|
350 |
"Server Label" : "Sample Server 29" |
351 |
} |
352 |
}, |
353 |
{ |
354 |
"id" : 5673, |
355 |
"name" : "sample-server77", |
356 |
"imageId" : 6, |
357 |
"flavorId" : 7, |
358 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
359 |
"status" : "ACTIVE", |
360 |
"addresses" : {
|
361 |
"public" : [
|
362 |
"67.23.10.77"
|
363 |
], |
364 |
"private" : [
|
365 |
"10.176.42.77"
|
366 |
] |
367 |
}, |
368 |
"metadata" : {
|
369 |
"Server Label" : "Sample Server 77" |
370 |
} |
371 |
}, |
372 |
{ |
373 |
"id" : 5480, |
374 |
"name" : "sample-server4", |
375 |
"imageId" : 3, |
376 |
"flavorId" : 12, |
377 |
"hostId" : "9e107d9d372bb6826bd81d3542a419d6", |
378 |
"status" : "SUSPENDED", |
379 |
"addresses" : {
|
380 |
}, |
381 |
"metadata" : {
|
382 |
"Server Label" : "DB 3" |
383 |
} |
384 |
} |
385 |
] |
386 |
|