opennebula 6.6.2 → 6.7.80.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/DriverExecHelper.rb +1 -1
- data/lib/HostSyncManager.rb +111 -0
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/host.rb +1 -1
- data/lib/opennebula/acl.rb +2 -1
- data/lib/opennebula/backupjob.rb +250 -0
- data/lib/opennebula/backupjob_pool.rb +82 -0
- data/lib/opennebula/client.rb +2 -2
- data/lib/opennebula/group.rb +1 -1
- data/lib/opennebula/ldap_auth.rb +2 -2
- data/lib/opennebula/lockable_ext.rb +1 -0
- data/lib/opennebula/oneflow_client.rb +115 -108
- data/lib/opennebula/pool_element.rb +48 -47
- data/lib/opennebula/ssh_auth.rb +102 -79
- data/lib/opennebula/virtual_machine.rb +297 -299
- data/lib/opennebula/vm_group.rb +35 -1
- data/lib/opennebula.rb +3 -1
- data/lib/virtual_wire.rb +1 -1
- metadata +7 -4
data/lib/opennebula/vm_group.rb
CHANGED
@@ -31,7 +31,10 @@ module OpenNebula
|
|
31
31
|
:chmod => "vmgroup.chmod",
|
32
32
|
:rename => "vmgroup.rename",
|
33
33
|
:lock => "vmgroup.lock",
|
34
|
-
:unlock
|
34
|
+
:unlock => "vmgroup.unlock",
|
35
|
+
:roleadd => "vmgroup.roleadd",
|
36
|
+
:roledelete => "vmgroup.roledelete",
|
37
|
+
:roleupdate => "vmgroup.roleupdate"
|
35
38
|
}
|
36
39
|
|
37
40
|
# Creates a VMGroup description with just its identifier
|
@@ -134,6 +137,37 @@ module OpenNebula
|
|
134
137
|
return call(VMGROUP_METHODS[:rename], @pe_id, name)
|
135
138
|
end
|
136
139
|
|
140
|
+
# Add role to VM Group
|
141
|
+
#
|
142
|
+
# @param template [String] String template for the new role
|
143
|
+
#
|
144
|
+
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
145
|
+
# otherwise
|
146
|
+
def role_add(template)
|
147
|
+
return call(VMGROUP_METHODS[:roleadd], @pe_id, template)
|
148
|
+
end
|
149
|
+
|
150
|
+
# Delete role from VM Group
|
151
|
+
#
|
152
|
+
# @param roleid [Integer] ID of the role to remove
|
153
|
+
#
|
154
|
+
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
155
|
+
# otherwise
|
156
|
+
def role_delete(roleid)
|
157
|
+
return call(VMGROUP_METHODS[:roledelete], @pe_id, roleid)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Update VM Group role
|
161
|
+
#
|
162
|
+
# @param roleid [Integer] ID of the role to remove
|
163
|
+
# @param template [String] String template with updated values
|
164
|
+
#
|
165
|
+
# @return [nil, OpenNebula::Error] nil in case of success, Error
|
166
|
+
# otherwise
|
167
|
+
def role_update(roleid, template)
|
168
|
+
return call(VMGROUP_METHODS[:roleupdate], @pe_id, roleid, template)
|
169
|
+
end
|
170
|
+
|
137
171
|
#######################################################################
|
138
172
|
# Helpers to get VMGroup information
|
139
173
|
#######################################################################
|
data/lib/opennebula.rb
CHANGED
@@ -73,9 +73,11 @@ require 'opennebula/hook'
|
|
73
73
|
require 'opennebula/hook_pool'
|
74
74
|
require 'opennebula/hook_log'
|
75
75
|
require 'opennebula/flow'
|
76
|
+
require 'opennebula/backupjob'
|
77
|
+
require 'opennebula/backupjob_pool'
|
76
78
|
|
77
79
|
module OpenNebula
|
78
80
|
|
79
81
|
# OpenNebula version
|
80
|
-
VERSION = '6.
|
82
|
+
VERSION = '6.7.80'
|
81
83
|
end
|
data/lib/virtual_wire.rb
CHANGED
@@ -91,7 +91,7 @@ module NSXDriver
|
|
91
91
|
.get(url)
|
92
92
|
.xpath(NSXConstants::NSXV_LS_XPATH)
|
93
93
|
virtualwires.each do |virtualwire|
|
94
|
-
lsname_arr = name.split(
|
94
|
+
lsname_arr = name.split('-sid-')
|
95
95
|
lsname = lsname_arr[-1].split('-', 2)[-1]
|
96
96
|
lsid = lsname_arr[0].split(/vxw-dvs-\w.-/)[-1]
|
97
97
|
if virtualwire.xpath('name').text == lsname &&
|
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: 6.
|
4
|
+
version: 6.7.80.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -119,6 +119,7 @@ files:
|
|
119
119
|
- lib/ActionManager.rb
|
120
120
|
- lib/CommandManager.rb
|
121
121
|
- lib/DriverExecHelper.rb
|
122
|
+
- lib/HostSyncManager.rb
|
122
123
|
- lib/OpenNebulaDriver.rb
|
123
124
|
- lib/VirtualMachineDriver.rb
|
124
125
|
- lib/cloud/CloudClient.rb
|
@@ -154,6 +155,8 @@ files:
|
|
154
155
|
- lib/opennebula.rb
|
155
156
|
- lib/opennebula/acl.rb
|
156
157
|
- lib/opennebula/acl_pool.rb
|
158
|
+
- lib/opennebula/backupjob.rb
|
159
|
+
- lib/opennebula/backupjob_pool.rb
|
157
160
|
- lib/opennebula/client.rb
|
158
161
|
- lib/opennebula/cluster.rb
|
159
162
|
- lib/opennebula/cluster_pool.rb
|
@@ -255,9 +258,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
258
|
version: '0'
|
256
259
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
260
|
requirements:
|
258
|
-
- - "
|
261
|
+
- - ">"
|
259
262
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
263
|
+
version: 1.3.1
|
261
264
|
requirements: []
|
262
265
|
rubygems_version: 3.1.2
|
263
266
|
signing_key:
|