oneacct-export 0.3.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -1
- data/bin/oneacct-export +15 -3
- data/config/conf.yml +1 -0
- data/examples/usr/bin/oneacct-export-cron +31 -7
- data/lib/data_validators/apel_data_validator.rb +17 -5
- data/lib/data_validators/data_validator_helper.rb +1 -0
- data/lib/input_validator.rb +5 -0
- data/lib/one_data_accessor.rb +62 -10
- data/lib/one_worker.rb +89 -10
- data/lib/one_writer.rb +3 -1
- data/lib/oneacct_exporter.rb +3 -5
- data/lib/oneacct_exporter/version.rb +1 -1
- data/lib/oneacct_opts.rb +13 -3
- data/lib/output_types.rb +3 -3
- data/lib/templates/apel-0.2.erb +1 -1
- data/lib/templates/apel-0.4.erb +34 -0
- data/mock/one_data_accessor_cluster_01.xml +27 -0
- data/mock/one_data_accessor_cluster_02.xml +23 -0
- data/mock/one_data_accessor_host_01.xml +65 -0
- data/mock/one_data_accessor_host_02.xml +66 -0
- data/mock/one_data_accessor_host_03.xml +63 -0
- data/mock/one_data_accessor_host_04.xml +63 -0
- data/mock/one_data_accessor_host_05.xml +63 -0
- data/mock/one_worker_vm_number_of_public_ips_01.xml +275 -0
- data/mock/one_worker_vm_number_of_public_ips_02.xml +164 -0
- data/mock/one_worker_vm_number_of_public_ips_03.xml +189 -0
- data/mock/one_worker_vm_search_benchmark_01.xml +175 -0
- data/mock/one_worker_vm_search_benchmark_02.xml +175 -0
- data/oneacct-export.gemspec +6 -5
- data/spec/data_validators/apel_data_validator_spec.rb +72 -0
- data/spec/one_data_accessor_spec.rb +114 -43
- data/spec/one_worker_spec.rb +148 -18
- data/spec/oneacct_exporter_spec.rb +3 -13
- data/spec/oneacct_opts_spec.rb +22 -0
- data/spec/spec_helper.rb +2 -1
- metadata +40 -13
@@ -0,0 +1,63 @@
|
|
1
|
+
<HOST>
|
2
|
+
<ID>5</ID>
|
3
|
+
<NAME>whatever.in.czech.republic.cz</NAME>
|
4
|
+
<STATE>5</STATE>
|
5
|
+
<IM_MAD><![CDATA[kvm]]></IM_MAD>
|
6
|
+
<VM_MAD><![CDATA[kvm]]></VM_MAD>
|
7
|
+
<VN_MAD><![CDATA[802.1Q]]></VN_MAD>
|
8
|
+
<LAST_MON_TIME>1447930638</LAST_MON_TIME>
|
9
|
+
<CLUSTER_ID>-1</CLUSTER_ID>
|
10
|
+
<CLUSTER/>
|
11
|
+
<HOST_SHARE>
|
12
|
+
<DISK_USAGE>0</DISK_USAGE>
|
13
|
+
<MEM_USAGE>50331648</MEM_USAGE>
|
14
|
+
<CPU_USAGE>2000</CPU_USAGE>
|
15
|
+
<MAX_DISK>19686</MAX_DISK>
|
16
|
+
<MAX_MEM>57674040</MAX_MEM>
|
17
|
+
<MAX_CPU>3200</MAX_CPU>
|
18
|
+
<FREE_DISK>13945</FREE_DISK>
|
19
|
+
<FREE_MEM>30670728</FREE_MEM>
|
20
|
+
<FREE_CPU>3196</FREE_CPU>
|
21
|
+
<USED_DISK>4742</USED_DISK>
|
22
|
+
<USED_MEM>35391920</USED_MEM>
|
23
|
+
<USED_CPU>3</USED_CPU>
|
24
|
+
<RUNNING_VMS>11</RUNNING_VMS>
|
25
|
+
<DATASTORES>
|
26
|
+
<DS>
|
27
|
+
<FREE_MB><![CDATA[3037509]]></FREE_MB>
|
28
|
+
<ID><![CDATA[101]]></ID>
|
29
|
+
<TOTAL_MB><![CDATA[3338205]]></TOTAL_MB>
|
30
|
+
<USED_MB><![CDATA[122933]]></USED_MB>
|
31
|
+
<VMS_ALLOCATED_MB><![CDATA[122733]]></VMS_ALLOCATED_MB>
|
32
|
+
<VMS_REQUIRED_MB><![CDATA[130925]]></VMS_REQUIRED_MB>
|
33
|
+
</DS>
|
34
|
+
</DATASTORES>
|
35
|
+
</HOST_SHARE>
|
36
|
+
<VMS>
|
37
|
+
<ID>51575</ID>
|
38
|
+
<ID>53988</ID>
|
39
|
+
<ID>54035</ID>
|
40
|
+
<ID>54553</ID>
|
41
|
+
<ID>55276</ID>
|
42
|
+
<ID>56251</ID>
|
43
|
+
<ID>56288</ID>
|
44
|
+
<ID>56291</ID>
|
45
|
+
<ID>59948</ID>
|
46
|
+
<ID>60163</ID>
|
47
|
+
<ID>60173</ID>
|
48
|
+
</VMS>
|
49
|
+
<TEMPLATE>
|
50
|
+
<ARCH><![CDATA[x86_64]]></ARCH>
|
51
|
+
<CPUSPEED><![CDATA[1200]]></CPUSPEED>
|
52
|
+
<ERROR><![CDATA[Thu Nov 19 11:56:06 2015 : Error monitoring Host whatever.in.czech.republic.cz (21): -]]></ERROR>
|
53
|
+
<HOSTNAME><![CDATA[whatever.in.czech.republic.cz]]></HOSTNAME>
|
54
|
+
<HYPERVISOR><![CDATA[kvm]]></HYPERVISOR>
|
55
|
+
<MODELNAME><![CDATA[Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz]]></MODELNAME>
|
56
|
+
<NETRX><![CDATA[518778988428]]></NETRX>
|
57
|
+
<NETTX><![CDATA[761175714938]]></NETTX>
|
58
|
+
<PRIORITY><![CDATA[990]]></PRIORITY>
|
59
|
+
<RESERVED_CPU><![CDATA[]]></RESERVED_CPU>
|
60
|
+
<RESERVED_MEM><![CDATA[]]></RESERVED_MEM>
|
61
|
+
<VERSION><![CDATA[4.10.1]]></VERSION>
|
62
|
+
</TEMPLATE>
|
63
|
+
</HOST>
|
@@ -0,0 +1,275 @@
|
|
1
|
+
<VM>
|
2
|
+
<ID>36551</ID>
|
3
|
+
<UID>120</UID>
|
4
|
+
<GID>0</GID>
|
5
|
+
<UNAME>uname</UNAME>
|
6
|
+
<GNAME>gname</GNAME>
|
7
|
+
<NAME>one-36551</NAME>
|
8
|
+
<PERMISSIONS>
|
9
|
+
<OWNER_U>1</OWNER_U>
|
10
|
+
<OWNER_M>1</OWNER_M>
|
11
|
+
<OWNER_A>0</OWNER_A>
|
12
|
+
<GROUP_U>0</GROUP_U>
|
13
|
+
<GROUP_M>0</GROUP_M>
|
14
|
+
<GROUP_A>0</GROUP_A>
|
15
|
+
<OTHER_U>0</OTHER_U>
|
16
|
+
<OTHER_M>0</OTHER_M>
|
17
|
+
<OTHER_A>0</OTHER_A>
|
18
|
+
</PERMISSIONS>
|
19
|
+
<LAST_POLL>1383741679</LAST_POLL>
|
20
|
+
<STATE>6</STATE>
|
21
|
+
<LCM_STATE>0</LCM_STATE>
|
22
|
+
<RESCHED>0</RESCHED>
|
23
|
+
<STIME>1383741160</STIME>
|
24
|
+
<ETIME>1383742270</ETIME>
|
25
|
+
<DEPLOY_ID>one-36551</DEPLOY_ID>
|
26
|
+
<MEMORY>1736960</MEMORY>
|
27
|
+
<CPU>0</CPU>
|
28
|
+
<NET_TX>43557888</NET_TX>
|
29
|
+
<NET_RX>376832</NET_RX>
|
30
|
+
<TEMPLATE>
|
31
|
+
<CONTEXT>
|
32
|
+
<DISK_ID><![CDATA[1]]></DISK_ID>
|
33
|
+
<FILES><![CDATA[https://somewhere.com/init.sh]]></FILES>
|
34
|
+
<HOSTNAME><![CDATA[DebianVM]]></HOSTNAME>
|
35
|
+
<PUBLIC_IP><![CDATA[123.123.5.5]]></PUBLIC_IP>
|
36
|
+
<SSH_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABasdgsdfhfgjhxhcHPNFthrHT5/+9lfrQCorJy5YjMJEGBC22dfgjghkDjSDFgjdhgKd54645dfJKd39LdlyzlEaCnjGUeD4C6tZdAISLSDfghSDFgSJ54sSFGJ5RTHARJIRJcX8QRVH46Zq02AeTgrty567ss34tqaa8Pt user@machine1.somewhere.com]]></SSH_KEY>
|
37
|
+
<TARGET><![CDATA[xvdb]]></TARGET>
|
38
|
+
</CONTEXT>
|
39
|
+
<CPU><![CDATA[0.5]]></CPU>
|
40
|
+
<DISK>
|
41
|
+
<CLONE><![CDATA[YES]]></CLONE>
|
42
|
+
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
|
43
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
44
|
+
<DATASTORE><![CDATA[default]]></DATASTORE>
|
45
|
+
<DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
|
46
|
+
<DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
|
47
|
+
<DISK_ID><![CDATA[0]]></DISK_ID>
|
48
|
+
<DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
|
49
|
+
<IMAGE><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></IMAGE>
|
50
|
+
<IMAGE_ID><![CDATA[31]]></IMAGE_ID>
|
51
|
+
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
|
52
|
+
<LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
|
53
|
+
<READONLY><![CDATA[NO]]></READONLY>
|
54
|
+
<SAVE><![CDATA[NO]]></SAVE>
|
55
|
+
<SIZE><![CDATA[10240]]></SIZE>
|
56
|
+
<SOURCE><![CDATA[/opt/opennebula/var/datastores/1/c516eb23fcb184f1458104a5d66f36b0]]></SOURCE>
|
57
|
+
<TARGET><![CDATA[xvda]]></TARGET>
|
58
|
+
<TM_MAD><![CDATA[ssh]]></TM_MAD>
|
59
|
+
<TYPE><![CDATA[FILE]]></TYPE>
|
60
|
+
<VMCATCHER_EVENT_AD_MPURI><![CDATA[https://appdb.egi.eu/store/vo/image/image_name_from_VMCATCHER_EVENT_AD_MPURI_tag/]]></VMCATCHER_EVENT_AD_MPURI>
|
61
|
+
<VMCATCHER_EVENT_DC_IDENTIFIER><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></VMCATCHER_EVENT_DC_IDENTIFIER>
|
62
|
+
<VMCATCHER_EVENT_HV_VERSION><![CDATA[20141029]]></VMCATCHER_EVENT_HV_VERSION>
|
63
|
+
<VMCATCHER_EVENT_IL_DC_IDENTIFIER><![CDATA[76fdee70-8119-5d33-9f40-3c57e1c60df1]]></VMCATCHER_EVENT_IL_DC_IDENTIFIER>
|
64
|
+
<VMCATCHER_EVENT_SL_CHECKSUM_SHA512><![CDATA[02a2b436e8f10c22527795c33bf623a1a0ef2e7036166e8831f653c3662f8f897a821f4751d774947e32a854654ff645097c47da236e46ad54806c6fc72a29ce]]></VMCATCHER_EVENT_SL_CHECKSUM_SHA512>
|
65
|
+
</DISK>
|
66
|
+
<DISK>
|
67
|
+
<CLONE><![CDATA[YES]]></CLONE>
|
68
|
+
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
|
69
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
70
|
+
<DATASTORE><![CDATA[default]]></DATASTORE>
|
71
|
+
<DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
|
72
|
+
<DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
|
73
|
+
<DISK_ID><![CDATA[0]]></DISK_ID>
|
74
|
+
<DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
|
75
|
+
<IMAGE><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></IMAGE>
|
76
|
+
<IMAGE_ID><![CDATA[227]]></IMAGE_ID>
|
77
|
+
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
|
78
|
+
<LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
|
79
|
+
<READONLY><![CDATA[NO]]></READONLY>
|
80
|
+
<SAVE><![CDATA[NO]]></SAVE>
|
81
|
+
<SIZE><![CDATA[42368]]></SIZE>
|
82
|
+
<SOURCE><![CDATA[/opt/opennebula/var/datastores/1/c516eb23fcb184f1458104a5d66f36b0]]></SOURCE>
|
83
|
+
<TARGET><![CDATA[xvda]]></TARGET>
|
84
|
+
<TM_MAD><![CDATA[ssh]]></TM_MAD>
|
85
|
+
<TYPE><![CDATA[FILE]]></TYPE>
|
86
|
+
<VMCATCHER_EVENT_AD_MPURI><![CDATA[https://appdb.egi.eu/store/vo/image/662b0e71-3e21-5f43-b6a1-cc2f51319fa7:156/]]></VMCATCHER_EVENT_AD_MPURI>
|
87
|
+
<VMCATCHER_EVENT_DC_IDENTIFIER><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></VMCATCHER_EVENT_DC_IDENTIFIER>
|
88
|
+
<VMCATCHER_EVENT_HV_VERSION><![CDATA[20141029]]></VMCATCHER_EVENT_HV_VERSION>
|
89
|
+
<VMCATCHER_EVENT_IL_DC_IDENTIFIER><![CDATA[76fdee70-8119-5d33-9f40-3c57e1c60df1]]></VMCATCHER_EVENT_IL_DC_IDENTIFIER>
|
90
|
+
<VMCATCHER_EVENT_SL_CHECKSUM_SHA512><![CDATA[02a2b436e8f10c22527795c33bf623a1a0ef2e7036166e8831f653c3662f8f897a821f4751d774947e32a854654ff645097c47da236e46ad54806c6fc72a29ce]]></VMCATCHER_EVENT_SL_CHECKSUM_SHA512>
|
91
|
+
</DISK>
|
92
|
+
<ERROR>
|
93
|
+
<MESSAGE><![CDATA[Error executing image transfer script: Path https://somewhere.com/init.sh is not allowed!]]></MESSAGE>
|
94
|
+
<TIMESTAMP><![CDATA[Wed Nov 6 13:34:19 2013]]></TIMESTAMP>
|
95
|
+
</ERROR>
|
96
|
+
<FEATURES>
|
97
|
+
<ACPI><![CDATA[no]]></ACPI>
|
98
|
+
</FEATURES>
|
99
|
+
<MEMORY>1736960</MEMORY>
|
100
|
+
<NAME><![CDATA[one-36551]]></NAME>
|
101
|
+
<NIC>
|
102
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
103
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
104
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
105
|
+
<IP><![CDATA[95.1.1.7]]></IP>
|
106
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
107
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
108
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
109
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
110
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
111
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
112
|
+
</NIC>
|
113
|
+
<NIC>
|
114
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
115
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
116
|
+
<IP><![CDATA[123.123.5.7]]></IP>
|
117
|
+
<IP><![CDATA[10.0.7.7]]></IP> <!-- private IP -->
|
118
|
+
<IP><![CDATA[172.16.7.156]]></IP> <!-- private IP -->
|
119
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
120
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
121
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
122
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
123
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
124
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
125
|
+
</NIC>
|
126
|
+
<NIC>
|
127
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
128
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
129
|
+
<IP><![CDATA[124.120.5.5]]></IP>
|
130
|
+
<IP><![CDATA[98.120.5.5]]></IP>
|
131
|
+
<IP><![CDATA[10.31.74.189]]></IP> <!-- private IP -->
|
132
|
+
<IP><![CDATA[95.1.1.7]]></IP>
|
133
|
+
<IP><![CDATA[95.1.1.7]]></IP>
|
134
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
135
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
136
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
137
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
138
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
139
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
140
|
+
</NIC>
|
141
|
+
<NIC>
|
142
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
143
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
144
|
+
<IP><![CDATA[128.1.1.5]]></IP>
|
145
|
+
<IP><![CDATA[98.120.5.5]]></IP>
|
146
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
147
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
148
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
149
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
150
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
151
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
152
|
+
</NIC>
|
153
|
+
<NIC>
|
154
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
155
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
156
|
+
<IP><![CDATA[124.120.5.5]]></IP>
|
157
|
+
<IP><![CDATA[172.31.254.254]]></IP> <!-- private IP -->
|
158
|
+
<IP><![CDATA[192.168.78.251]]></IP> <!-- private IP -->
|
159
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
160
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
161
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
162
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
163
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
164
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
165
|
+
</NIC>
|
166
|
+
<NIC>
|
167
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
168
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
169
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
170
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
171
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
172
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
173
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
174
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
175
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
176
|
+
</NIC>
|
177
|
+
<NIC>
|
178
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
179
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
180
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
181
|
+
<IP><![CDATA[192.168.1.100]]></IP> <!-- private IP -->
|
182
|
+
<IP><![CDATA[172.120.5.5]]></IP>
|
183
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
184
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
185
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
186
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
187
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
188
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
189
|
+
</NIC>
|
190
|
+
<NIC>
|
191
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
192
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
193
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
194
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
195
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
196
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
197
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
198
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
199
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
200
|
+
</NIC>
|
201
|
+
<NIC>
|
202
|
+
<BRIDGE><![CDATA[xenbr0]]></BRIDGE>
|
203
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
204
|
+
<IP><![CDATA[98.94.93.92]]></IP>
|
205
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
206
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
207
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
208
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
209
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
210
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
211
|
+
</NIC>
|
212
|
+
<OS>
|
213
|
+
<BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
|
214
|
+
</OS>
|
215
|
+
<RAW>
|
216
|
+
<TYPE><![CDATA[xen]]></TYPE>
|
217
|
+
</RAW>
|
218
|
+
<TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
|
219
|
+
<VCPU><![CDATA[1]]></VCPU>
|
220
|
+
<VMID><![CDATA[36551]]></VMID>
|
221
|
+
</TEMPLATE>
|
222
|
+
<USER_TEMPLATE>
|
223
|
+
<ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
|
224
|
+
<DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
|
225
|
+
<OCCI_COMPUTE_MIXINS><![CDATA[http://occi.localhost/occi/infrastructure/os_tpl#uuid_monitoring_20 http://schema.fedcloud.egi.eu/occi/infrastructure/resource_tpl#small http://opennebula.org/occi/infrastructure#compute]]></OCCI_COMPUTE_MIXINS>
|
226
|
+
<OCCI_ID><![CDATA[46083]]></OCCI_ID>
|
227
|
+
<USER_X509_DN><![CDATA[/Dn=FrOm/CN=DN/CN=TeMpLaTe]]></USER_X509_DN>
|
228
|
+
</USER_TEMPLATE>
|
229
|
+
<HISTORY_RECORDS>
|
230
|
+
<HISTORY>
|
231
|
+
<OID>36551</OID>
|
232
|
+
<SEQ>0</SEQ>
|
233
|
+
<HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
|
234
|
+
<HID>11</HID>
|
235
|
+
<CID>100</CID>
|
236
|
+
<STIME>1383741169</STIME>
|
237
|
+
<ETIME>1383741259</ETIME>
|
238
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
239
|
+
<VNMMAD>fw</VNMMAD>
|
240
|
+
<TMMAD>ssh</TMMAD>
|
241
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
242
|
+
<DS_ID>0</DS_ID>
|
243
|
+
<PSTIME>1383741169</PSTIME>
|
244
|
+
<PETIME>1383741259</PETIME>
|
245
|
+
<RSTIME>0</RSTIME>
|
246
|
+
<RETIME>0</RETIME>
|
247
|
+
<ESTIME>0</ESTIME>
|
248
|
+
<EETIME>0</EETIME>
|
249
|
+
<REASON>1</REASON>
|
250
|
+
<ACTION>0</ACTION>
|
251
|
+
</HISTORY>
|
252
|
+
<HISTORY>
|
253
|
+
<OID>36551</OID>
|
254
|
+
<SEQ>1</SEQ>
|
255
|
+
<HOSTNAME>supermachine2.somewhere.com</HOSTNAME>
|
256
|
+
<HID>11</HID>
|
257
|
+
<CID>100</CID>
|
258
|
+
<STIME>1383741589</STIME>
|
259
|
+
<ETIME>1383742270</ETIME>
|
260
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
261
|
+
<VNMMAD>fw</VNMMAD>
|
262
|
+
<TMMAD>ssh</TMMAD>
|
263
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
264
|
+
<DS_ID>0</DS_ID>
|
265
|
+
<PSTIME>1383741589</PSTIME>
|
266
|
+
<PETIME>1383741674</PETIME>
|
267
|
+
<RSTIME>1383741674</RSTIME>
|
268
|
+
<RETIME>1383742270</RETIME>
|
269
|
+
<ESTIME>1383742270</ESTIME>
|
270
|
+
<EETIME>1383742270</EETIME>
|
271
|
+
<REASON>0</REASON>
|
272
|
+
<ACTION>0</ACTION>
|
273
|
+
</HISTORY>
|
274
|
+
</HISTORY_RECORDS>
|
275
|
+
</VM>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<VM>
|
2
|
+
<ID>36551</ID>
|
3
|
+
<UID>120</UID>
|
4
|
+
<GID>0</GID>
|
5
|
+
<UNAME>uname</UNAME>
|
6
|
+
<GNAME>gname</GNAME>
|
7
|
+
<NAME>one-36551</NAME>
|
8
|
+
<PERMISSIONS>
|
9
|
+
<OWNER_U>1</OWNER_U>
|
10
|
+
<OWNER_M>1</OWNER_M>
|
11
|
+
<OWNER_A>0</OWNER_A>
|
12
|
+
<GROUP_U>0</GROUP_U>
|
13
|
+
<GROUP_M>0</GROUP_M>
|
14
|
+
<GROUP_A>0</GROUP_A>
|
15
|
+
<OTHER_U>0</OTHER_U>
|
16
|
+
<OTHER_M>0</OTHER_M>
|
17
|
+
<OTHER_A>0</OTHER_A>
|
18
|
+
</PERMISSIONS>
|
19
|
+
<LAST_POLL>1383741679</LAST_POLL>
|
20
|
+
<STATE>6</STATE>
|
21
|
+
<LCM_STATE>0</LCM_STATE>
|
22
|
+
<RESCHED>0</RESCHED>
|
23
|
+
<STIME>1383741160</STIME>
|
24
|
+
<ETIME>1383742270</ETIME>
|
25
|
+
<DEPLOY_ID>one-36551</DEPLOY_ID>
|
26
|
+
<MEMORY>1736960</MEMORY>
|
27
|
+
<CPU>0</CPU>
|
28
|
+
<NET_TX>43557888</NET_TX>
|
29
|
+
<NET_RX>376832</NET_RX>
|
30
|
+
<TEMPLATE>
|
31
|
+
<CONTEXT>
|
32
|
+
<DISK_ID><![CDATA[1]]></DISK_ID>
|
33
|
+
<FILES><![CDATA[https://somewhere.com/init.sh]]></FILES>
|
34
|
+
<HOSTNAME><![CDATA[DebianVM]]></HOSTNAME>
|
35
|
+
<PUBLIC_IP><![CDATA[123.123.5.5]]></PUBLIC_IP>
|
36
|
+
<SSH_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABasdgsdfhfgjhxhcHPNFthrHT5/+9lfrQCorJy5YjMJEGBC22dfgjghkDjSDFgjdhgKd54645dfJKd39LdlyzlEaCnjGUeD4C6tZdAISLSDfghSDFgSJ54sSFGJ5RTHARJIRJcX8QRVH46Zq02AeTgrty567ss34tqaa8Pt user@machine1.somewhere.com]]></SSH_KEY>
|
37
|
+
<TARGET><![CDATA[xvdb]]></TARGET>
|
38
|
+
</CONTEXT>
|
39
|
+
<CPU><![CDATA[0.5]]></CPU>
|
40
|
+
<DISK>
|
41
|
+
<CLONE><![CDATA[YES]]></CLONE>
|
42
|
+
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
|
43
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
44
|
+
<DATASTORE><![CDATA[default]]></DATASTORE>
|
45
|
+
<DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
|
46
|
+
<DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
|
47
|
+
<DISK_ID><![CDATA[0]]></DISK_ID>
|
48
|
+
<DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
|
49
|
+
<IMAGE><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></IMAGE>
|
50
|
+
<IMAGE_ID><![CDATA[31]]></IMAGE_ID>
|
51
|
+
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
|
52
|
+
<LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
|
53
|
+
<READONLY><![CDATA[NO]]></READONLY>
|
54
|
+
<SAVE><![CDATA[NO]]></SAVE>
|
55
|
+
<SIZE><![CDATA[10240]]></SIZE>
|
56
|
+
<SOURCE><![CDATA[/opt/opennebula/var/datastores/1/c516eb23fcb184f1458104a5d66f36b0]]></SOURCE>
|
57
|
+
<TARGET><![CDATA[xvda]]></TARGET>
|
58
|
+
<TM_MAD><![CDATA[ssh]]></TM_MAD>
|
59
|
+
<TYPE><![CDATA[FILE]]></TYPE>
|
60
|
+
<VMCATCHER_EVENT_AD_MPURI><![CDATA[https://appdb.egi.eu/store/vo/image/image_name_from_VMCATCHER_EVENT_AD_MPURI_tag/]]></VMCATCHER_EVENT_AD_MPURI>
|
61
|
+
<VMCATCHER_EVENT_DC_IDENTIFIER><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></VMCATCHER_EVENT_DC_IDENTIFIER>
|
62
|
+
<VMCATCHER_EVENT_HV_VERSION><![CDATA[20141029]]></VMCATCHER_EVENT_HV_VERSION>
|
63
|
+
<VMCATCHER_EVENT_IL_DC_IDENTIFIER><![CDATA[76fdee70-8119-5d33-9f40-3c57e1c60df1]]></VMCATCHER_EVENT_IL_DC_IDENTIFIER>
|
64
|
+
<VMCATCHER_EVENT_SL_CHECKSUM_SHA512><![CDATA[02a2b436e8f10c22527795c33bf623a1a0ef2e7036166e8831f653c3662f8f897a821f4751d774947e32a854654ff645097c47da236e46ad54806c6fc72a29ce]]></VMCATCHER_EVENT_SL_CHECKSUM_SHA512>
|
65
|
+
</DISK>
|
66
|
+
<DISK>
|
67
|
+
<CLONE><![CDATA[YES]]></CLONE>
|
68
|
+
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
|
69
|
+
<CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
|
70
|
+
<DATASTORE><![CDATA[default]]></DATASTORE>
|
71
|
+
<DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
|
72
|
+
<DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
|
73
|
+
<DISK_ID><![CDATA[0]]></DISK_ID>
|
74
|
+
<DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
|
75
|
+
<IMAGE><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></IMAGE>
|
76
|
+
<IMAGE_ID><![CDATA[227]]></IMAGE_ID>
|
77
|
+
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
|
78
|
+
<LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
|
79
|
+
<READONLY><![CDATA[NO]]></READONLY>
|
80
|
+
<SAVE><![CDATA[NO]]></SAVE>
|
81
|
+
<SIZE><![CDATA[42368]]></SIZE>
|
82
|
+
<SOURCE><![CDATA[/opt/opennebula/var/datastores/1/c516eb23fcb184f1458104a5d66f36b0]]></SOURCE>
|
83
|
+
<TARGET><![CDATA[xvda]]></TARGET>
|
84
|
+
<TM_MAD><![CDATA[ssh]]></TM_MAD>
|
85
|
+
<TYPE><![CDATA[FILE]]></TYPE>
|
86
|
+
<VMCATCHER_EVENT_AD_MPURI><![CDATA[https://appdb.egi.eu/store/vo/image/662b0e71-3e21-5f43-b6a1-cc2f51319fa7:156/]]></VMCATCHER_EVENT_AD_MPURI>
|
87
|
+
<VMCATCHER_EVENT_DC_IDENTIFIER><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></VMCATCHER_EVENT_DC_IDENTIFIER>
|
88
|
+
<VMCATCHER_EVENT_HV_VERSION><![CDATA[20141029]]></VMCATCHER_EVENT_HV_VERSION>
|
89
|
+
<VMCATCHER_EVENT_IL_DC_IDENTIFIER><![CDATA[76fdee70-8119-5d33-9f40-3c57e1c60df1]]></VMCATCHER_EVENT_IL_DC_IDENTIFIER>
|
90
|
+
<VMCATCHER_EVENT_SL_CHECKSUM_SHA512><![CDATA[02a2b436e8f10c22527795c33bf623a1a0ef2e7036166e8831f653c3662f8f897a821f4751d774947e32a854654ff645097c47da236e46ad54806c6fc72a29ce]]></VMCATCHER_EVENT_SL_CHECKSUM_SHA512>
|
91
|
+
</DISK>
|
92
|
+
<ERROR>
|
93
|
+
<MESSAGE><![CDATA[Error executing image transfer script: Path https://somewhere.com/init.sh is not allowed!]]></MESSAGE>
|
94
|
+
<TIMESTAMP><![CDATA[Wed Nov 6 13:34:19 2013]]></TIMESTAMP>
|
95
|
+
</ERROR>
|
96
|
+
<FEATURES>
|
97
|
+
<ACPI><![CDATA[no]]></ACPI>
|
98
|
+
</FEATURES>
|
99
|
+
<MEMORY>1736960</MEMORY>
|
100
|
+
<NAME><![CDATA[one-36551]]></NAME>
|
101
|
+
<OS>
|
102
|
+
<BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
|
103
|
+
</OS>
|
104
|
+
<RAW>
|
105
|
+
<TYPE><![CDATA[xen]]></TYPE>
|
106
|
+
</RAW>
|
107
|
+
<TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
|
108
|
+
<VCPU><![CDATA[1]]></VCPU>
|
109
|
+
<VMID><![CDATA[36551]]></VMID>
|
110
|
+
</TEMPLATE>
|
111
|
+
<USER_TEMPLATE>
|
112
|
+
<ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
|
113
|
+
<DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
|
114
|
+
<OCCI_COMPUTE_MIXINS><![CDATA[http://occi.localhost/occi/infrastructure/os_tpl#uuid_monitoring_20 http://schema.fedcloud.egi.eu/occi/infrastructure/resource_tpl#small http://opennebula.org/occi/infrastructure#compute]]></OCCI_COMPUTE_MIXINS>
|
115
|
+
<OCCI_ID><![CDATA[46083]]></OCCI_ID>
|
116
|
+
<USER_X509_DN><![CDATA[/Dn=FrOm/CN=DN/CN=TeMpLaTe]]></USER_X509_DN>
|
117
|
+
</USER_TEMPLATE>
|
118
|
+
<HISTORY_RECORDS>
|
119
|
+
<HISTORY>
|
120
|
+
<OID>36551</OID>
|
121
|
+
<SEQ>0</SEQ>
|
122
|
+
<HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
|
123
|
+
<HID>11</HID>
|
124
|
+
<CID>100</CID>
|
125
|
+
<STIME>1383741169</STIME>
|
126
|
+
<ETIME>1383741259</ETIME>
|
127
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
128
|
+
<VNMMAD>fw</VNMMAD>
|
129
|
+
<TMMAD>ssh</TMMAD>
|
130
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
131
|
+
<DS_ID>0</DS_ID>
|
132
|
+
<PSTIME>1383741169</PSTIME>
|
133
|
+
<PETIME>1383741259</PETIME>
|
134
|
+
<RSTIME>0</RSTIME>
|
135
|
+
<RETIME>0</RETIME>
|
136
|
+
<ESTIME>0</ESTIME>
|
137
|
+
<EETIME>0</EETIME>
|
138
|
+
<REASON>1</REASON>
|
139
|
+
<ACTION>0</ACTION>
|
140
|
+
</HISTORY>
|
141
|
+
<HISTORY>
|
142
|
+
<OID>36551</OID>
|
143
|
+
<SEQ>1</SEQ>
|
144
|
+
<HOSTNAME>supermachine2.somewhere.com</HOSTNAME>
|
145
|
+
<HID>11</HID>
|
146
|
+
<CID>100</CID>
|
147
|
+
<STIME>1383741589</STIME>
|
148
|
+
<ETIME>1383742270</ETIME>
|
149
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
150
|
+
<VNMMAD>fw</VNMMAD>
|
151
|
+
<TMMAD>ssh</TMMAD>
|
152
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
153
|
+
<DS_ID>0</DS_ID>
|
154
|
+
<PSTIME>1383741589</PSTIME>
|
155
|
+
<PETIME>1383741674</PETIME>
|
156
|
+
<RSTIME>1383741674</RSTIME>
|
157
|
+
<RETIME>1383742270</RETIME>
|
158
|
+
<ESTIME>1383742270</ESTIME>
|
159
|
+
<EETIME>1383742270</EETIME>
|
160
|
+
<REASON>0</REASON>
|
161
|
+
<ACTION>0</ACTION>
|
162
|
+
</HISTORY>
|
163
|
+
</HISTORY_RECORDS>
|
164
|
+
</VM>
|