opennebula 5.12.5 → 5.12.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b6c3ec7149bb923bdd75d4fec45bfea768faea5
4
- data.tar.gz: 227ca1e825e2e0b35eac9f45ee29287433b19cca
3
+ metadata.gz: ff1a53938f41ec6f52353853f4d1e48ca3c4ff6b
4
+ data.tar.gz: 6b62337e8bd1aa3bdc2942daca2532b0449cfec4
5
5
  SHA512:
6
- metadata.gz: d69935785956d6bcd4f2b7e5b866306f3dc99bb47b66749c72077eca5bbae88b90a3e4418aae9a62132d676cdb0e94b4fe646e68b4c7864b3e059cd4bb77a86e
7
- data.tar.gz: a46d5cbabf9285983467efed04e9272da06c7d8c2307e49fe7b0adcda9cf1c3ecb63d450183939a1777b56fe229bb012abc5b20a105d62c19e3036bdc913670f
6
+ metadata.gz: 127520928ca1eb09a66a7fdbf421183e40f8a67415f5e28129d31a77f6f4bfc431e6ba03815f03c43e338a390bbed36b54722c0090872c83b2748530947b6eea
7
+ data.tar.gz: 670f0bc8cd97ee2744049606a924db762e8bdf37d1fa6dd1c44194dedfce0d1fe3fd86b2ae01343f2cda5cdd9c74608b9210cb244ff1c281cf94e684f77c36a5
@@ -51,7 +51,7 @@ end
51
51
  module CloudClient
52
52
 
53
53
  # OpenNebula version
54
- VERSION = '5.12.5'
54
+ VERSION = '5.12.10'
55
55
 
56
56
  # #########################################################################
57
57
  # Default location for the authentication file
data/lib/opennebula.rb CHANGED
@@ -74,5 +74,5 @@ require 'opennebula/hook_log'
74
74
  module OpenNebula
75
75
 
76
76
  # OpenNebula version
77
- VERSION = '5.12.5'
77
+ VERSION = '5.12.10'
78
78
  end
@@ -127,6 +127,19 @@ module OpenNebula
127
127
  return hash
128
128
  end
129
129
 
130
+ def monitoring_last(xml_method, *args)
131
+ rc = @client.call(xml_method, *args)
132
+
133
+ if OpenNebula.is_error?(rc)
134
+ return rc
135
+ end
136
+
137
+ xmldoc = XMLElement.new
138
+ xmldoc.initialize_xml(rc, 'MONITORING_DATA')
139
+
140
+ xmldoc.to_hash
141
+ end
142
+
130
143
  private
131
144
  # Calls to the corresponding info method to retreive the pool
132
145
  # representation in XML format
@@ -23,14 +23,14 @@ module OpenNebula
23
23
  # Constants and Class attribute accessors
24
24
  #######################################################################
25
25
 
26
-
27
26
  VM_POOL_METHODS = {
28
- :info => "vmpool.info",
29
- :info_extended => "vmpool.infoextended",
30
- :monitoring => "vmpool.monitoring",
31
- :accounting => "vmpool.accounting",
32
- :showback => "vmpool.showback",
33
- :calculate_showback => "vmpool.calculateshowback"
27
+ :info => 'vmpool.info',
28
+ :info_extended => 'vmpool.infoextended',
29
+ :info_set => 'vmpool.infoset',
30
+ :monitoring => 'vmpool.monitoring',
31
+ :accounting => 'vmpool.accounting',
32
+ :showback => 'vmpool.showback',
33
+ :calculate_showback => 'vmpool.calculateshowback'
34
34
  }
35
35
 
36
36
  # Constants for info queries (include/RequestManagerPoolInfoFilter.h)
@@ -41,7 +41,6 @@ module OpenNebula
41
41
  # Class constructor & Pool Methods
42
42
  #######################################################################
43
43
 
44
-
45
44
  # +client+ a Client object that represents a XML-RPC connection
46
45
  # +user_id+ is to refer to a Pool with VirtualMachines from that user
47
46
  def initialize(client, user_id=0)
@@ -102,21 +101,21 @@ module OpenNebula
102
101
  end
103
102
 
104
103
  # Define info methods shortcuts for different filters
105
- # info_all()
104
+ # info_all()
106
105
  # info_all!()
107
- # info_all_extended
106
+ # info_all_extended
108
107
  # info_all_extended!()
109
- # info_mine()
108
+ # info_mine()
110
109
  # info_mine!()
111
- # info_mine_extended
110
+ # info_mine_extended
112
111
  # info_mine_extended!()
113
- # info_group()
112
+ # info_group()
114
113
  # info_group!()
115
- # info_group_extended
114
+ # info_group_extended
116
115
  # info_group_extended!()
117
- # info_primary_group()
116
+ # info_primary_group()
118
117
  # info_primary_group!()
119
- # info_primary_group_extended
118
+ # info_primary_group_extended
120
119
  # info_primary_group_extended!()
121
120
  %w[mine all group primary_group].each do |ifilter|
122
121
  const_name = "OpenNebula::Pool::INFO_#{ifilter.upcase}"
@@ -160,6 +159,14 @@ module OpenNebula
160
159
  default_args[:query])
161
160
  end
162
161
 
