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,189 @@
|
|
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[98.120.5.5]]></IP>
|
105
|
+
<IP><![CDATA[172.28.5.5]]></IP> <!-- private IP -->
|
106
|
+
<IP><![CDATA[172.31.1.1]]></IP> <!-- private IP -->
|
107
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
108
|
+
<IP><![CDATA[124.123.5.5]]></IP>
|
109
|
+
<IP><![CDATA[125.123.5.5]]></IP>
|
110
|
+
<IP><![CDATA[192.168.254.1]]></IP> <!-- private IP -->
|
111
|
+
<IP><![CDATA[192.169.15.5]]></IP>
|
112
|
+
<IP><![CDATA[123.123.5.5]]></IP>
|
113
|
+
<IP><![CDATA[124.123.5.5]]></IP>
|
114
|
+
<IP><![CDATA[126.123.5.5]]></IP>
|
115
|
+
<IP><![CDATA[10.120.5.5]]></IP> <!-- private IP -->
|
116
|
+
<IP><![CDATA[172.15.1.54]]></IP>
|
117
|
+
<IP><![CDATA[127.123.5.5]]></IP>
|
118
|
+
<IP><![CDATA[10.120.5.5]]></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
|
+
<OS>
|
127
|
+
<BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
|
128
|
+
</OS>
|
129
|
+
<RAW>
|
130
|
+
<TYPE><![CDATA[xen]]></TYPE>
|
131
|
+
</RAW>
|
132
|
+
<TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
|
133
|
+
<VCPU><![CDATA[1]]></VCPU>
|
134
|
+
<VMID><![CDATA[36551]]></VMID>
|
135
|
+
</TEMPLATE>
|
136
|
+
<USER_TEMPLATE>
|
137
|
+
<ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
|
138
|
+
<DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
|
139
|
+
<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>
|
140
|
+
<OCCI_ID><![CDATA[46083]]></OCCI_ID>
|
141
|
+
<USER_X509_DN><![CDATA[/Dn=FrOm/CN=DN/CN=TeMpLaTe]]></USER_X509_DN>
|
142
|
+
</USER_TEMPLATE>
|
143
|
+
<HISTORY_RECORDS>
|
144
|
+
<HISTORY>
|
145
|
+
<OID>36551</OID>
|
146
|
+
<SEQ>0</SEQ>
|
147
|
+
<HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
|
148
|
+
<HID>11</HID>
|
149
|
+
<CID>100</CID>
|
150
|
+
<STIME>1383741169</STIME>
|
151
|
+
<ETIME>1383741259</ETIME>
|
152
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
153
|
+
<VNMMAD>fw</VNMMAD>
|
154
|
+
<TMMAD>ssh</TMMAD>
|
155
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
156
|
+
<DS_ID>0</DS_ID>
|
157
|
+
<PSTIME>1383741169</PSTIME>
|
158
|
+
<PETIME>1383741259</PETIME>
|
159
|
+
<RSTIME>0</RSTIME>
|
160
|
+
<RETIME>0</RETIME>
|
161
|
+
<ESTIME>0</ESTIME>
|
162
|
+
<EETIME>0</EETIME>
|
163
|
+
<REASON>1</REASON>
|
164
|
+
<ACTION>0</ACTION>
|
165
|
+
</HISTORY>
|
166
|
+
<HISTORY>
|
167
|
+
<OID>36551</OID>
|
168
|
+
<SEQ>1</SEQ>
|
169
|
+
<HOSTNAME>supermachine2.somewhere.com</HOSTNAME>
|
170
|
+
<HID>11</HID>
|
171
|
+
<CID>100</CID>
|
172
|
+
<STIME>1383741589</STIME>
|
173
|
+
<ETIME>1383742270</ETIME>
|
174
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
175
|
+
<VNMMAD>fw</VNMMAD>
|
176
|
+
<TMMAD>ssh</TMMAD>
|
177
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
178
|
+
<DS_ID>0</DS_ID>
|
179
|
+
<PSTIME>1383741589</PSTIME>
|
180
|
+
<PETIME>1383741674</PETIME>
|
181
|
+
<RSTIME>1383741674</RSTIME>
|
182
|
+
<RETIME>1383742270</RETIME>
|
183
|
+
<ESTIME>1383742270</ESTIME>
|
184
|
+
<EETIME>1383742270</EETIME>
|
185
|
+
<REASON>0</REASON>
|
186
|
+
<ACTION>0</ACTION>
|
187
|
+
</HISTORY>
|
188
|
+
</HISTORY_RECORDS>
|
189
|
+
</VM>
|
@@ -0,0 +1,175 @@
|
|
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
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
106
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
107
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
108
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
109
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
110
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
111
|
+
</NIC>
|
112
|
+
<OS>
|
113
|
+
<BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
|
114
|
+
</OS>
|
115
|
+
<RAW>
|
116
|
+
<TYPE><![CDATA[xen]]></TYPE>
|
117
|
+
</RAW>
|
118
|
+
<TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
|
119
|
+
<VCPU><![CDATA[1]]></VCPU>
|
120
|
+
<VMID><![CDATA[36551]]></VMID>
|
121
|
+
</TEMPLATE>
|
122
|
+
<USER_TEMPLATE>
|
123
|
+
<ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
|
124
|
+
<DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
|
125
|
+
<OCCI_COMPUTE_MIXINS><![CDATA[mixin1 mixin4 mixin3]]></OCCI_COMPUTE_MIXINS>
|
126
|
+
<OCCI_ID><![CDATA[46083]]></OCCI_ID>
|
127
|
+
<USER_X509_DN><![CDATA[/Dn=FrOm/CN=DN/CN=TeMpLaTe]]></USER_X509_DN>
|
128
|
+
</USER_TEMPLATE>
|
129
|
+
<HISTORY_RECORDS>
|
130
|
+
<HISTORY>
|
131
|
+
<OID>36551</OID>
|
132
|
+
<SEQ>0</SEQ>
|
133
|
+
<HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
|
134
|
+
<HID>19</HID>
|
135
|
+
<CID>100</CID>
|
136
|
+
<STIME>1383741169</STIME>
|
137
|
+
<ETIME>1383741259</ETIME>
|
138
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
139
|
+
<VNMMAD>fw</VNMMAD>
|
140
|
+
<TMMAD>ssh</TMMAD>
|
141
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
142
|
+
<DS_ID>0</DS_ID>
|
143
|
+
<PSTIME>1383741169</PSTIME>
|
144
|
+
<PETIME>1383741259</PETIME>
|
145
|
+
<RSTIME>0</RSTIME>
|
146
|
+
<RETIME>0</RETIME>
|
147
|
+
<ESTIME>0</ESTIME>
|
148
|
+
<EETIME>0</EETIME>
|
149
|
+
<REASON>1</REASON>
|
150
|
+
<ACTION>0</ACTION>
|
151
|
+
</HISTORY>
|
152
|
+
<HISTORY>
|
153
|
+
<OID>36551</OID>
|
154
|
+
<SEQ>1</SEQ>
|
155
|
+
<HOSTNAME>supermachine2.somewhere.com</HOSTNAME>
|
156
|
+
<HID>11</HID>
|
157
|
+
<CID>100</CID>
|
158
|
+
<STIME>1383741589</STIME>
|
159
|
+
<ETIME>1383742270</ETIME>
|
160
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
161
|
+
<VNMMAD>fw</VNMMAD>
|
162
|
+
<TMMAD>ssh</TMMAD>
|
163
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
164
|
+
<DS_ID>0</DS_ID>
|
165
|
+
<PSTIME>1383741589</PSTIME>
|
166
|
+
<PETIME>1383741674</PETIME>
|
167
|
+
<RSTIME>1383741674</RSTIME>
|
168
|
+
<RETIME>1383742270</RETIME>
|
169
|
+
<ESTIME>1383742270</ESTIME>
|
170
|
+
<EETIME>1383742270</EETIME>
|
171
|
+
<REASON>0</REASON>
|
172
|
+
<ACTION>0</ACTION>
|
173
|
+
</HISTORY>
|
174
|
+
</HISTORY_RECORDS>
|
175
|
+
</VM>
|
@@ -0,0 +1,175 @@
|
|
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
|
+
<MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
|
106
|
+
<NETWORK><![CDATA[public]]></NETWORK>
|
107
|
+
<NETWORK_ID><![CDATA[4]]></NETWORK_ID>
|
108
|
+
<VLAN><![CDATA[NO]]></VLAN>
|
109
|
+
<WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
|
110
|
+
<WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
|
111
|
+
</NIC>
|
112
|
+
<OS>
|
113
|
+
<BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
|
114
|
+
</OS>
|
115
|
+
<RAW>
|
116
|
+
<TYPE><![CDATA[xen]]></TYPE>
|
117
|
+
</RAW>
|
118
|
+
<TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
|
119
|
+
<VCPU><![CDATA[1]]></VCPU>
|
120
|
+
<VMID><![CDATA[36551]]></VMID>
|
121
|
+
</TEMPLATE>
|
122
|
+
<USER_TEMPLATE>
|
123
|
+
<ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
|
124
|
+
<DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
|
125
|
+
<OCCI_COMPUTE_MIXINS><![CDATA[mixin99 mixin98]]></OCCI_COMPUTE_MIXINS>
|
126
|
+
<OCCI_ID><![CDATA[46083]]></OCCI_ID>
|
127
|
+
<USER_X509_DN><![CDATA[/Dn=FrOm/CN=DN/CN=TeMpLaTe]]></USER_X509_DN>
|
128
|
+
</USER_TEMPLATE>
|
129
|
+
<HISTORY_RECORDS>
|
130
|
+
<HISTORY>
|
131
|
+
<OID>36551</OID>
|
132
|
+
<SEQ>0</SEQ>
|
133
|
+
<HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
|
134
|
+
<HID>99</HID>
|
135
|
+
<CID>100</CID>
|
136
|
+
<STIME>1383741169</STIME>
|
137
|
+
<ETIME>1383741259</ETIME>
|
138
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
139
|
+
<VNMMAD>fw</VNMMAD>
|
140
|
+
<TMMAD>ssh</TMMAD>
|
141
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
142
|
+
<DS_ID>0</DS_ID>
|
143
|
+
<PSTIME>1383741169</PSTIME>
|
144
|
+
<PETIME>1383741259</PETIME>
|
145
|
+
<RSTIME>0</RSTIME>
|
146
|
+
<RETIME>0</RETIME>
|
147
|
+
<ESTIME>0</ESTIME>
|
148
|
+
<EETIME>0</EETIME>
|
149
|
+
<REASON>1</REASON>
|
150
|
+
<ACTION>0</ACTION>
|
151
|
+
</HISTORY>
|
152
|
+
<HISTORY>
|
153
|
+
<OID>36551</OID>
|
154
|
+
<SEQ>1</SEQ>
|
155
|
+
<HOSTNAME>supermachine2.somewhere.com</HOSTNAME>
|
156
|
+
<HID>19</HID>
|
157
|
+
<CID>100</CID>
|
158
|
+
<STIME>1383741589</STIME>
|
159
|
+
<ETIME>1383742270</ETIME>
|
160
|
+
<VMMMAD>vmm_xen</VMMMAD>
|
161
|
+
<VNMMAD>fw</VNMMAD>
|
162
|
+
<TMMAD>ssh</TMMAD>
|
163
|
+
<DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
|
164
|
+
<DS_ID>0</DS_ID>
|
165
|
+
<PSTIME>1383741589</PSTIME>
|
166
|
+
<PETIME>1383741674</PETIME>
|
167
|
+
<RSTIME>1383741674</RSTIME>
|
168
|
+
<RETIME>1383742270</RETIME>
|
169
|
+
<ESTIME>1383742270</ESTIME>
|
170
|
+
<EETIME>1383742270</EETIME>
|
171
|
+
<REASON>0</REASON>
|
172
|
+
<ACTION>0</ACTION>
|
173
|
+
</HISTORY>
|
174
|
+
</HISTORY_RECORDS>
|
175
|
+
</VM>
|