Parse node group networks
[ganeti-github.git] / test / data / htools / hail-alloc-twodisks.json
1 {
2   "cluster_tags": [],
3   "instances": {},
4   "ipolicy": {
5     "max": {
6       "disk-size": 2048
7     },
8     "min": {
9       "disk-size": 1024
10     }
11   },
12   "nodegroups": {
13     "uuid-group-1": {
14       "alloc_policy": "preferred",
15       "ipolicy": {
16         "disk-templates": [
17           "file"
18         ],
19         "minmax": [
20           {
21             "max": {
22               "cpu-count": 2,
23               "disk-count": 8,
24               "disk-size": 2048,
25               "memory-size": 12800,
26               "nic-count": 8,
27               "spindle-use": 8
28             },
29             "min": {
30               "cpu-count": 1,
31               "disk-count": 1,
32               "disk-size": 1024,
33               "memory-size": 128,
34               "nic-count": 1,
35               "spindle-use": 1
36             }
37           }
38         ],
39         "spindle-ratio": 32.0,
40         "std": {
41           "cpu-count": 1,
42           "disk-count": 1,
43           "disk-size": 1024,
44           "memory-size": 128,
45           "nic-count": 1,
46           "spindle-use": 1
47         },
48         "vcpu-ratio": 4.0
49       },
50       "name": "default",
51       "networks": [],
52       "tags": []
53     }
54   },
55   "nodes": {
56     "node1": {
57       "drained": false,
58       "free_disk": 1377280,
59       "free_memory": 31389,
60       "group": "uuid-group-1",
61       "ndparams": {
62         "spindle_count": 1
63       },
64       "offline": false,
65       "reserved_memory": 1017,
66       "total_cpus": 4,
67       "total_disk": 1377280,
68       "total_memory": 32763
69     }
70   },
71   "request": {
72     "disk_space_total": 3072,
73     "disk_template": "file",
74     "disks": [
75       {
76         "size": 1536
77       },
78       {
79         "size": 1536
80       }
81     ],
82     "memory": 1024,
83     "name": "instance1",
84     "required_nodes": 1,
85     "spindle_use": 2,
86     "tags": [],
87     "type": "allocate",
88     "vcpus": 1
89   },
90   "version": 2
91 }