opennebula 5.11.90.pre → 5.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/CommandManager.rb +12 -2
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/host.rb +9 -1
- data/lib/opennebula/host_pool.rb +2 -2
- data/lib/opennebula/virtual_machine_pool.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56a4d4714f58633bd2aa93a39a0a0bf794782d64
|
4
|
+
data.tar.gz: baf93114e6465fbca2a66a71d458638d9ff54061
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd7c9416854f0a4b6b9d9148ffe800dbee1f39706737aebc8c8692eb36041352704fca815aac338a1886478756fbaec08cc812f1511c3f7b3780de7b9a59be9e
|
7
|
+
data.tar.gz: 3d12e853e46eac65b0f2023bb38158db72f9beedd704e842b31f9e0b19d96713a2e654146a6b37db4db8f3abae55e919437606343ef22280da977cc3bba48843
|
data/lib/CommandManager.rb
CHANGED
@@ -179,13 +179,23 @@ private
|
|
179
179
|
i.write stdin_data
|
180
180
|
i.close
|
181
181
|
|
182
|
-
|
182
|
+
# blocking wait for process termination
|
183
|
+
t.value
|
184
|
+
|
185
|
+
# if reader threads are not dead yet, kill them
|
186
|
+
[out_reader, err_reader].each do |reader|
|
187
|
+
next unless reader.status
|
188
|
+
|
189
|
+
reader.join(0.1)
|
190
|
+
reader.kill
|
191
|
+
end
|
183
192
|
|
184
193
|
mutex.lock
|
185
194
|
terminator.kill
|
186
195
|
raise terminator_e if terminator_e
|
187
196
|
|
188
|
-
|
197
|
+
# return values
|
198
|
+
[out_reader.value, err_reader.value, t.value]
|
189
199
|
}
|
190
200
|
end
|
191
201
|
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
data/lib/opennebula/host.rb
CHANGED
@@ -125,6 +125,14 @@ module OpenNebula
|
|
125
125
|
set_status("OFFLINE")
|
126
126
|
end
|
127
127
|
|
128
|
+
#Resets monitoring forcing an update
|
129
|
+
def forceupdate()
|
130
|
+
rc = offline
|
131
|
+
return rc if OpenNebula.is_error?(rc)
|
132
|
+
|
133
|
+
enable
|
134
|
+
end
|
135
|
+
|
128
136
|
def flush(action)
|
129
137
|
self.disable
|
130
138
|
|
@@ -134,7 +142,7 @@ module OpenNebula
|
|
134
142
|
rc = vm_pool.info
|
135
143
|
if OpenNebula.is_error?(rc)
|
136
144
|
puts rc.message
|
137
|
-
exit
|
145
|
+
exit(-1)
|
138
146
|
end
|
139
147
|
|
140
148
|
vm_pool.each do |vm|
|
data/lib/opennebula/host_pool.rb
CHANGED
@@ -99,8 +99,8 @@ module OpenNebula
|
|
99
99
|
|
100
100
|
# Retrieves the monitoring data for all the Hosts in the pool, in XML
|
101
101
|
#
|
102
|
-
# @param [Integer] num Optional
|
103
|
-
#
|
102
|
+
# @param [Integer] num Optional Retrieve monitor records in the last num
|
103
|
+
# seconds. 0 just the last record, -1 or nil all records
|
104
104
|
#
|
105
105
|
# @return [String] VM monitoring data, in XML
|
106
106
|
def monitoring_xml(num = nil)
|
@@ -199,8 +199,8 @@ module OpenNebula
|
|
199
199
|
#
|
200
200
|
# @param [Integer] filter_flag Optional filter flag to retrieve all or
|
201
201
|
# part of the Pool. Possible values: INFO_ALL, INFO_GROUP, INFO_MINE.
|
202
|
-
# @param [Integer] num Optional
|
203
|
-
#
|
202
|
+
# @param [Integer] num Optional Retrieve monitor records in the last num
|
203
|
+
# seconds. 0 just the last record, -1 or nil all records
|
204
204
|
# @return [String] VM monitoring data, in XML
|
205
205
|
def monitoring_xml(filter_flag=INFO_ALL, num=nil)
|
206
206
|
return @client.call(VM_POOL_METHODS[:monitoring], filter_flag) if num.nil?
|
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.
|
4
|
+
version: 5.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -142,9 +142,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- - '
|
145
|
+
- - '>='
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
147
|
+
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
150
|
rubygems_version: 2.0.14.1
|