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