Revision d08a5f6f vocabs.py

b/vocabs.py
1 1
# Virtual machine instance states
2 2
STATES = (
3
            ('PE_VM_STOPPED', 'Stop'),
4
            ('PE_VM_RUNNING', 'Running'),
5
            ('PE_VM_SUSPENDED', 'Suspended'),
6
            ('PE_VM_MIGRATING', 'Migrating'),
3
            ('ACTIVE', 'Running'),
4
            ('STOPPED', 'Stopped'),
7 5
         )
8 6

  
9 7
IMAGE_TAGS = {
......
27 25
                    "name" : "CentOS 5.2",
28 26
                    "updated" : "2010-10-10T12:00:00Z",
29 27
                    "created" : "2010-08-10T12:00:00Z",
30
                    "status" : "PE_VM_RUNNING"
28
                    "status" : "ACTIVE"
31 29
                },
32 30
                {
33 31
                    "id" : 3,
34 32
                    "name" : "Debian Lenny",
35 33
                    "updated" : "2010-10-10T12:00:00Z",
36 34
                    "created" : "2010-08-10T12:00:00Z",
37
                    "status" : "PE_VM_RUNNING"
35
                    "status" : "ACTIVE"
38 36
                },
39 37
                {
40 38
                    "id" : 11,
41 39
                    "name" : "Ubuntu 10.04 server 64bit",
42 40
                    "updated" : "2010-10-10T12:00:00Z",
43 41
                    "created" : "2010-08-10T12:00:00Z",
44
                    "status" : "PE_VM_RUNNING"
42
                    "status" : "ACTIVE"
45 43
                },
46 44
                {
47 45
                    "id" : 20,
48 46
                    "name" : "Ubuntu 10.10 server 64bit",
49 47
                    "updated" : "2010-10-10T12:00:00Z",
50 48
                    "created" : "2010-08-10T12:00:00Z",
51
                    "status" : "PE_VM_RUNNING"
49
                    "status" : "ACTIVE"
52 50
                },
53 51
                {
54 52
                    "id" : 4,
55 53
                    "name" : "FreeBSD 8.1 Release i386",
56 54
                    "updated" : "2010-10-10T12:00:00Z",
57 55
                    "created" : "2010-08-10T12:00:00Z",
58
                    "status" : "PE_VM_RUNNING"
56
                    "status" : "ACTIVE"
59 57
                },
60 58
                {
61 59
                    "id" : 12,
......
77 75
                "imageId" : 11,
78 76
                "flavorId" : 1,
79 77
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
80
                "status" : "PE_VM_MIGRATING",
78
                "status" : "STOPPED",
81 79
                "progress" : 60,
82 80
                "addresses" : {
83 81
                    "public" : [
......
99 97
                    "imageId" : 6,
100 98
                    "flavorId" : 1,
101 99
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
102
                    "status" : "PE_VM_RUNNING",
100
                    "status" : "ACTIVE",
103 101
                    "addresses" : {
104 102
                        "public" : [
105 103
                                "67.23.10.133"
......
118 116
                    "imageId" : 3,
119 117
                    "flavorId" : 1,
120 118
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
121
                    "status" : "PE_VM_RUNNING",
119
                    "status" : "ACTIVE",
122 120
                    "addresses" : {
123 121
                        "public" : [
124 122
                                "67.23.10.143"
......
137 135
                    "imageId" : 3,
138 136
                    "flavorId" : 1,
139 137
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
140
                    "status" : "PE_VM_RUNNING",
138
                    "status" : "ACTIVE",
141 139
                    "addresses" : {
142 140
                        "public" : [
143 141
                                "67.23.10.118"
......
156 154
                    "imageId" : 12,
157 155
                    "flavorId" : 2,
158 156
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
159
                    "status" : "PE_VM_SUSPENDED",
157
                    "status" : "STOPPED",
160 158
                    "addresses" : {
161 159
                        },
162 160
                    "metadata" : {
......
169 167
                "imageId" : 3,
170 168
                "flavorId" : 1,
171 169
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
172
                "status" : "PE_VM_MIGRATING",
170
                "status" : "STOPPED",
173 171
                "progress" : 20,
174 172
                "addresses" : {
175 173
                    "public" : [
......
191 189
                "imageId" : 5,
192 190
                "flavorId" : 5,
193 191
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
194
                "status" : "PE_VM_MIGRATING",
192
                "status" : "STOPPED",
195 193
                "progress" : 33,
196 194
                "addresses" : {
197 195
                    "public" : [
......
213 211
                "imageId" : 5,
214 212
                "flavorId" : 5,
215 213
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
216
                "status" : "PE_VM_MIGRATING",
214
                "status" : "STOPPED",
217 215
                "progress" : 66,
218 216
                "addresses" : {
219 217
                    "public" : [
......
235 233
                "imageId" : 3,
236 234
                "flavorId" : 12,
237 235
                "hostId" : "e4d909c290d0fb1ca068ffaddf22cbd0",
238
                "status" : "PE_VM_MIGRATING",
236
                "status" : "STOPPED",
239 237
                "progress" : 66,
240 238
                "addresses" : {
241 239
                    "public" : [
......
257 255
                    "imageId" : 6,
258 256
                    "flavorId" : 9,
259 257
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
260
                    "status" : "PE_VM_SUSPENDED",
258
                    "status" : "STOPPED",
261 259
                    "addresses" : {
262 260
                        },
263 261
                    "metadata" : {
......
270 268
                    "imageId" : 6,
271 269
                    "flavorId" :6,
272 270
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
273
                    "status" : "PE_VM_RUNNING",
271
                    "status" : "ACTIVE",
274 272
                    "addresses" : {
275 273
                        "public" : [
276 274
                                "67.23.11.55"
......
289 287
                    "imageId" : 6,
290 288
                    "flavorId" : 6,
291 289
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
292
                    "status" : "PE_VM_RUNNING",
290
                    "status" : "ACTIVE",
293 291
                    "addresses" : {
294 292
                        "public" : [
295 293
                                "67.23.10.56"
......
308 306
                    "imageId" : 3,
309 307
                    "flavorId" : 3,
310 308
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
311
                    "status" : "PE_VM_RUNNING",
309
                    "status" : "ACTIVE",
312 310
                    "addresses" : {
313 311
                        "public" : [
314 312
                                "67.23.10.96"
......
327 325
                    "imageId" : 3,
328 326
                    "flavorId" : 3,
329 327
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
330
                    "status" : "PE_VM_RUNNING",
328
                    "status" : "ACTIVE",
331 329
                    "addresses" : {
332 330
                        "public" : [
333 331
                                "67.23.10.20"
......
346 344
                    "imageId" : 6,
347 345
                    "flavorId" : 1,
348 346
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
349
                    "status" : "PE_VM_RUNNING",
347
                    "status" : "ACTIVE",
350 348
                    "addresses" : {
351 349
                        "public" : [
352 350
                                "67.23.10.29"
......
365 363
                    "imageId" : 6,
366 364
                    "flavorId" : 7,
367 365
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
368
                    "status" : "PE_VM_RUNNING",
366
                    "status" : "ACTIVE",
369 367
                    "addresses" : {
370 368
                        "public" : [
371 369
                                "67.23.10.77"
......
384 382
                    "imageId" : 3,
385 383
                    "flavorId" : 12,
386 384
                    "hostId" : "9e107d9d372bb6826bd81d3542a419d6",
387
                    "status" : "PE_VM_SUSPENDED",
385
                    "status" : "STOPPED",
388 386
                    "addresses" : {
389 387
                        "public" : [
390 388
                                "67.23.11.177"

Also available in: Unified diff