opennebula 5.12.4 → 5.12.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/pool.rb +13 -0
- data/lib/opennebula/virtual_machine_pool.rb +27 -16
- data/lib/vcenter_driver.rb +1 -0
- metadata +28 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00ae069c15d9f55936ae0f7d3f8b31039e99894f
|
4
|
+
data.tar.gz: 0d477dc8954df54fa3c0fa069911a233734c1d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c4fa578eb463047e275bbfe53a7f11c12f5d624476dd2d9f3fb5f8966e373265435863aa9e5f5cc80dc39ab8cf94680f752c7e6147de627daacd734c7765a52
|
7
|
+
data.tar.gz: 0d62cd4c018cac34d3ef56f95c0a7f683c6b8974201aa50c687c6edc068914c323a9592e1b758278f8992ac811470c82687700c9dd0a655a296e9db0d2cb5b3a
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
data/lib/opennebula/pool.rb
CHANGED
@@ -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 =>
|
29
|
-
:info_extended =>
|
30
|
-
:
|
31
|
-
:
|
32
|
-
:
|
33
|
-
:
|
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
|
data/lib/vcenter_driver.rb
CHANGED
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.
|
4
|
+
version: 5.12.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -65,6 +65,30 @@ files:
|
|
65
65
|
- lib/CommandManager.rb
|
66
66
|
- lib/ActionManager.rb
|
67
67
|
- lib/DriverExecHelper.rb
|
68
|
+
- lib/opennebula/security_group_pool.rb
|
69
|
+
- lib/opennebula/system.rb
|
70
|
+
- lib/opennebula/template.rb
|
71
|
+
- lib/opennebula/template_pool.rb
|
72
|
+
- lib/opennebula/user.rb
|
73
|
+
- lib/opennebula/user_pool.rb
|
74
|
+
- lib/opennebula/utils.rb
|
75
|
+
- lib/opennebula/vdc.rb
|
76
|
+
- lib/opennebula/vdc_pool.rb
|
77
|
+
- lib/opennebula/virtual_machine.rb
|
78
|
+
- lib/opennebula/virtual_machine_pool.rb
|
79
|
+
- lib/opennebula/virtual_network.rb
|
80
|
+
- lib/opennebula/virtual_network_pool.rb
|
81
|
+
- lib/opennebula/virtual_router.rb
|
82
|
+
- lib/opennebula/virtual_router_pool.rb
|
83
|
+
- lib/opennebula/vm_group.rb
|
84
|
+
- lib/opennebula/vm_group_pool.rb
|
85
|
+
- lib/opennebula/vntemplate.rb
|
86
|
+
- lib/opennebula/vntemplate_pool.rb
|
87
|
+
- lib/opennebula/xml_element.rb
|
88
|
+
- lib/opennebula/xml_pool.rb
|
89
|
+
- lib/opennebula/xml_utils.rb
|
90
|
+
- lib/opennebula/zone.rb
|
91
|
+
- lib/opennebula/zone_pool.rb
|
68
92
|
- lib/opennebula/acl.rb
|
69
93
|
- lib/opennebula/acl_pool.rb
|
70
94
|
- lib/opennebula/client.rb
|
@@ -91,35 +115,11 @@ files:
|
|
91
115
|
- lib/opennebula/marketplaceapp.rb
|
92
116
|
- lib/opennebula/marketplaceapp_pool.rb
|
93
117
|
- lib/opennebula/oneflow_client.rb
|
118
|
+
- lib/opennebula/pool.rb
|
94
119
|
- lib/opennebula/pool_element.rb
|
95
120
|
- lib/opennebula/security_group.rb
|
96
|
-
- lib/opennebula/security_group_pool.rb
|
97
|
-
- lib/opennebula/system.rb
|
98
|
-
- lib/opennebula/template.rb
|
99
|
-
- lib/opennebula/template_pool.rb
|
100
|
-
- lib/opennebula/user.rb
|
101
|
-
- lib/opennebula/user_pool.rb
|
102
|
-
- lib/opennebula/utils.rb
|
103
|
-
- lib/opennebula/vdc.rb
|
104
|
-
- lib/opennebula/vdc_pool.rb
|
105
|
-
- lib/opennebula/virtual_machine.rb
|
106
|
-
- lib/opennebula/virtual_machine_pool.rb
|
107
|
-
- lib/opennebula/virtual_network.rb
|
108
|
-
- lib/opennebula/virtual_network_pool.rb
|
109
|
-
- lib/opennebula/virtual_router.rb
|
110
|
-
- lib/opennebula/virtual_router_pool.rb
|
111
|
-
- lib/opennebula/vm_group.rb
|
112
|
-
- lib/opennebula/vm_group_pool.rb
|
113
|
-
- lib/opennebula/vntemplate.rb
|
114
|
-
- lib/opennebula/vntemplate_pool.rb
|
115
|
-
- lib/opennebula/xml_element.rb
|
116
|
-
- lib/opennebula/xml_pool.rb
|
117
|
-
- lib/opennebula/xml_utils.rb
|
118
|
-
- lib/opennebula/zone.rb
|
119
|
-
- lib/opennebula/zone_pool.rb
|
120
|
-
- lib/opennebula/pool.rb
|
121
|
-
- lib/opennebula/ldap_auth.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
|