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