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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66f5101f43db2d5926a91cf47d329b3195267d3c
4
- data.tar.gz: 57d61ad0c4d687eadeb7521dc9e7a68c6214ec38
3
+ metadata.gz: 56a4d4714f58633bd2aa93a39a0a0bf794782d64
4
+ data.tar.gz: baf93114e6465fbca2a66a71d458638d9ff54061
5
5
  SHA512:
6
- metadata.gz: f3c263ed781184aad101a456e83909bb0c6c149e3b0e931d4560772bbae13e9888cd4e866e886548eccff3b89b8067e0ec2882052ff930e94da88e4d2c00d657
7
- data.tar.gz: f79a5e7d90929e2a1fef95e615971d41a82d558597ccac349be2fb7c8ae81b2bcae46ceee57eb5059987ab993fed492887ecec772606d23243a37e81411a7665
6
+ metadata.gz: cd7c9416854f0a4b6b9d9148ffe800dbee1f39706737aebc8c8692eb36041352704fca815aac338a1886478756fbaec08cc812f1511c3f7b3780de7b9a59be9e
7
+ data.tar.gz: 3d12e853e46eac65b0f2023bb38158db72f9beedd704e842b31f9e0b19d96713a2e654146a6b37db4db8f3abae55e919437606343ef22280da977cc3bba48843
@@ -179,13 +179,23 @@ private
179
179
  i.write stdin_data
180
180
  i.close
181
181
 
182
- out = [out_reader.value, err_reader.value, t.value]
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
- out
197
+ # return values
198
+ [out_reader.value, err_reader.value, t.value]
189
199
  }
190
200
  end
191
201
 
@@ -51,7 +51,7 @@ end
51
51
  module CloudClient
52
52
 
53
53
  # OpenNebula version
54
- VERSION = '5.11.90'
54
+ VERSION = '5.12.0'
55
55
 
56
56
  # #########################################################################
57
57
  # Default location for the authentication file
@@ -74,5 +74,5 @@ require 'opennebula/hook_log'
74
74
  module OpenNebula
75
75
 
76
76
  # OpenNebula version
77
- VERSION = '5.11.90'
77
+ VERSION = '5.12.0'
78
78
  end
@@ -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 -1
145
+ exit(-1)
138
146
  end
139
147
 
140
148
  vm_pool.each do |vm|
@@ -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 number of monitoring records to be
103
- # retrieved. If nill all records are retrieved
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 number of monitoring records to be
203
- # retrieved. If nill all records are retrieved
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.11.90.pre
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-01 00:00:00.000000000 Z
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: 1.3.1
147
+ version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
150
  rubygems_version: 2.0.14.1