oneacct-export 0.2.7 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +1 -21
  5. data/bin/oneacct-export +7 -6
  6. data/config/conf.yml +25 -7
  7. data/lib/data_validators/apel_data_validator.rb +99 -0
  8. data/lib/data_validators/data_compute.rb +57 -0
  9. data/lib/data_validators/data_validator.rb +12 -0
  10. data/lib/data_validators/data_validator_helper.rb +15 -0
  11. data/lib/data_validators/logstash_data_validator.rb +82 -0
  12. data/lib/data_validators/pbs_data_validator.rb +86 -0
  13. data/lib/errors/not_implemented_error.rb +3 -0
  14. data/lib/errors/validation_error.rb +3 -0
  15. data/lib/errors.rb +2 -0
  16. data/lib/input_validator.rb +12 -2
  17. data/lib/one_data_accessor.rb +11 -10
  18. data/lib/one_worker.rb +109 -137
  19. data/lib/oneacct_exporter/version.rb +1 -1
  20. data/lib/oneacct_exporter.rb +9 -7
  21. data/lib/oneacct_opts.rb +36 -13
  22. data/lib/output_types.rb +5 -0
  23. data/lib/redis_conf.rb +2 -2
  24. data/lib/settings.rb +3 -3
  25. data/lib/templates/apel-0.2.erb +6 -6
  26. data/lib/templates/logstash-0.1.erb +3 -0
  27. data/lib/templates/pbs-0.1.erb +6 -0
  28. data/mock/{one_worker_vm8.xml → one_worker_vm_dn01.xml} +76 -74
  29. data/mock/one_worker_vm_dn02.xml +174 -0
  30. data/mock/{one_worker_DISK_missing.xml → one_worker_vm_empty_disk_records.xml} +10 -6
  31. data/mock/one_worker_vm_empty_history_records.xml +131 -0
  32. data/mock/one_worker_vm_image_name01.xml +175 -0
  33. data/mock/{one_worker_valid_machine.xml → one_worker_vm_image_name02.xml} +35 -7
  34. data/mock/one_worker_vm_image_name03.xml +167 -0
  35. data/mock/{one_worker_vm2.xml → one_worker_vm_image_name04.xml} +38 -9
  36. data/mock/{one_worker_vm1.xml → one_worker_vm_image_name05.xml} +36 -8
  37. data/mock/{one_worker_vm9.xml → one_worker_vm_image_name06.xml} +8 -5
  38. data/oneacct-export.gemspec +1 -0
  39. data/spec/data_validators/apel_data_validator_spec.rb +497 -0
  40. data/spec/data_validators/data_compute_spec.rb +193 -0
  41. data/spec/data_validators/data_validator_helper_spec.rb +66 -0
  42. data/spec/data_validators/data_validator_spec.rb +14 -0
  43. data/spec/data_validators/logstash_data_validator_spec.rb +469 -0
  44. data/spec/data_validators/pbs_data_validator_spec.rb +353 -0
  45. data/spec/one_worker_spec.rb +234 -542
  46. data/spec/oneacct_exporter_spec.rb +1 -41
  47. data/spec/oneacct_opts_spec.rb +135 -32
  48. data/spec/spec_helper.rb +18 -1
  49. metadata +51 -52
  50. data/mock/one_worker_DEPLOY_ID_missing.xml +0 -136
  51. data/mock/one_worker_DISK_SIZE_nan.xml +0 -147
  52. data/mock/one_worker_ETIME_0.xml +0 -137
  53. data/mock/one_worker_ETIME_missing.xml +0 -136
  54. data/mock/one_worker_ETIME_nan.xml +0 -137
  55. data/mock/one_worker_GID_missing.xml +0 -136
  56. data/mock/one_worker_GNAME_missing.xml +0 -136
  57. data/mock/one_worker_HISTORY_RECORDS_missing.xml +0 -91
  58. data/mock/one_worker_HISTORY_many.xml +0 -137
  59. data/mock/one_worker_HISTORY_missing.xml +0 -93
  60. data/mock/one_worker_HISTORY_one.xml +0 -115
  61. data/mock/one_worker_IMAGE_ID_missing.xml +0 -136
  62. data/mock/one_worker_MEMORY_0.xml +0 -137
  63. data/mock/one_worker_MEMORY_missing.xml +0 -135
  64. data/mock/one_worker_MEMORY_nan.xml +0 -137
  65. data/mock/one_worker_NET_RX_0.xml +0 -137
  66. data/mock/one_worker_NET_RX_missing.xml +0 -136
  67. data/mock/one_worker_NET_RX_nan.xml +0 -137
  68. data/mock/one_worker_NET_TX_0.xml +0 -137
  69. data/mock/one_worker_NET_TX_missing.xml +0 -136
  70. data/mock/one_worker_NET_TX_nan.xml +0 -137
  71. data/mock/one_worker_RETIME_0_RUNNING.xml +0 -115
  72. data/mock/one_worker_RETIME_0_STOPPED.xml +0 -115
  73. data/mock/one_worker_RETIME_missing.xml +0 -114
  74. data/mock/one_worker_RSTIME_0.xml +0 -115
  75. data/mock/one_worker_RSTIME_>_RETIME.xml +0 -115
  76. data/mock/one_worker_RSTIME_missing.xml +0 -114
  77. data/mock/one_worker_STATE_missing.xml +0 -136
  78. data/mock/one_worker_STATE_out_of_range.xml +0 -137
  79. data/mock/one_worker_STIME_>_ETIME.xml +0 -137
  80. data/mock/one_worker_STIME_missing.xml +0 -136
  81. data/mock/one_worker_STIME_nan.xml +0 -137
  82. data/mock/one_worker_TEMPLATE_missing.xml +0 -79
  83. data/mock/one_worker_UID_missing.xml +0 -136
  84. data/mock/one_worker_VCPU_0.xml +0 -137
  85. data/mock/one_worker_VCPU_missing.xml +0 -136
  86. data/mock/one_worker_VCPU_nan.xml +0 -137
  87. data/mock/one_worker_malformed_vm.xml +0 -136
  88. data/mock/one_worker_vm3.xml +0 -137
  89. data/mock/one_worker_vm4.xml +0 -106
  90. data/mock/one_worker_vm5.xml +0 -106
  91. data/mock/one_worker_vm6.xml +0 -107
  92. data/mock/one_worker_vm7.xml +0 -147