162
+ # Retrieves the set of VMs especified in vm_ids
163
+ #
164
+ # @param [String] comma separated list of vm ids.
165
+ # @param [Boolean] if true extended body is retrieved.
166
+ #
167
+ def info_set(vm_ids, extended)
168
+ xmlrpc_info(VM_POOL_METHODS[:info_set], vm_ids, extended)
169
+ end
163
170
 
164
171
  # Retrieves the monitoring data for all the VMs in the pool
165
172
  #
@@ -195,6 +202,10 @@ module OpenNebula
195
202
  return super(VM_POOL_METHODS[:monitoring], xpaths, filter_flag)
196
203
  end
197
204
 
205
+ def monitoring_last(filter_flag=INFO_ALL)
206
+ return super(VM_POOL_METHODS[:monitoring], filter_flag, 0)
207
+ end
208
+
198
209
  # Retrieves the monitoring data for all the VMs in the pool, in XML
199
210
  #
200
211
  # @param [Integer] filter_flag Optional filter flag to retrieve all or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.12.5
4
+ version: 5.12.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -65,31 +65,6 @@ files:
65
65
  - lib/CommandManager.rb
66
66
  - lib/ActionManager.rb
67
67
  - lib/DriverExecHelper.rb
68
- - lib/opennebula/acl.rb
69
- - lib/opennebula/acl_pool.rb
70
- - lib/opennebula/client.rb
71
- - lib/opennebula/cluster.rb
72
- - lib/opennebula/cluster_pool.rb
73
- - lib/opennebula/datastore.rb
74
- - lib/opennebula/datastore_pool.rb
75
- - lib/opennebula/document_pool.rb
76
- - lib/opennebula/document_pool_json.rb
77
- - lib/opennebula/error.rb
78
- - lib/opennebula/group.rb
79
- - lib/opennebula/group_pool.rb
80
- - lib/opennebula/hook.rb
81
- - lib/opennebula/hook_log.rb
82
- - lib/opennebula/hook_pool.rb
83
- - lib/opennebula/host.rb
84
- - lib/opennebula/host_pool.rb
85
- - lib/opennebula/image.rb
86
- - lib/opennebula/image_pool.rb
87
- - lib/opennebula/marketplace.rb
88
- - lib/opennebula/marketplace_pool.rb
89
- - lib/opennebula/marketplaceapp_pool.rb
90
- - lib/opennebula/oneflow_client.rb
91
- - lib/opennebula/pool_element.rb
92
- - lib/opennebula/security_group.rb
93
68
  - lib/opennebula/security_group_pool.rb
94
69
  - lib/opennebula/system.rb
95
70
  - lib/opennebula/template.rb
@@ -99,6 +74,7 @@ files:
99
74
  - lib/opennebula/utils.rb
100
75
  - lib/opennebula/vdc.rb
101
76
  - lib/opennebula/vdc_pool.rb
77
+ - lib/opennebula/virtual_machine.rb
102
78
  - lib/opennebula/virtual_machine_pool.rb
103
79
  - lib/opennebula/virtual_network.rb
104
80
  - lib/opennebula/virtual_network_pool.rb
@@ -113,13 +89,37 @@ files:
113
89
  - lib/opennebula/xml_utils.rb
114
90
  - lib/opennebula/zone.rb
115
91
  - lib/opennebula/zone_pool.rb
92
+ - lib/opennebula/acl.rb
93
+ - lib/opennebula/acl_pool.rb
94
+ - lib/opennebula/client.rb
95
+ - lib/opennebula/cluster.rb
96
+ - lib/opennebula/cluster_pool.rb
97
+ - lib/opennebula/datastore.rb
98
+ - lib/opennebula/datastore_pool.rb
116
99
  - lib/opennebula/document.rb
117
100
  - lib/opennebula/document_json.rb
101
+ - lib/opennebula/document_pool.rb
102
+ - lib/opennebula/document_pool_json.rb
103
+ - lib/opennebula/error.rb
104
+ - lib/opennebula/group.rb
105
+ - lib/opennebula/group_pool.rb
106
+ - lib/opennebula/hook.rb
107
+ - lib/opennebula/hook_log.rb
108
+ - lib/opennebula/hook_pool.rb
109
+ - lib/opennebula/host.rb
110
+ - lib/opennebula/host_pool.rb
111
+ - lib/opennebula/image.rb
112
+ - lib/opennebula/image_pool.rb
113
+ - lib/opennebula/marketplace.rb
114
+ - lib/opennebula/marketplace_pool.rb
118
115
  - lib/opennebula/marketplaceapp.rb
116
+ - lib/opennebula/marketplaceapp_pool.rb
117
+ - lib/opennebula/oneflow_client.rb
119
118
  - lib/opennebula/pool.rb
120
- - lib/opennebula/virtual_machine.rb
121
- - lib/opennebula/ldap_auth.rb
119
+ - lib/opennebula/pool_element.rb
120
+ - lib/opennebula/security_group.rb
122
121
  - lib/opennebula/ldap_auth_spec.rb
122
+ - lib/opennebula/ldap_auth.rb
123
123
  - lib/opennebula/server_cipher_auth.rb
124
124
  - lib/opennebula/server_x509_auth.rb
125
125
  - lib/opennebula/ssh_auth.rb