Statistics
| Branch: | Tag: | Revision:

root / test / data / htools / hail-alloc-drbd.json @ da5f09ef

History | View | Annotate | Download (10.5 kB)

1
{
2
  "cluster_tags": [
3
    "htools:iextags:test",
4
    "htools:iextags:service-group"
5
  ],
6
  "nodegroups": {
7
    "uuid-group-1": {
8
      "ipolicy": {
9
        "std": {
10
          "nic-count": 1,
11
          "disk-size": 1024,
12
          "disk-count": 1,
13
          "memory-size": 128,
14
          "cpu-count": 1,
15
          "spindle-use": 1
16
        },
17
        "minmax": {
18
          "min": {
19
            "nic-count": 1,
20
            "disk-size": 128,
21
            "disk-count": 1,
22
            "memory-size": 128,
23
            "cpu-count": 1,
24
            "spindle-use": 1
25
          },
26
          "max": {
27
            "nic-count": 8,
28
            "disk-size": 1048576,
29
            "disk-count": 16,
30
            "memory-size": 32768,
31
            "cpu-count": 8,
32
            "spindle-use": 8
33
          }
34
        },
35
        "vcpu-ratio": 4.0,
36
        "disk-templates": [
37
          "sharedfile",
38
          "diskless",
39
          "plain",
40
          "blockdev",
41
          "drbd",
42
          "file",
43
          "rbd"
44
        ],
45
        "spindle-ratio": 32.0
46
      },
47
      "alloc_policy": "preferred",
48
      "tags": [],
49
      "name": "default"
50
    }
51
  },
52
  "ipolicy": {
53
    "std": {
54
      "nic-count": 1,
55
      "disk-size": 1024,
56
      "memory-size": 128,
57
      "cpu-count": 1,
58
      "disk-count": 1,
59
      "spindle-use": 1
60
    },
61
    "min": {
62
      "nic-count": 1,
63
      "disk-size": 1024,
64
      "memory-size": 128,
65
      "cpu-count": 1,
66
      "disk-count": 1,
67
      "spindle-use": 1
68
    },
69
    "max": {
70
      "nic-count": 8,
71
      "disk-size": 1048576,
72
      "memory-size": 32768,
73
      "cpu-count": 8,
74
      "disk-count": 16,
75
      "spindle-use": 8
76
    },
77
    "vcpu-ratio": 4.0,
78
    "disk-templates": [
79
      "sharedfile",
80
      "diskless",
81
      "plain",
82
      "blockdev",
83
      "drbd",
84
      "file",
85
      "rbd"
86
    ],
87
    "spindle-ratio": 32.0
88
  },
89
  "enabled_hypervisors": [
90
    "xen-pvm",
91
    "xen-hvm"
92
  ],
93
  "cluster_name": "cluster",
94
  "instances": {
95
    "instance14": {
96
      "disks": [
97
        {
98
          "mode": "rw",
99
          "size": 128
100
        }
101
      ],
102
      "disk_space_total": 256,
103
      "hypervisor": "xen-pvm",
104
      "tags": [],
105
      "nics": [
106
        {
107
          "ip": null,
108
          "mac": "aa:00:00:eb:0b:a5",
109
          "link": "xen-br0",
110
          "mode": "bridged",
111
          "bridge": "xen-br0"
112
        }
113
      ],
114
      "vcpus": 1,
115
      "admin_state": "down",
116
      "disk_template": "drbd",
117
      "spindle_use": 1,
118
      "memory": 128,
119
      "nodes": [
120
        "node3",
121
        "node4"
122
      ],
123
      "os": "debian-image"
124
    },
125
    "instance13": {
126
      "disks": [
127
        {
128
          "mode": "rw",
129
          "size": 512
130
        }
131
      ],
132
      "disk_space_total": 512,
133
      "hypervisor": "xen-pvm",
134
      "tags": [],
135
      "nics": [
136
        {
137
          "ip": null,
138
          "mac": "aa:00:00:7f:8c:9c",
139
          "link": "xen-br1",
140
          "mode": "bridged",
141
          "bridge": "xen-br1"
142
        }
143
      ],
144
      "vcpus": 1,
145
      "spindle_use": 1,
146
      "admin_state": "down",
147
      "disk_template": "plain",
148
      "memory": 128,
149
      "nodes": [
150
        "node4"
151
      ],
152
      "os": "instance-debootstrap"
153
    },
154
    "instance18": {
155
      "disks": [
156
        {
157
          "mode": "rw",
158
          "size": 128
159
        }
160
      ],
161
      "disk_space_total": 128,
162
      "hypervisor": "xen-pvm",
163
      "tags": [],
164
      "nics": [
165
        {
166
          "ip": null,
167
          "mac": "aa:00:00:55:94:93",
168
          "link": "xen-br0",
169
          "mode": "bridged",
170
          "bridge": "xen-br0"
171
        }
172
      ],
173
      "vcpus": 1,
174
      "spindle_use": 1,
175
      "admin_state": "down",
176
      "disk_template": "plain",
177
      "memory": 8192,
178
      "nodes": [
179
        "node4"
180
      ],
181
      "os": "instance-debootstrap"
182
    },
183
    "instance19": {
184
      "disks": [
185
        {
186
          "mode": "rw",
187
          "size": 128
188
        }
189
      ],
190
      "disk_space_total": 256,
191
      "hypervisor": "xen-pvm",
192
      "tags": [],
193
      "nics": [
194
        {
195
          "ip": null,
196
          "mac": "aa:00:00:15:92:6f",
197
          "link": "xen-br0",
198
          "mode": "bridged",
199
          "bridge": "xen-br0"
200
        }
201
      ],
202
      "vcpus": 1,
203
      "spindle_use": 1,
204
      "admin_state": "down",
205
      "disk_template": "drbd",
206
      "memory": 128,
207
      "nodes": [
208
        "node3",
209
        "node4"
210
      ],
211
      "os": "debian-image"
212
    },
213
    "instance2": {
214
      "disks": [
215
        {
216
          "mode": "rw",
217
          "size": 128
218
        }
219
      ],
220
      "disk_space_total": 256,
221
      "hypervisor": "xen-pvm",
222
      "tags": [],
223
      "nics": [
224
        {
225
          "ip": null,
226
          "mac": "aa:00:00:73:20:3e",
227
          "link": "xen-br0",
228
          "mode": "bridged",
229
          "bridge": "xen-br0"
230
        }
231
      ],
232
      "vcpus": 1,
233
      "spindle_use": 1,
234
      "admin_state": "up",
235
      "disk_template": "drbd",
236
      "memory": 128,
237
      "nodes": [
238
        "node3",
239
        "node4"
240
      ],
241
      "os": "debian-image"
242
    },
243
    "instance3": {
244
      "disks": [
245
        {
246
          "mode": "rw",
247
          "size": 256
248
        },
249
        {
250
          "mode": "rw",
251
          "size": 128
252
        }
253
      ],
254
      "disk_space_total": 384,
255
      "hypervisor": "xen-pvm",
256
      "tags": [],
257
      "nics": [
258
        {
259
          "ip": null,
260
          "mac": "aa:00:00:ec:e8:a2",
261
          "link": "xen-br0",
262
          "mode": "bridged",
263
          "bridge": "xen-br0"
264
        }
265
      ],
266
      "vcpus": 1,
267
      "spindle_use": 1,
268
      "admin_state": "down",
269
      "disk_template": "plain",
270
      "memory": 128,
271
      "nodes": [
272
        "node4"
273
      ],
274
      "os": "debian-image"
275
    },
276
    "instance4": {
277
      "disks": [
278
        {
279
          "mode": "rw",
280
          "size": 2048
281
        }
282
      ],
283
      "disk_space_total": 2176,
284
      "hypervisor": "xen-pvm",
285
      "tags": [],
286
      "nics": [
287
        {
288
          "ip": null,
289
          "mac": "aa:00:00:62:b0:76",
290
          "link": "xen-br0",
291
          "mode": "bridged",
292
          "bridge": "xen-br0"
293
        }
294
      ],
295
      "vcpus": 1,
296
      "spindle_use": 1,
297
      "admin_state": "down",
298
      "disk_template": "drbd",
299
      "memory": 128,
300
      "nodes": [
301
        "node4",
302
        "node3"
303
      ],
304
      "os": "instance-debootstrap"
305
    },
306
    "instance8": {
307
      "disks": [
308
        {
309
          "mode": "rw",
310
          "size": 256
311
        }
312
      ],
313
      "disk_space_total": 256,
314
      "hypervisor": "kvm",
315
      "tags": [],
316
      "nics": [
317
        {
318
          "ip": null,
319
          "mac": "aa:00:00:3f:6d:e3",
320
          "link": "xen-br0",
321
          "mode": "bridged",
322
          "bridge": "xen-br0"
323
        }
324
      ],
325
      "vcpus": 1,
326
      "spindle_use": 1,
327
      "admin_state": "down",
328
      "disk_template": "plain",
329
      "memory": 128,
330
      "nodes": [
331
        "node4"
332
      ],
333
      "os": "debian-image"
334
    },
335
    "instance9": {
336
      "disks": [
337
        {
338
          "mode": "rw",
339
          "size": 128
340
        }
341
      ],
342
      "disk_space_total": 256,
343
      "hypervisor": "xen-pvm",
344
      "tags": [
345
        "test:test"
346
      ],
347
      "nics": [
348
        {
349
          "ip": null,
350
          "mac": "aa:00:00:10:d2:01",
351
          "link": "xen-br0",
352
          "mode": "bridged",
353
          "bridge": "xen-br0"
354
        }
355
      ],
356
      "vcpus": 1,
357
      "spindle_use": 1,
358
      "admin_state": "down",
359
      "disk_template": "drbd",
360
      "memory": 128,
361
      "nodes": [
362
        "node3",
363
        "node4"
364
      ],
365
      "os": "instance-debootstrap"
366
    },
367
    "instance20": {
368
      "disks": [
369
        {
370
          "mode": "rw",
371
          "size": 512
372
        }
373
      ],
374
      "disk_space_total": 512,
375
      "hypervisor": "kvm",
376
      "tags": [],
377
      "nics": [
378
        {
379
          "ip": null,
380
          "mac": "aa:00:00:db:2a:6d",
381
          "link": "xen-br0",
382
          "mode": "bridged",
383
          "bridge": "xen-br0"
384
        }
385
      ],
386
      "vcpus": 1,
387
      "spindle_use": 1,
388
      "admin_state": "down",
389
      "disk_template": "plain",
390
      "memory": 128,
391
      "nodes": [
392
        "node4"
393
      ],
394
      "os": "instance-debootstrap"
395
    }
396
  },
397
  "version": 2,
398
  "nodes": {
399
    "node1": {
400
      "total_disk": 1377280,
401
      "total_cpus": 4,
402
      "group": "uuid-group-1",
403
      "secondary_ip": "192.168.2.1",
404
      "i_pri_up_memory": 0,
405
      "tags": [],
406
      "master_candidate": true,
407
      "free_memory": 31389,
408
      "ndparams": {
409
        "spindle_count": 1,
410
        "oob_program": null
411
      },
412
      "reserved_memory": 1017,
413
      "master_capable": true,
414
      "free_disk": 1377280,
415
      "drained": false,
416
      "total_memory": 32763,
417
      "primary_ip": "192.168.1.1",
418
      "i_pri_memory": 0,
419
      "vm_capable": true,
420
      "offline": false
421
    },
422
    "node2": {
423
      "total_disk": 1377280,
424
      "total_cpus": 4,
425
      "group": "uuid-group-1",
426
      "secondary_ip": "192.168.2.2",
427
      "i_pri_up_memory": 0,
428
      "tags": [],
429
      "master_candidate": true,
430
      "free_memory": 31746,
431
      "ndparams": {
432
        "spindle_count": 1,
433
        "oob_program": null
434
      },
435
      "reserved_memory": 1017,
436
      "master_capable": true,
437
      "free_disk": 1376640,
438
      "drained": false,
439
      "total_memory": 32763,
440
      "primary_ip": "192.168.1.2",
441
      "i_pri_memory": 0,
442
      "vm_capable": true,
443
      "offline": false
444
    },
445
    "node3": {
446
      "total_disk": 1377304,
447
      "total_cpus": 4,
448
      "group": "uuid-group-1",
449
      "secondary_ip": "192.168.2.3",
450
      "i_pri_up_memory": 128,
451
      "tags": [],
452
      "master_candidate": true,
453
      "free_memory": 31234,
454
      "ndparams": {
455
        "spindle_count": 1,
456
        "oob_program": null
457
      },
458
      "reserved_memory": 1017,
459
      "master_capable": true,
460
      "free_disk": 1373336,
461
      "drained": false,
462
      "total_memory": 32763,
463
      "primary_ip": "192.168.1.3",
464
      "i_pri_memory": 2432,
465
      "vm_capable": true,
466
      "offline": false
467
    },
468
    "node4": {
469
      "total_disk": 1377280,
470
      "total_cpus": 4,
471
      "group": "uuid-group-1",
472
      "secondary_ip": "192.168.2.4",
473
      "i_pri_up_memory": 128,
474
      "tags": [],
475
      "master_candidate": true,
476
      "free_memory": 22914,
477
      "ndparams": {
478
        "spindle_count": 1,
479
        "oob_program": null
480
      },
481
      "reserved_memory": 1017,
482
      "master_capable": true,
483
      "free_disk": 1371520,
484
      "drained": false,
485
      "total_memory": 32763,
486
      "primary_ip": "192.168.1.4",
487
      "i_pri_memory": 23552,
488
      "vm_capable": true,
489
      "offline": false
490
    }
491
  },
492
  "request": {
493
    "disks": [
494
      {
495
        "mode": "rw",
496
        "size": 1024
497
      }
498
    ],
499
    "required_nodes": 2,
500
    "name": "instance1",
501
    "tags": [],
502
    "hypervisor": "xen-pvm",
503
    "disk_space_total": 1024,
504
    "nics": [
505
      {
506
        "ip": null,
507
        "mac": "00:11:22:33:44:55",
508
        "bridge": null
509
      }
510
    ],
511
    "vcpus": 1,
512
    "spindle_use": 1,
513
    "os": "instance-debootstrap",
514
    "disk_template": "drbd",
515
    "memory": 1024,
516
    "type": "allocate"
517
  }
518
}