opennebula 5.5.80.pre → 5.5.90.pre

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: e3d15137240bd50cd5cd0b5b710f2391a9f59a02
4
- data.tar.gz: 8e57ca62e09d70ba52f2ed134277b87666815e3c
3
+ metadata.gz: 86fe1576af5fa5611adfeaee4b2ec1fe6afdba7b
4
+ data.tar.gz: e6dd46db243323502f2e238dbcf0947e775e04b1
5
5
  SHA512:
6
- metadata.gz: 8493c8467c61fe2da156ac062f69ebc85274f8b6de47c0ce49322d7214e7ce0a8ae3c56582d86593040fd93997499b3adbe0c5da6134115926fb1a1de95030fd
7
- data.tar.gz: a398e6261cb6c11383b2dcfc395f32c91a9d2d611567156e322305041c2245c856858beae40cb164167535ccf2729fc91274842e8388f4ad9f067c815683b2f1
6
+ metadata.gz: ba9261486a78bf7f65bb87ec6eb15132c9f0f68cdf687dadc2674b1041bdc9c96d73ac559afbbc7c752193add1de3e5ae6d94c40416e7c5ce23e5031359f9a1a
7
+ data.tar.gz: cbf04a55090ce0e658b7bbd3f6cf7b2af63db22f056a273bcbc12ad9c5397f959ba7814a5a9152102f5a97a626981b37505ca357ce32a500d0096d7eec936c80
@@ -50,7 +50,7 @@ end
50
50
  module CloudClient
51
51
 
52
52
  # OpenNebula version
53
- VERSION = '5.5.80'
53
+ VERSION = '5.5.90'
54
54
 
55
55
  # #########################################################################
56
56
  # Default location for the authentication file
data/lib/opennebula.rb CHANGED
@@ -69,5 +69,5 @@ require 'opennebula/vm_group_pool'
69
69
  module OpenNebula
70
70
 
71
71
  # OpenNebula version
72
- VERSION = '5.5.80'
72
+ VERSION = '5.5.90'
73
73
  end
@@ -17,6 +17,7 @@
17
17
 
18
18
  require 'opennebula/pool_element'
19
19
  require 'base64'
20
+ require 'yaml'
20
21
 
21
22
  module OpenNebula
22
23
  class Host < PoolElement
@@ -124,7 +125,7 @@ module OpenNebula
124
125
  set_status("OFFLINE")
125
126
  end
126
127
 
127
- def flush()
128
+ def flush(action)
128
129
  self.disable
129
130
 
130
131
  vm_pool = OpenNebula::VirtualMachinePool.new(@client,
@@ -139,7 +140,14 @@ module OpenNebula
139
140
  vm_pool.each do |vm|
140
141
  hid = vm['HISTORY_RECORDS/HISTORY[last()]/HID']
141
142
  if hid == self['ID']
142
- vm.resched
143
+ case action
144
+ when "resched"
145
+ vm.resched
146
+ when "delete-recreate"
147
+ vm.recover(4)
148
+ else
149
+ vm.resched
150
+ end
143
151
  end
144
152
  end
145
153
  end
@@ -115,8 +115,8 @@ module OpenNebula
115
115
  #
116
116
  # @return [nil, OpenNebula::Error] nil in case of success, Error
117
117
  # otherwise
118
- def allocate(description, ds_id)
119
- super(IMAGE_METHODS[:allocate],description, ds_id)
118
+ def allocate(description, ds_id, check_capacity=true)
119
+ super(IMAGE_METHODS[:allocate],description, ds_id, check_capacity)
120
120
  end
121
121
 
122
122
  # Replaces the template contents
@@ -30,7 +30,8 @@ module OpenNebula
30
30
  :rename => "zone.rename",
31
31
  :delete => "zone.delete",
32
32
  :addserver => "zone.addserver",
33
- :delserver => "zone.delserver"
33
+ :delserver => "zone.delserver",
34
+ :resetserver => "zone.resetserver"
34
35
  }
35
36
 
36
37
  # Creates a Zone description with just its identifier
@@ -168,6 +169,16 @@ module OpenNebula
168
169
  return call(ZONE_METHODS[:delserver], @pe_id, server_id)
169
170
  end
170
171
 
172
+ # Reset index for a follower
173
+ #
174
+ # @param id [Int] Server ID
175
+ #
176
+ # @return [nil, OpenNebula::Error] nil in case of success, Error
177
+ # otherwise
178
+ def reset_server(server_id)
179
+ return call(ZONE_METHODS[:resetserver], @pe_id, server_id)
180
+ end
181
+
171
182
  private
172
183
 
173
184
  # These methods adds elements to the given node of the zone
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.5.80.pre
4
+ version: 5.5.90.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri