tengine_resource 0.5.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +30 -0
  4. data/Gemfile.lock +106 -0
  5. data/README.rdoc +20 -0
  6. data/Rakefile +42 -0
  7. data/VERSION +1 -0
  8. data/bin/tengine_resource_watchd +8 -0
  9. data/config/.gitignore +2 -0
  10. data/config/watchd.yml.erb.example +52 -0
  11. data/lib/tengine/resource.rb +29 -0
  12. data/lib/tengine/resource/config.rb +6 -0
  13. data/lib/tengine/resource/config/resource.rb +194 -0
  14. data/lib/tengine/resource/credential.rb +156 -0
  15. data/lib/tengine/resource/credential/ec2.rb +5 -0
  16. data/lib/tengine/resource/credential/ec2/dummy.rb +148 -0
  17. data/lib/tengine/resource/credential/ec2/launch_options.rb +179 -0
  18. data/lib/tengine/resource/drivers/resource_control_driver.rb +58 -0
  19. data/lib/tengine/resource/net_ssh.rb +134 -0
  20. data/lib/tengine/resource/observer.rb +25 -0
  21. data/lib/tengine/resource/physical_server.rb +7 -0
  22. data/lib/tengine/resource/provider.rb +82 -0
  23. data/lib/tengine/resource/provider/ec2.rb +187 -0
  24. data/lib/tengine/resource/provider/wakame.rb +615 -0
  25. data/lib/tengine/resource/server.rb +62 -0
  26. data/lib/tengine/resource/virtual_server.rb +62 -0
  27. data/lib/tengine/resource/virtual_server_image.rb +34 -0
  28. data/lib/tengine/resource/virtual_server_type.rb +21 -0
  29. data/lib/tengine/resource/watcher.rb +121 -0
  30. data/lib/tengine_resource.rb +4 -0
  31. data/spec/fixtures/goku_at_ec2_ap_northeast.rb +177 -0
  32. data/spec/mongoid.yml +35 -0
  33. data/spec/spec_helper.rb +40 -0
  34. data/spec/support/ec2.rb +129 -0
  35. data/spec/support/mongo_index_key_log.rb +91 -0
  36. data/spec/tengine/resource/bugfix/watcher_for_wakame_spec.rb +232 -0
  37. data/spec/tengine/resource/credential_spec.rb +205 -0
  38. data/spec/tengine/resource/drivers/resource_control_driver_spec.rb +84 -0
  39. data/spec/tengine/resource/net_ssh_spec.rb +148 -0
  40. data/spec/tengine/resource/physical_server_spec.rb +47 -0
  41. data/spec/tengine/resource/provider/ec2_spec.rb +473 -0
  42. data/spec/tengine/resource/provider/test_files/describe_host_nodes.json +22 -0
  43. data/spec/tengine/resource/provider/test_files/describe_images.json +23 -0
  44. data/spec/tengine/resource/provider/test_files/describe_instance_specs.json +23 -0
  45. data/spec/tengine/resource/provider/test_files/describe_instances.json +56 -0
  46. data/spec/tengine/resource/provider/test_files/run_instances.json +30 -0
  47. data/spec/tengine/resource/provider/test_files/terminate_instances.json +3 -0
  48. data/spec/tengine/resource/provider/wakame/00_describe_host_nodes_0_physical_servers.json +8 -0
  49. data/spec/tengine/resource/provider/wakame/01_describe_host_nodes_10_physical_servers.json +139 -0
  50. data/spec/tengine/resource/provider/wakame/02_describe_host_nodes_60_physical_servers.json +795 -0
  51. data/spec/tengine/resource/provider/wakame/10_describe_instances_0_virtual_servers.json +8 -0
  52. data/spec/tengine/resource/provider/wakame/11_describe_instances_10_virtual_servers.json +469 -0
  53. data/spec/tengine/resource/provider/wakame/12_describe_instances_after_run_instances.json +280 -0
  54. data/spec/tengine/resource/provider/wakame/13_describe_instances_after_terminate_instances.json +279 -0
  55. data/spec/tengine/resource/provider/wakame/20_describe_images_0_virtual_server_images.json +8 -0
  56. data/spec/tengine/resource/provider/wakame/21_describe_images_5_virtual_server_images.json +84 -0
  57. data/spec/tengine/resource/provider/wakame/22_describe_images_60_virtual_server_images.json +856 -0
  58. data/spec/tengine/resource/provider/wakame/30_describe_instance_specs_0_virtual_server_specs.json +8 -0
  59. data/spec/tengine/resource/provider/wakame/31_describe_instance_specs_4_virtual_server_specs.json +66 -0
  60. data/spec/tengine/resource/provider/wakame/40_run_instances_0_virtual_servers.json +1 -0
  61. data/spec/tengine/resource/provider/wakame/41_run_instances_1_virtual_servers.json +22 -0
  62. data/spec/tengine/resource/provider/wakame/42_run_instances_5_virtual_servers.json +106 -0
  63. data/spec/tengine/resource/provider/wakame/50_terminate_instances_0_virtual_servers.json +1 -0
  64. data/spec/tengine/resource/provider/wakame/51_terminate_instances_3_virtual_servers.json +5 -0
  65. data/spec/tengine/resource/provider/wakame/sync_physical_servers_spec.rb +114 -0
  66. data/spec/tengine/resource/provider/wakame/sync_virtual_server_images_spec.rb +116 -0
  67. data/spec/tengine/resource/provider/wakame/sync_virtual_server_types_spec.rb +116 -0
  68. data/spec/tengine/resource/provider/wakame/sync_virtual_servers_spec.rb +216 -0
  69. data/spec/tengine/resource/provider/wakame_api_spec.rb +319 -0
  70. data/spec/tengine/resource/provider/wakame_spec.rb +339 -0
  71. data/spec/tengine/resource/provider_spec.rb +252 -0
  72. data/spec/tengine/resource/server_spec.rb +195 -0
  73. data/spec/tengine/resource/test_files/.gitignore +6 -0
  74. data/spec/tengine/resource/test_files/00_describe_host_nodes_0_physical_servers.json +8 -0
  75. data/spec/tengine/resource/test_files/01_describe_host_nodes_10_physical_servers.json +139 -0
  76. data/spec/tengine/resource/test_files/02_describe_host_nodes_60_physical_servers.json +795 -0
  77. data/spec/tengine/resource/test_files/10_describe_instances_0_virtual_servers.json +8 -0
  78. data/spec/tengine/resource/test_files/11_describe_instances_10_virtual_servers.json +469 -0
  79. data/spec/tengine/resource/test_files/12_describe_instances_after_run_instances.json +280 -0
  80. data/spec/tengine/resource/test_files/13_describe_instances_after_terminate_instances.json +279 -0
  81. data/spec/tengine/resource/test_files/14_describe_instances_after_run_1_instance.json +55 -0
  82. data/spec/tengine/resource/test_files/20_describe_images_0_virtual_server_images.json +8 -0
  83. data/spec/tengine/resource/test_files/21_describe_images_5_virtual_server_images.json +84 -0
  84. data/spec/tengine/resource/test_files/22_describe_images_60_virtual_server_images.json +856 -0
  85. data/spec/tengine/resource/test_files/30_describe_instance_specs_0_virtual_server_specs.json +8 -0
  86. data/spec/tengine/resource/test_files/31_describe_instance_specs_4_virtual_server_specs.json +66 -0
  87. data/spec/tengine/resource/test_files/40_run_instances_0_virtual_servers.json +1 -0
  88. data/spec/tengine/resource/test_files/41_run_instances_1_virtual_servers.json +22 -0
  89. data/spec/tengine/resource/test_files/42_run_instances_5_virtual_servers.json +106 -0
  90. data/spec/tengine/resource/test_files/43_run_instances_1_virtual_servers_without_aws_availability_zone.json +22 -0
  91. data/spec/tengine/resource/test_files/50_terminate_instances_0_virtual_servers.json +1 -0
  92. data/spec/tengine/resource/test_files/51_terminate_instances_3_virtual_servers.json +5 -0
  93. data/spec/tengine/resource/virtual_server_image_spec.rb +94 -0
  94. data/spec/tengine/resource/virtual_server_spec.rb +116 -0
  95. data/spec/tengine/resource/virtual_server_type_spec.rb +4 -0
  96. data/spec/tengine/resource/watcher_spec.rb +1026 -0
  97. data/spec/tengine_resource_spec.rb +5 -0
  98. data/tengine_resource.gemspec +171 -0
  99. data/tmp/log/.gitignore +1 -0
  100. metadata +286 -0
