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 +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/host.rb +10 -2
- data/lib/opennebula/image.rb +2 -2
- data/lib/opennebula/zone.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86fe1576af5fa5611adfeaee4b2ec1fe6afdba7b
|
4
|
+
data.tar.gz: e6dd46db243323502f2e238dbcf0947e775e04b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9261486a78bf7f65bb87ec6eb15132c9f0f68cdf687dadc2674b1041bdc9c96d73ac559afbbc7c752193add1de3e5ae6d94c40416e7c5ce23e5031359f9a1a
|
7
|
+
data.tar.gz: cbf04a55090ce0e658b7bbd3f6cf7b2af63db22f056a273bcbc12ad9c5397f959ba7814a5a9152102f5a97a626981b37505ca357ce32a500d0096d7eec936c80
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
data/lib/opennebula/host.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/opennebula/image.rb
CHANGED
@@ -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
|
data/lib/opennebula/zone.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|