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