@@ -0,0 +1,280 @@
1
+ [
2
+ {
3
+ "owner_total": 6,
4
+ "start": 0,
5
+ "results": [
6
+ {
7
+ "id": "virtual_server_uuid_91",
8
+ "host_node": "physical_server_uuid_01",
9
+ "image_id": "virtual_server_image_uuid_01",
10
+ "instance_spec_id": "virtual_server_spec_uuid_01",
11
+ "state": "running",
12
+ "network": [
13
+ {
14
+ "network_name": "nw-data",
15
+ "ipaddr": ["192.168.2.91"],
16
+ "nat_network_name": "nw-outside",
17
+ "nat_ipaddr": ["172.16.0.91"],
18
+ "dns_name": "jria301q.shpoolxx.vdc.local",
19
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
20
+ },
21
+ {
22
+ "network_name": "nw-data_2",
23
+ "ipaddr": ["192.168.3.91"],
24
+ "nat_network_name": "nw-outside_2",
25
+ "nat_ipaddr": ["172.16.1.91"],
26
+ "dns_name": "jria301q.shpoolxx.vdc.local",
27
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
28
+ }
29
+ ],
30
+ "vif": [
31
+ {
32
+ "ipv4": {
33
+ "nat_address": "172.16.0.234",
34
+ "address": "192.168.2.188"
35
+ },
36
+ "vif_id": "vif-aspojqs4"
37
+ }
38
+ ],
39
+ "status": "online",
40
+ "cpu_cores": 1,
41
+ "memory_size": 256,
42
+ "ha_enabled": 0,
43
+ "arch": "x86_64",
44
+ "hostname": "jria301q",
45
+ "created_at": "2011-10-18T06:51:16Z",
46
+ "netfilter_group_id": ["ng-demofgr"],
47
+ "ssh_key_pair": null,
48
+ "volume": [],
49
+ "netfilter_group": ["default"]
50
+ },
51
+ {
52
+ "id": "virtual_server_uuid_92",
53
+ "host_node": "physical_server_uuid_01",
54
+ "image_id": "virtual_server_image_uuid_01",
55
+ "instance_spec_id": "virtual_server_spec_uuid_02",
56
+ "state": "running",
57
+ "network": [
58
+ {
59
+ "network_name": "nw-data",
60
+ "ipaddr": ["192.168.2.92"],
61
+ "nat_network_name": "nw-outside",
62
+ "nat_ipaddr": ["172.16.0.92"],
63
+ "dns_name": "jria301q.shpoolxx.vdc.local",
64
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
65
+ },
66
+ {
67
+ "network_name": "nw-data_2",
68
+ "ipaddr": ["192.168.3.92"],
69
+ "nat_network_name": "nw-outside_2",
70
+ "nat_ipaddr": ["172.16.1.92"],
71
+ "dns_name": "jria301q.shpoolxx.vdc.local",
72
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
73
+ }
74
+ ],
75
+ "vif": [
76
+ {
77
+ "ipv4": {
78
+ "nat_address": "172.16.0.234",
79
+ "address": "192.168.2.188"
80
+ },
81
+ "vif_id": "vif-aspojqs4"
82
+ }
83
+ ],
84
+ "status": "online",
85
+ "cpu_cores": 1,
86
+ "memory_size": 256,
87
+ "ha_enabled": 0,
88
+ "arch": "x86_64",
89
+ "hostname": "jria301q",
90
+ "created_at": "2011-10-18T06:51:16Z",
91
+ "netfilter_group_id": ["ng-demofgr"],
92
+ "ssh_key_pair": null,
93
+ "volume": [],
94
+ "netfilter_group": ["default"]
95
+ },
96
+ {
97
+ "id": "virtual_server_uuid_93",
98
+ "host_node": "physical_server_uuid_01",
99
+ "image_id": "virtual_server_image_uuid_01",
100
+ "instance_spec_id": "virtual_server_spec_uuid_02",
101
+ "state": "running",
102
+ "network": [
103
+ {
104
+ "network_name": "nw-data",
105
+ "ipaddr": ["192.168.2.93"],
106
+ "nat_network_name": "nw-outside",
107
+ "nat_ipaddr": ["172.16.0.93"],
108
+ "dns_name": "jria301q.shpoolxx.vdc.local",
109
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
110
+ },
111
+ {
112
+ "network_name": "nw-data_2",
113
+ "ipaddr": ["192.168.3.93"],
114
+ "nat_network_name": "nw-outside_2",
115
+ "nat_ipaddr": ["172.16.1.93"],
116
+ "dns_name": "jria301q.shpoolxx.vdc.local",
117
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
118
+ }
119
+ ],
120
+ "vif": [
121
+ {
122
+ "ipv4": {
123
+ "nat_address": "172.16.0.234",
124
+ "address": "192.168.2.188"
125
+ },
126
+ "vif_id": "vif-aspojqs4"
127
+ }
128
+ ],
129
+ "status": "online",
130
+ "cpu_cores": 1,
131
+ "memory_size": 256,
132
+ "ha_enabled": 0,
133
+ "arch": "x86_64",
134
+ "hostname": "jria301q",
135
+ "created_at": "2011-10-18T06:51:16Z",
136
+ "netfilter_group_id": ["ng-demofgr"],
137
+ "ssh_key_pair": null,
138
+ "volume": [],
139
+ "netfilter_group": ["default"]
140
+ },
141
+ {
142
+ "id": "virtual_server_uuid_94",
143
+ "host_node": "physical_server_uuid_01",
144
+ "image_id": "virtual_server_image_uuid_01",
145
+ "instance_spec_id": "virtual_server_spec_uuid_02",
146
+ "state": "running",
147
+ "network": [
148
+ {
149
+ "network_name": "nw-data",
150
+ "ipaddr": ["192.168.2.94"],
151
+ "nat_network_name": "nw-outside",
152
+ "nat_ipaddr": ["172.16.0.94"],
153
+ "dns_name": "jria301q.shpoolxx.vdc.local",
154
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
155
+ },
156
+ {
157
+ "network_name": "nw-data_2",
158
+ "ipaddr": ["192.168.3.94"],
159
+ "nat_network_name": "nw-outside_2",
160
+ "nat_ipaddr": ["172.16.1.94"],
161
+ "dns_name": "jria301q.shpoolxx.vdc.local",
162
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
163
+ }
164
+ ],
165
+ "vif": [
166
+ {
167
+ "ipv4": {
168
+ "nat_address": "172.16.0.234",
169
+ "address": "192.168.2.188"
170
+ },
171
+ "vif_id": "vif-aspojqs4"
172
+ }
173
+ ],
174
+ "status": "online",
175
+ "cpu_cores": 1,
176
+ "memory_size": 256,
177
+ "ha_enabled": 0,
178
+ "arch": "x86_64",
179
+ "hostname": "jria301q",
180
+ "created_at": "2011-10-18T06:51:16Z",
181
+ "netfilter_group_id": ["ng-demofgr"],
182
+ "ssh_key_pair": null,
183
+ "volume": [],
184
+ "netfilter_group": ["default"]
185
+ },
186
+ {
187
+ "id": "virtual_server_uuid_95",
188
+ "host_node": "physical_server_uuid_01",
189
+ "image_id": "virtual_server_image_uuid_01",
190
+ "instance_spec_id": "virtual_server_spec_uuid_02",
191
+ "state": "running",
192
+ "network": [
193
+ {
194
+ "network_name": "nw-data",
195
+ "ipaddr": ["192.168.2.95"],
196
+ "nat_network_name": "nw-outside",
197
+ "nat_ipaddr": ["172.16.0.95"],
198
+ "dns_name": "jria301q.shpoolxx.vdc.local",
199
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
200
+ },
201
+ {
202
+ "network_name": "nw-data_2",
203
+ "ipaddr": ["192.168.3.95"],
204
+ "nat_network_name": "nw-outside_2",
205
+ "nat_ipaddr": ["172.16.1.95"],
206
+ "dns_name": "jria301q.shpoolxx.vdc.local",
207
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
208
+ }
209
+ ],
210
+ "vif": [
211
+ {
212
+ "ipv4": {
213
+ "nat_address": "172.16.0.234",
214
+ "address": "192.168.2.188"
215
+ },
216
+ "vif_id": "vif-aspojqs4"
217
+ }
218
+ ],
219
+ "status": "online",
220
+ "cpu_cores": 1,
221
+ "memory_size": 256,
222
+ "ha_enabled": 0,
223
+ "arch": "x86_64",
224
+ "hostname": "jria301q",
225
+ "created_at": "2011-10-18T06:51:16Z",
226
+ "netfilter_group_id": ["ng-demofgr"],
227
+ "ssh_key_pair": null,
228
+ "volume": [],
229
+ "netfilter_group": ["default"]
230
+ },
231
+ {
232
+ "id": "virtual_server_uuid_96",
233
+ "host_node": "physical_server_uuid_01",
234
+ "image_id": "virtual_server_image_uuid_01",
235
+ "instance_spec_id": "virtual_server_spec_uuid_02",
236
+ "state": "running",
237
+ "network": [
238
+ {
239
+ "network_name": "nw-data",
240
+ "ipaddr": ["192.168.2.96"],
241
+ "nat_network_name": "nw-outside",
242
+ "nat_ipaddr": ["172.16.0.96"],
243
+ "dns_name": "jria301q.shpoolxx.vdc.local",
244
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
245
+ },
246
+ {
247
+ "network_name": "nw-data_2",
248
+ "ipaddr": ["192.168.3.96"],
249
+ "nat_network_name": "nw-outside_2",
250
+ "nat_ipaddr": ["172.16.1.96"],
251
+ "dns_name": "jria301q.shpoolxx.vdc.local",
252
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
253
+ }
254
+ ],
255
+ "vif": [
256
+ {
257
+ "ipv4": {
258
+ "nat_address": "172.16.0.234",
259
+ "address": "192.168.2.188"
260
+ },
261
+ "vif_id": "vif-aspojqs4"
262
+ }
263
+ ],
264
+ "status": "online",
265
+ "cpu_cores": 1,
266
+ "memory_size": 256,
267
+ "ha_enabled": 0,
268
+ "arch": "x86_64",
269
+ "hostname": "jria301q",
270
+ "created_at": "2011-10-18T06:51:16Z",
271
+ "netfilter_group_id": ["ng-demofgr"],
272
+ "ssh_key_pair": null,
273
+ "volume": [],
274
+ "netfilter_group": ["default"]
275
+ }
276
+
277
+ ],
278
+ "limit": null
279
+ }
280
+ ]
@@ -0,0 +1,279 @@
1
+ [
2
+ {
3
+ "owner_total": 6,
4
+ "start": 0,
5
+ "results": [
6
+ {
7
+ "id": "virtual_server_uuid_91",
8
+ "host_node": "physical_server_uuid_01",
9
+ "image_id": "virtual_server_image_uuid_01",
10
+ "instance_spec_id": "virtual_server_spec_uuid_01",
11
+ "state": "terminated",
12
+ "network": [
13
+ {
14
+ "network_name": "nw-data",
15
+ "ipaddr": ["192.168.2.91"],
16
+ "nat_network_name": "nw-outside",
17
+ "nat_ipaddr": ["172.16.0.91"],
18
+ "dns_name": "jria301q.shpoolxx.vdc.local",
19
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
20
+ },
21
+ {
22
+ "network_name": "nw-data_2",
23
+ "ipaddr": ["192.168.3.91"],
24
+ "nat_network_name": "nw-outside_2",
25
+ "nat_ipaddr": ["172.16.1.91"],
26
+ "dns_name": "jria301q.shpoolxx.vdc.local",
27
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
28
+ }
29
+ ],
30
+ "vif": [
31
+ {
32
+ "ipv4": {
33
+ "nat_address": "172.16.0.234",
34
+ "address": "192.168.2.188"
35
+ },
36
+ "vif_id": "vif-aspojqs4"
37
+ }
38
+ ],
39
+ "status": "online",
40
+ "cpu_cores": 1,
41
+ "memory_size": 256,
42
+ "ha_enabled": 0,
43
+ "arch": "x86_64",
44
+ "hostname": "jria301q",
45
+ "created_at": "2011-10-18T06:51:16Z",
46
+ "netfilter_group_id": ["ng-demofgr"],
47
+ "ssh_key_pair": null,
48
+ "volume": [],
49
+ "netfilter_group": ["default"]
50
+ },
51
+ {
52
+ "id": "virtual_server_uuid_92",
53
+ "host_node": "physical_server_uuid_01",
54
+ "image_id": "virtual_server_image_uuid_01",
55
+ "instance_spec_id": "virtual_server_spec_uuid_01",
56
+ "state": "terminated",
57
+ "network": [
58
+ {
59
+ "network_name": "nw-data",
60
+ "ipaddr": ["192.168.2.92"],
61
+ "nat_network_name": "nw-outside",
62
+ "nat_ipaddr": ["172.16.0.92"],
63
+ "dns_name": "jria301q.shpoolxx.vdc.local",
64
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
65
+ },
66
+ {
67
+ "network_name": "nw-data_2",
68
+ "ipaddr": ["192.168.3.92"],
69
+ "nat_network_name": "nw-outside_2",
70
+ "nat_ipaddr": ["172.16.1.92"],
71
+ "dns_name": "jria301q.shpoolxx.vdc.local",
72
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
73
+ }
74
+ ],
75
+ "vif": [
76
+ {
77
+ "ipv4": {
78
+ "nat_address": "172.16.0.234",
79
+ "address": "192.168.2.188"
80
+ },
81
+ "vif_id": "vif-aspojqs4"
82
+ }
83
+ ],
84
+ "status": "online",
85
+ "cpu_cores": 1,
86
+ "memory_size": 256,
87
+ "ha_enabled": 0,
88
+ "arch": "x86_64",
89
+ "hostname": "jria301q",
90
+ "created_at": "2011-10-18T06:51:16Z",
91
+ "netfilter_group_id": ["ng-demofgr"],
92
+ "ssh_key_pair": null,
93
+ "volume": [],
94
+ "netfilter_group": ["default"]
95
+ },
96
+ {
97
+ "id": "virtual_server_uuid_93",
98
+ "host_node": "physical_server_uuid_01",
99
+ "image_id": "virtual_server_image_uuid_01",
100
+ "instance_spec_id": "virtual_server_spec_uuid_01",
101
+ "state": "shuttingdown",
102
+ "network": [
103
+ {
104
+ "network_name": "nw-data",
105
+ "ipaddr": ["192.168.2.93"],
106
+ "nat_network_name": "nw-outside",
107
+ "nat_ipaddr": ["172.16.0.93"],
108
+ "dns_name": "jria301q.shpoolxx.vdc.local",
109
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
110
+ },
111
+ {
112
+ "network_name": "nw-data_2",
113
+ "ipaddr": ["192.168.3.93"],
114
+ "nat_network_name": "nw-outside_2",
115
+ "nat_ipaddr": ["172.16.1.93"],
116
+ "dns_name": "jria301q.shpoolxx.vdc.local",
117
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
118
+ }
119
+ ],
120
+ "vif": [
121
+ {
122
+ "ipv4": {
123
+ "nat_address": "172.16.0.234",
124
+ "address": "192.168.2.188"
125
+ },
126
+ "vif_id": "vif-aspojqs4"
127
+ }
128
+ ],
129
+ "status": "online",
130
+ "cpu_cores": 1,
131
+ "memory_size": 256,
132
+ "ha_enabled": 0,
133
+ "arch": "x86_64",
134
+ "hostname": "jria301q",
135
+ "created_at": "2011-10-18T06:51:16Z",
136
+ "netfilter_group_id": ["ng-demofgr"],
137
+ "ssh_key_pair": null,
138
+ "volume": [],
139
+ "netfilter_group": ["default"]
140
+ },
141
+ {
142
+ "id": "virtual_server_uuid_94",
143
+ "host_node": "physical_server_uuid_01",
144
+ "image_id": "virtual_server_image_uuid_01",
145
+ "instance_spec_id": "virtual_server_spec_uuid_01",
146
+ "state": "running",
147
+ "network": [
148
+ {
149
+ "network_name": "nw-data",
150
+ "ipaddr": ["192.168.2.94"],
151
+ "nat_network_name": "nw-outside",
152
+ "nat_ipaddr": ["172.16.0.94"],
153
+ "dns_name": "jria301q.shpoolxx.vdc.local",
154
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
155
+ },
156
+ {
157
+ "network_name": "nw-data_2",
158
+ "ipaddr": ["192.168.3.94"],
159
+ "nat_network_name": "nw-outside_2",
160
+ "nat_ipaddr": ["172.16.1.94"],
161
+ "dns_name": "jria301q.shpoolxx.vdc.local",
162
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
163
+ }
164
+ ],
165
+ "vif": [
166
+ {
167
+ "ipv4": {
168
+ "nat_address": "172.16.0.234",
169
+ "address": "192.168.2.188"
170
+ },
171
+ "vif_id": "vif-aspojqs4"
172
+ }
173
+ ],
174
+ "status": "online",
175
+ "cpu_cores": 1,
176
+ "memory_size": 256,
177
+ "ha_enabled": 0,
178
+ "arch": "x86_64",
179
+ "hostname": "jria301q",
180
+ "created_at": "2011-10-18T06:51:16Z",
181
+ "netfilter_group_id": ["ng-demofgr"],
182
+ "ssh_key_pair": null,
183
+ "volume": [],
184
+ "netfilter_group": ["default"]
185
+ },
186
+ {
187
+ "id": "virtual_server_uuid_95",
188
+ "host_node": "physical_server_uuid_01",
189
+ "image_id": "virtual_server_image_uuid_01",
190
+ "instance_spec_id": "virtual_server_spec_uuid_01",
191
+ "state": "running",
192
+ "network": [
193
+ {
194
+ "network_name": "nw-data",
195
+ "ipaddr": ["192.168.2.95"],
196
+ "nat_network_name": "nw-outside",
197
+ "nat_ipaddr": ["172.16.0.95"],
198
+ "dns_name": "jria301q.shpoolxx.vdc.local",
199
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
200
+ },
201
+ {
202
+ "network_name": "nw-data_2",
203
+ "ipaddr": ["192.168.3.95"],
204
+ "nat_network_name": "nw-outside_2",
205
+ "nat_ipaddr": ["172.16.1.95"],
206
+ "dns_name": "jria301q.shpoolxx.vdc.local",
207
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
208
+ }
209
+ ],
210
+ "vif": [
211
+ {
212
+ "ipv4": {
213
+ "nat_address": "172.16.0.234",
214
+ "address": "192.168.2.188"
215
+ },
216
+ "vif_id": "vif-aspojqs4"
217
+ }
218
+ ],
219
+ "status": "online",
220
+ "cpu_cores": 1,
221
+ "memory_size": 256,
222
+ "ha_enabled": 0,
223
+ "arch": "x86_64",
224
+ "hostname": "jria301q",
225
+ "created_at": "2011-10-18T06:51:16Z",
226
+ "netfilter_group_id": ["ng-demofgr"],
227
+ "ssh_key_pair": null,
228
+ "volume": [],
229
+ "netfilter_group": ["default"]
230
+ },
231
+ {
232
+ "id": "virtual_server_uuid_96",
233
+ "host_node": "physical_server_uuid_01",
234
+ "image_id": "virtual_server_image_uuid_01",
235
+ "instance_spec_id": "virtual_server_spec_uuid_01",
236
+ "state": "running",
237
+ "network": [
238
+ {
239
+ "network_name": "nw-data",
240
+ "ipaddr": ["192.168.2.96"],
241
+ "nat_network_name": "nw-outside",
242
+ "nat_ipaddr": ["172.16.0.96"],
243
+ "dns_name": "jria301q.shpoolxx.vdc.local",
244
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
245
+ },
246
+ {
247
+ "network_name": "nw-data_2",
248
+ "ipaddr": ["192.168.3.96"],
249
+ "nat_network_name": "nw-outside_2",
250
+ "nat_ipaddr": ["172.16.1.96"],
251
+ "dns_name": "jria301q.shpoolxx.vdc.local",
252
+ "nat_dns_name": "jria301q.shpoolxx.vdc.public"
253
+ }
254
+ ],
255
+ "vif": [
256
+ {
257
+ "ipv4": {
258
+ "nat_address": "172.16.0.234",
259
+ "address": "192.168.2.188"
260
+ },
261
+ "vif_id": "vif-aspojqs4"
262
+ }
263
+ ],
264
+ "status": "online",
265
+ "cpu_cores": 1,
266
+ "memory_size": 256,
267
+ "ha_enabled": 0,
268
+ "arch": "x86_64",
269
+ "hostname": "jria301q",
270
+ "created_at": "2011-10-18T06:51:16Z",
271
+ "netfilter_group_id": ["ng-demofgr"],
272
+ "ssh_key_pair": null,
273
+ "volume": [],
274
+ "netfilter_group": ["default"]
275
+ }
276
+ ],
277
+ "limit": null
278
+ }
279
+ ]