@@ -1,137 +0,0 @@
1
- <VM>
2
- <ID>36553</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
- <BUS><![CDATA[ide]]></BUS>
42
- <CLONE><![CDATA[YES]]></CLONE>
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[debian6]]></IMAGE>
50
- <IMAGE_ID><![CDATA[31]]></IMAGE_ID>
51
- <READONLY><![CDATA[NO]]></READONLY>
52
- <SAVE><![CDATA[NO]]></SAVE>
53
- <SOURCE><![CDATA[/opt/opennebula/var/datastores/1/bc8db254875412f417ac745b7d47820]]></SOURCE>
54
- <TARGET><![CDATA[xvda]]></TARGET>
55
- <TM_MAD><![CDATA[ssh]]></TM_MAD>
56
- <TYPE><![CDATA[FILE]]></TYPE>
57
- </DISK>
58
- <ERROR>
59
- <MESSAGE><![CDATA[Error executing image transfer script: Path https://somewhere.com/init.sh is not allowed!]]></MESSAGE>
60
- <TIMESTAMP><![CDATA[Wed Nov 6 13:34:19 2013]]></TIMESTAMP>
61
- </ERROR>
62
- <FEATURES>
63
- <ACPI><![CDATA[no]]></ACPI>
64
- </FEATURES>
65
- <MEMORY>1736960</MEMORY>
66
- <NAME><![CDATA[one-36551]]></NAME>
67
- <NIC>
68
- <BRIDGE><![CDATA[xenbr0]]></BRIDGE>
69
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
70
- <IP><![CDATA[123.123.5.5]]></IP>
71
- <MAC><![CDATA[01:23:45:67:89:ab]]></MAC>
72
- <NETWORK><![CDATA[public]]></NETWORK>
73
- <NETWORK_ID><![CDATA[4]]></NETWORK_ID>
74
- <VLAN><![CDATA[NO]]></VLAN>
75
- <WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
76
- <WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
77
- </NIC>
78
- <OS>
79
- <BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
80
- </OS>
81
- <RAW>
82
- <TYPE><![CDATA[xen]]></TYPE>
83
- </RAW>
84
- <TEMPLATE_ID><![CDATA[66]]></TEMPLATE_ID>
85
- <VCPU><![CDATA[1]]></VCPU>
86
- <VMID><![CDATA[36551]]></VMID>
87
- </TEMPLATE>
88
- <USER_TEMPLATE>
89
- <SCHED_REQUIREMENTS><![CDATA[CLUSTER_ID = 100]]></SCHED_REQUIREMENTS>
90
- </USER_TEMPLATE>
91
- <HISTORY_RECORDS>
92
- <HISTORY>
93
- <OID>36551</OID>
94
- <SEQ>0</SEQ>
95
- <HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
96
- <HID>11</HID>
97
- <CID>100</CID>
98
- <STIME>1383741169</STIME>
99
- <ETIME>1383741259</ETIME>
100
- <VMMMAD>vmm_xen</VMMMAD>
101
- <VNMMAD>fw</VNMMAD>
102
- <TMMAD>ssh</TMMAD>
103
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
104
- <DS_ID>0</DS_ID>
105
- <PSTIME>1383741169</PSTIME>
106
- <PETIME>1383741259</PETIME>
107
- <RSTIME>0</RSTIME>
108
- <RETIME>0</RETIME>
109
- <ESTIME>0</ESTIME>
110
- <EETIME>0</EETIME>
111
- <REASON>1</REASON>
112
- <ACTION>0</ACTION>
113
- </HISTORY>
114
- <HISTORY>
115
- <OID>36551</OID>
116
- <SEQ>1</SEQ>
117
- <HOSTNAME>supermachine1.somewhere.com</HOSTNAME>
118
- <HID>11</HID>
119
- <CID>100</CID>
120
- <STIME>1383741589</STIME>
121
- <ETIME>1383742270</ETIME>
122
- <VMMMAD>vmm_xen</VMMMAD>
123
- <VNMMAD>fw</VNMMAD>
124
- <TMMAD>ssh</TMMAD>
125
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
126
- <DS_ID>0</DS_ID>
127
- <PSTIME>1383741589</PSTIME>
128
- <PETIME>1383741674</PETIME>
129
- <RSTIME>1383741674</RSTIME>
130
- <RETIME>1383742270</RETIME>
131
- <ESTIME>1383742270</ESTIME>
132
- <EETIME>1383742270</EETIME>
133
- <REASON>0</REASON>
134
- <ACTION>0</ACTION>
135
- </HISTORY>
136
- </HISTORY_RECORDS>
137
- </VM>
@@ -1,106 +0,0 @@
1
- <VM>
2
- <ID>46083</ID>
3
- <UID>120</UID>
4
- <GID>103</GID>
5
- <UNAME>local_ops</UNAME>
6
- <GNAME>ops</GNAME>
7
- <NAME>EGI-SAM</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>1414588018</LAST_POLL>
20
- <STATE>3</STATE>
21
- <LCM_STATE>12</LCM_STATE>
22
- <RESCHED>0</RESCHED>
23
- <STIME>1414587675</STIME>
24
- <ETIME>0</ETIME>
25
- <DEPLOY_ID>one-46083</DEPLOY_ID>
26
- <MEMORY>2097152</MEMORY>
27
- <CPU>0</CPU>
28
- <NET_TX>3072</NET_TX>
29
- <NET_RX>0</NET_RX>
30
- <TEMPLATE>
31
- <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS>
32
- <CPU><![CDATA[1]]></CPU>
33
- <DISK>
34
- <BUS><![CDATA[ide]]></BUS>
35
- <CLONE><![CDATA[YES]]></CLONE>
36
- <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
37
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
38
- <DATASTORE><![CDATA[default]]></DATASTORE>
39
- <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
40
- <DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
41
- <DISK_ID><![CDATA[0]]></DISK_ID>
42
- <DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
43
- <IMAGE><![CDATA[monitoring]]></IMAGE>
44
- <IMAGE_ID><![CDATA[31]]></IMAGE_ID>
45
- <LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
46
- <READONLY><![CDATA[NO]]></READONLY>
47
- <SAVE><![CDATA[NO]]></SAVE>
48
- <SIZE><![CDATA[106]]></SIZE>
49
- <SOURCE><![CDATA[/opt/opennebula/var/datastores/1/a8e87be2fdafadadd5575d73d4946d47]]></SOURCE>
50
- <TARGET><![CDATA[xvda]]></TARGET>
51
- <TM_MAD><![CDATA[ssh]]></TM_MAD>
52
- <TYPE><![CDATA[FILE]]></TYPE>
53
- </DISK>
54
- <MEMORY><![CDATA[2048]]></MEMORY>
55
- <NAME><![CDATA[one-46083]]></NAME>
56
- <NIC>
57
- <BRIDGE><![CDATA[xenbr0]]></BRIDGE>
58
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
59
- <IP><![CDATA[192.168.254.26]]></IP>
60
- <IP6_LINK><![CDATA[fe80::400:c0ff:fea8:fe1a]]></IP6_LINK>
61
- <MAC><![CDATA[02:00:c0:a8:fe:1a]]></MAC>
62
- <NETWORK><![CDATA[monitoring]]></NETWORK>
63
- <NETWORK_ID><![CDATA[6]]></NETWORK_ID>
64
- <NIC_ID><![CDATA[0]]></NIC_ID>
65
- <VLAN><![CDATA[NO]]></VLAN>
66
- </NIC>
67
- <OS>
68
- <BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
69
- </OS>
70
- <RAW>
71
- <TYPE><![CDATA[xen]]></TYPE>
72
- </RAW>
73
- <VCPU><![CDATA[1]]></VCPU>
74
- <VMID><![CDATA[46083]]></VMID>
75
- </TEMPLATE>
76
- <USER_TEMPLATE>
77
- <ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
78
- <DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
79
- <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>
80
- <OCCI_ID><![CDATA[46083]]></OCCI_ID>
81
- </USER_TEMPLATE>
82
- <HISTORY_RECORDS>
83
- <HISTORY>
84
- <OID>46083</OID>
85
- <SEQ>0</SEQ>
86
- <HOSTNAME>localhost</HOSTNAME>
87
- <HID>17</HID>
88
- <CID>100</CID>
89
- <STIME>1414587683</STIME>
90
- <ETIME>0</ETIME>
91
- <VMMMAD>xen</VMMMAD>
92
- <VNMMAD>802.1Q</VNMMAD>
93
- <TMMAD>ssh</TMMAD>
94
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
95
- <DS_ID>0</DS_ID>
96
- <PSTIME>1414587683</PSTIME>
97
- <PETIME>1414587685</PETIME>
98
- <RSTIME>1414587685</RSTIME>
99
- <RETIME>0</RETIME>
100
- <ESTIME>0</ESTIME>
101
- <EETIME>0</EETIME>
102
- <REASON>0</REASON>
103
- <ACTION>3</ACTION>
104
- </HISTORY>
105
- </HISTORY_RECORDS>
106
- </VM>
@@ -1,106 +0,0 @@
1
- <VM>
2
- <ID>46083</ID>
3
- <UID>120</UID>
4
- <GID>103</GID>
5
- <UNAME>local_ops</UNAME>
6
- <GNAME>ops</GNAME>
7
- <NAME>EGI-SAM</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>1414588018</LAST_POLL>
20
- <STATE>3</STATE>
21
- <LCM_STATE>12</LCM_STATE>
22
- <RESCHED>0</RESCHED>
23
- <STIME>1414587675</STIME>
24
- <ETIME>0</ETIME>
25
- <DEPLOY_ID>one-46083</DEPLOY_ID>
26
- <MEMORY>2097152</MEMORY>
27
- <CPU>0</CPU>
28
- <NET_TX>3072</NET_TX>
29
- <NET_RX>0</NET_RX>
30
- <TEMPLATE>
31
- <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS>
32
- <CPU><![CDATA[1]]></CPU>
33
- <DISK>
34
- <BUS><![CDATA[ide]]></BUS>
35
- <CLONE><![CDATA[YES]]></CLONE>
36
- <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
37
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
38
- <DATASTORE><![CDATA[default]]></DATASTORE>
39
- <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
40
- <DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
41
- <DISK_ID><![CDATA[0]]></DISK_ID>
42
- <DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
43
- <IMAGE><![CDATA[monitoring]]></IMAGE>
44
- <IMAGE_ID><![CDATA[31]]></IMAGE_ID>
45
- <LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
46
- <READONLY><![CDATA[NO]]></READONLY>
47
- <SAVE><![CDATA[NO]]></SAVE>
48
- <SIZE><![CDATA[106]]></SIZE>
49
- <SOURCE><![CDATA[/opt/opennebula/var/datastores/1/a8e87be2fdafadadd5575d73d4946d47]]></SOURCE>
50
- <TARGET><![CDATA[xvda]]></TARGET>
51
- <TM_MAD><![CDATA[ssh]]></TM_MAD>
52
- <TYPE><![CDATA[FILE]]></TYPE>
53
- </DISK>
54
- <MEMORY><![CDATA[2048]]></MEMORY>
55
- <NAME><![CDATA[one-46083]]></NAME>
56
- <NIC>
57
- <BRIDGE><![CDATA[xenbr0]]></BRIDGE>
58
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
59
- <IP><![CDATA[192.168.254.26]]></IP>
60
- <IP6_LINK><![CDATA[fe80::400:c0ff:fea8:fe1a]]></IP6_LINK>
61
- <MAC><![CDATA[02:00:c0:a8:fe:1a]]></MAC>
62
- <NETWORK><![CDATA[monitoring]]></NETWORK>
63
- <NETWORK_ID><![CDATA[6]]></NETWORK_ID>
64
- <NIC_ID><![CDATA[0]]></NIC_ID>
65
- <VLAN><![CDATA[NO]]></VLAN>
66
- </NIC>
67
- <OS>
68
- <BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
69
- </OS>
70
- <RAW>
71
- <TYPE><![CDATA[xen]]></TYPE>
72
- </RAW>
73
- <VCPU><![CDATA[1]]></VCPU>
74
- <VMID><![CDATA[46083]]></VMID>
75
- </TEMPLATE>
76
- <USER_TEMPLATE>
77
- <ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
78
- <OCCI_ID><![CDATA[4040029c-9c13-4b29-9d01-1deb179ee925]]></OCCI_ID>
79
- <OCCI_MIXIN><![CDATA[https://occi.localhost/occi/infrastructure/resource_tpl#small]]></OCCI_MIXIN>
80
- <OCCI_MIXIN><![CDATA[https://occi.localhost/occi/infrastructure/os_tpl#omr_worker_x86_64_ide_1_0]]></OCCI_MIXIN>
81
- </USER_TEMPLATE>
82
- <HISTORY_RECORDS>
83
- <HISTORY>
84
- <OID>46083</OID>
85
- <SEQ>0</SEQ>
86
- <HOSTNAME>localhost</HOSTNAME>
87
- <HID>17</HID>
88
- <CID>100</CID>
89
- <STIME>1414587683</STIME>
90
- <ETIME>0</ETIME>
91
- <VMMMAD>xen</VMMMAD>
92
- <VNMMAD>802.1Q</VNMMAD>
93
- <TMMAD>ssh</TMMAD>
94
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
95
- <DS_ID>0</DS_ID>
96
- <PSTIME>1414587683</PSTIME>
97
- <PETIME>1414587685</PETIME>
98
- <RSTIME>1414587685</RSTIME>
99
- <RETIME>0</RETIME>
100
- <ESTIME>0</ESTIME>
101
- <EETIME>0</EETIME>
102
- <REASON>0</REASON>
103
- <ACTION>3</ACTION>
104
- </HISTORY>
105
- </HISTORY_RECORDS>
106
- </VM>
@@ -1,107 +0,0 @@
1
- <VM>
2
- <ID>46083</ID>
3
- <UID>120</UID>
4
- <GID>103</GID>
5
- <UNAME>local_ops</UNAME>
6
- <GNAME>ops</GNAME>
7
- <NAME>EGI-SAM</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>1414588018</LAST_POLL>
20
- <STATE>3</STATE>
21
- <LCM_STATE>12</LCM_STATE>
22
- <RESCHED>0</RESCHED>
23
- <STIME>1414587675</STIME>
24
- <ETIME>0</ETIME>
25
- <DEPLOY_ID>one-46083</DEPLOY_ID>
26
- <MEMORY>2097152</MEMORY>
27
- <CPU>0</CPU>
28
- <NET_TX>3072</NET_TX>
29
- <NET_RX>0</NET_RX>
30
- <TEMPLATE>
31
- <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS>
32
- <CPU><![CDATA[1]]></CPU>
33
- <DISK>
34
- <BUS><![CDATA[ide]]></BUS>
35
- <CLONE><![CDATA[YES]]></CLONE>
36
- <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
37
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
38
- <DATASTORE><![CDATA[default]]></DATASTORE>
39
- <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
40
- <DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
41
- <DISK_ID><![CDATA[0]]></DISK_ID>
42
- <DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
43
- <IMAGE><![CDATA[monitoring]]></IMAGE>
44
- <IMAGE_ID><![CDATA[31]]></IMAGE_ID>
45
- <LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
46
- <READONLY><![CDATA[NO]]></READONLY>
47
- <SAVE><![CDATA[NO]]></SAVE>
48
- <SIZE><![CDATA[106]]></SIZE>
49
- <SOURCE><![CDATA[/opt/opennebula/var/datastores/1/a8e87be2fdafadadd5575d73d4946d47]]></SOURCE>
50
- <TARGET><![CDATA[xvda]]></TARGET>
51
- <TM_MAD><![CDATA[ssh]]></TM_MAD>
52
- <TYPE><![CDATA[FILE]]></TYPE>
53
- </DISK>
54
- <MEMORY><![CDATA[2048]]></MEMORY>
55
- <NAME><![CDATA[one-46083]]></NAME>
56
- <NIC>
57
- <BRIDGE><![CDATA[xenbr0]]></BRIDGE>
58
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
59
- <IP><![CDATA[192.168.254.26]]></IP>
60
- <IP6_LINK><![CDATA[fe80::400:c0ff:fea8:fe1a]]></IP6_LINK>
61
- <MAC><![CDATA[02:00:c0:a8:fe:1a]]></MAC>
62
- <NETWORK><![CDATA[monitoring]]></NETWORK>
63
- <NETWORK_ID><![CDATA[6]]></NETWORK_ID>
64
- <NIC_ID><![CDATA[0]]></NIC_ID>
65
- <VLAN><![CDATA[NO]]></VLAN>
66
- </NIC>
67
- <OS>
68
- <BOOTLOADER><![CDATA[pygrub]]></BOOTLOADER>
69
- </OS>
70
- <RAW>
71
- <TYPE><![CDATA[xen]]></TYPE>
72
- </RAW>
73
- <VCPU><![CDATA[1]]></VCPU>
74
- <VMID><![CDATA[46083]]></VMID>
75
- </TEMPLATE>
76
- <USER_TEMPLATE>
77
- <ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
78
- <DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Wed, 29 Oct 2014 14:01:15 +0100.]]></DESCRIPTION>
79
- <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>
80
- <OCCI_ID><![CDATA[46083]]></OCCI_ID>
81
- <USER_X509_DN><![CDATA[/MY=STuPID/CN=DN/CN=HERE]]></USER_X509_DN>
82
- </USER_TEMPLATE>
83
- <HISTORY_RECORDS>
84
- <HISTORY>
85
- <OID>46083</OID>
86
- <SEQ>0</SEQ>
87
- <HOSTNAME>localhost</HOSTNAME>
88
- <HID>17</HID>
89
- <CID>100</CID>
90
- <STIME>1414587683</STIME>
91
- <ETIME>0</ETIME>
92
- <VMMMAD>xen</VMMMAD>
93
- <VNMMAD>802.1Q</VNMMAD>
94
- <TMMAD>ssh</TMMAD>
95
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
96
- <DS_ID>0</DS_ID>
97
- <PSTIME>1414587683</PSTIME>
98
- <PETIME>1414587685</PETIME>
99
- <RSTIME>1414587685</RSTIME>
100
- <RETIME>0</RETIME>
101
- <ESTIME>0</ESTIME>
102
- <EETIME>0</EETIME>
103
- <REASON>0</REASON>
104
- <ACTION>3</ACTION>
105
- </HISTORY>
106
- </HISTORY_RECORDS>
107
- </VM>
@@ -1,147 +0,0 @@
1
- <VM>
2
- <ID>50343</ID>
3
- <UID>70</UID>
4
- <GID>102</GID>
5
- <UNAME>fedcloud.egi.eu_3</UNAME>
6
- <GNAME>fedcloud.egi.eu</GNAME>
7
- <NAME>testINH_MPURI</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>1424693996</LAST_POLL>
20
- <STATE>6</STATE>
21
- <LCM_STATE>0</LCM_STATE>
22
- <RESCHED>0</RESCHED>
23
- <STIME>1424693218</STIME>
24
- <ETIME>1424693998</ETIME>
25
- <DEPLOY_ID>one-50343</DEPLOY_ID>
26
- <MEMORY>0</MEMORY>
27
- <CPU>0</CPU>
28
- <NET_TX>0</NET_TX>
29
- <NET_RX>0</NET_RX>
30
- <TEMPLATE>
31
- <AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS>
32
- <CONTEXT>
33
- <DISK_ID><![CDATA[1]]></DISK_ID>
34
- <PUBLIC_IP><![CDATA[147.251.253.102]]></PUBLIC_IP>
35
- <SSH_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFy/sRQ4M0jYyiJyBRGpidQ6eJCdMRRZzzxuxQDidvxhcHPNFthrHT5/+9lfrQCorJy5YjMJEGBC22Y62kctQ//FCa2wICdxGZVgcXdOLnGar5ztgrt1txlCu2/80yc1e0u39LdlyzlEaCnjGUeD4C6tZdAISLfQwiWEvzsJKJR302MDZCqnir9BEo57rTORAVD853hmko/3lvZk2EwgM+5lcMr13Hy/mbwNSuWq0ik71BSXyB1bnJ2XfiXOzPfkG1sflhe0j488nwNLNU1NSBbHARJIRJcX8QRVH46Zq02AeTNJikXxCnbfdGG8VcG5H8eWOa36m0ZWHGNgqaa8Pt xparak@craban1.ics.muni.cz]]></SSH_KEY>
36
- <TARGET><![CDATA[xvdb]]></TARGET>
37
- <USER_DATA><![CDATA[#cloud-config
38
- # see https://help.ubuntu.com/community/CloudInit
39
-
40
- runcmd:
41
- - /bin/echo 'Instance is ready to use.' | wall
42
-
43
- ]]></USER_DATA>
44
- </CONTEXT>
45
- <CPU><![CDATA[1]]></CPU>
46
- <DISK>
47
- <CLONE><![CDATA[YES]]></CLONE>
48
- <CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
49
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
50
- <DATASTORE><![CDATA[default]]></DATASTORE>
51
- <DATASTORE_ID><![CDATA[1]]></DATASTORE_ID>
52
- <DEV_PREFIX><![CDATA[xvd]]></DEV_PREFIX>
53
- <DISK_ID><![CDATA[0]]></DISK_ID>
54
- <DRIVER><![CDATA[tap2:tapdisk:aio:]]></DRIVER>
55
- <IMAGE><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></IMAGE>
56
- <IMAGE_ID><![CDATA[227]]></IMAGE_ID>
57
- <IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
58
- <LN_TARGET><![CDATA[SYSTEM]]></LN_TARGET>
59
- <READONLY><![CDATA[NO]]></READONLY>
60
- <SAVE><![CDATA[NO]]></SAVE>
61
- <SIZE><![CDATA[10240]]></SIZE>
62
- <SOURCE><![CDATA[/opt/opennebula/var/datastores/1/c516eb23fcb184f1458104a5d66f36b0]]></SOURCE>
63
- <TARGET><![CDATA[xvda]]></TARGET>
64
- <TM_MAD><![CDATA[ssh]]></TM_MAD>
65
- <TYPE><![CDATA[FILE]]></TYPE>
66
- <VMCATCHER_EVENT_AD_MPURI><![CDATA[https://appdb.egi.eu/store/vo/image/662b0e71-3e21-5f43-b6a1-cc2f51319fa7:156/]]></VMCATCHER_EVENT_AD_MPURI>
67
- <VMCATCHER_EVENT_DC_IDENTIFIER><![CDATA[662b0e71-3e21-5f43-b6a1-cc2f51319fa7]]></VMCATCHER_EVENT_DC_IDENTIFIER>
68
- <VMCATCHER_EVENT_HV_VERSION><![CDATA[20141029]]></VMCATCHER_EVENT_HV_VERSION>
69
- <VMCATCHER_EVENT_IL_DC_IDENTIFIER><![CDATA[76fdee70-8119-5d33-9f40-3c57e1c60df1]]></VMCATCHER_EVENT_IL_DC_IDENTIFIER>
70
- <VMCATCHER_EVENT_SL_CHECKSUM_SHA512><![CDATA[02a2b436e8f10c22527795c33bf623a1a0ef2e7036166e8831f653c3662f8f897a821f4751d774947e32a854654ff645097c47da236e46ad54806c6fc72a29ce]]></VMCATCHER_EVENT_SL_CHECKSUM_SHA512>
71
- </DISK>
72
- <FEATURES>
73
- <ACPI><![CDATA[no]]></ACPI>
74
- </FEATURES>
75
- <GRAPHICS>
76
- <KEYMAP><![CDATA[en-us]]></KEYMAP>
77
- <LISTEN><![CDATA[0.0.0.0]]></LISTEN>
78
- <PASSWD><![CDATA[a54VG45dsE49fgsEflhp87dfz7j8dfs465fgs65g4v2c0csre5rd898fRE00AD5g]]></PASSWD>
79
- <PORT><![CDATA[56243]]></PORT>
80
- <TYPE><![CDATA[VNC]]></TYPE>
81
- </GRAPHICS>
82
- <MEMORY><![CDATA[2048]]></MEMORY>
83
- <NAME><![CDATA[one-50343]]></NAME>
84
- <NIC>
85
- <AR_ID><![CDATA[15]]></AR_ID>
86
- <BRIDGE><![CDATA[xenbr0]]></BRIDGE>
87
- <CLUSTER_ID><![CDATA[100]]></CLUSTER_ID>
88
- <IP><![CDATA[147.251.253.102]]></IP>
89
- <MAC><![CDATA[02:00:93:fb:fd:66]]></MAC>
90
- <NETWORK><![CDATA[public]]></NETWORK>
91
- <NETWORK_ID><![CDATA[18]]></NETWORK_ID>
92
- <NIC_ID><![CDATA[0]]></NIC_ID>
93
- <VLAN><![CDATA[NO]]></VLAN>
94
- <WHITE_PORTS_TCP><![CDATA[22]]></WHITE_PORTS_TCP>
95
- <WHITE_PORTS_UDP><![CDATA[67,68]]></WHITE_PORTS_UDP>
96
- </NIC>
97
- <OS>
98
- <BOOTLOADER><![CDATA[/usr/lib/xen/boot/hvmloader]]></BOOTLOADER>
99
- </OS>
100
- <RAW>
101
- <DATA><![CDATA[builder='hvm']]></DATA>
102
- <TYPE><![CDATA[xen]]></TYPE>
103
- </RAW>
104
- <RAW>
105
- <DATA><![CDATA[device_model='/usr/lib/xen/bin/qemu-dm']]></DATA>
106
- <TYPE><![CDATA[xen]]></TYPE>
107
- </RAW>
108
- <RAW>
109
- <DATA><![CDATA[boot='dc']]></DATA>
110
- <TYPE><![CDATA[xen]]></TYPE>
111
- </RAW>
112
- <VCPU><![CDATA[1]]></VCPU>
113
- <VMID><![CDATA[50343]]></VMID>
114
- </TEMPLATE>
115
- <USER_TEMPLATE>
116
- <ARCHITECTURE><![CDATA[x86]]></ARCHITECTURE>
117
- <DESCRIPTION><![CDATA[Instantiated with rOCCI-server on Mon, 23 Feb 2015 13:06:58 +0100.]]></DESCRIPTION>
118
- <OCCI_COMPUTE_MIXINS><![CDATA[http://occi.carach5.ics.muni.cz/occi/infrastructure/os_tpl#uuid_centos_6_5_minimal_fedcloud_dukan_83 http://schema.fedcloud.egi.eu/occi/infrastructure/resource_tpl#small http://opennebula.org/occi/infrastructure#compute]]></OCCI_COMPUTE_MIXINS>
119
- <OCCI_ID><![CDATA[50343]]></OCCI_ID>
120
- <USER_IDENTITY><![CDATA[/DC=cz/DC=cesnet-ca/O=CESNET/CN=Boris Parak]]></USER_IDENTITY>
121
- <USER_X509_DN><![CDATA[/DC=cz/DC=cesnet-ca/O=CESNET/CN=Boris Parak]]></USER_X509_DN>
122
- </USER_TEMPLATE>
123
- <HISTORY_RECORDS>
124
- <HISTORY>
125
- <OID>50343</OID>
126
- <SEQ>0</SEQ>
127
- <HOSTNAME>dukan8.ics.muni.cz</HOSTNAME>
128
- <HID>15</HID>
129
- <CID>100</CID>
130
- <STIME>1424693223</STIME>
131
- <ETIME>1424693998</ETIME>
132
- <VMMMAD>xen</VMMMAD>
133
- <VNMMAD>802.1Q</VNMMAD>
134
- <TMMAD>ssh</TMMAD>
135
- <DS_LOCATION>/opt/opennebula/var/datastores</DS_LOCATION>
136
- <DS_ID>0</DS_ID>
137
- <PSTIME>1424693223</PSTIME>
138
- <PETIME>1424693416</PETIME>
139
- <RSTIME>1424693416</RSTIME>
140
- <RETIME>1424693996</RETIME>
141
- <ESTIME>1424693996</ESTIME>
142
- <EETIME>1424693998</EETIME>
143
- <REASON>2</REASON>
144
- <ACTION>3</ACTION>
145
- </HISTORY>
146
- </HISTORY_RECORDS>
147
- </VM>