opennebula 6.10.4 → 6.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/datacenter.rb +3 -3
- data/lib/host.rb +8 -4
- data/lib/models/role.rb +1 -1
- data/lib/network.rb +1 -1
- data/lib/nsx_rule.rb +1 -1
- data/lib/opennebula/flow/service_template.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/vi_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dd660b3a53ce98c4ac18bf8c92cf5851b9ec857855a44071291023e6cde5428
|
|
4
|
+
data.tar.gz: ca840e630977339f2ade674d44b447f42d2695c53509df15cccb3c3fca660d0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa1889753b6655944e1b50bf5bf0b263473c1f8cba8d82d8a80cc6b034dc7d38753d5c4544343e61c09985d1c14d650514764a2f721ce458e64915ebb6837e49
|
|
7
|
+
data.tar.gz: 377c8a508a27e9560d22485753f96d85c48917c45a971a047da129b7c9d5ea097d60fe04ab022c4a9cc3944bcaf020a6add16148da047d95bfaccd1a036d6b21
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/datacenter.rb
CHANGED
|
@@ -916,7 +916,7 @@ module VCenterDriver
|
|
|
916
916
|
spec.configSpec.uplinkPortPolicy =
|
|
917
917
|
RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
|
|
918
918
|
spec.configSpec.uplinkPortPolicy.uplinkPortName = []
|
|
919
|
-
(0..pnics.size-1).each do |index|
|
|
919
|
+
(0..(pnics.size-1)).each do |index|
|
|
920
920
|
spec
|
|
921
921
|
.configSpec
|
|
922
922
|
.uplinkPortPolicy
|
|
@@ -973,7 +973,7 @@ module VCenterDriver
|
|
|
973
973
|
orig_spec.uplinkPortPolicy =
|
|
974
974
|
RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
|
|
975
975
|
orig_spec.uplinkPortPolicy.uplinkPortName = []
|
|
976
|
-
(0..dvs['config.uplinkPortgroup'].length-1).each do |index|
|
|
976
|
+
(0..(dvs['config.uplinkPortgroup'].length-1)).each do |index|
|
|
977
977
|
orig_spec
|
|
978
978
|
.uplinkPortPolicy
|
|
979
979
|
.uplinkPortName[index]="dvUplink#{index+1}"
|
|
@@ -989,7 +989,7 @@ module VCenterDriver
|
|
|
989
989
|
RbVmomi::VIM::DVSNameArrayUplinkPortPolicy.new
|
|
990
990
|
spec.uplinkPortPolicy.uplinkPortName = []
|
|
991
991
|
(dvs['config.uplinkPortgroup']
|
|
992
|
-
.length..num_pnics-1)
|
|
992
|
+
.length..(num_pnics-1))
|
|
993
993
|
.each do |index|
|
|
994
994
|
spec
|
|
995
995
|
.uplinkPortPolicy
|
data/lib/host.rb
CHANGED
|
@@ -943,7 +943,8 @@ module VCenterDriver
|
|
|
943
943
|
rc = one_host.delete
|
|
944
944
|
|
|
945
945
|
unless OpenNebula.is_error?(rc)
|
|
946
|
-
raise "Could not update host: #{rc.message}"
|
|
946
|
+
raise "Could not update host: #{rc.message}"
|
|
947
|
+
end
|
|
947
948
|
|
|
948
949
|
raise "Could not update host: #{update_error} "\
|
|
949
950
|
"and could not delete host: #{rc.message}"
|
|
@@ -956,7 +957,8 @@ module VCenterDriver
|
|
|
956
957
|
rc = one_host.delete
|
|
957
958
|
|
|
958
959
|
unless OpenNebula.is_error?(rc)
|
|
959
|
-
raise "Could not offline host: #{rc.message}"
|
|
960
|
+
raise "Could not offline host: #{rc.message}"
|
|
961
|
+
end
|
|
960
962
|
|
|
961
963
|
raise "Could not offline host: #{update_error} "\
|
|
962
964
|
"and could not delete host: #{rc.message}"
|
|
@@ -969,7 +971,8 @@ module VCenterDriver
|
|
|
969
971
|
rc = one_host.delete
|
|
970
972
|
|
|
971
973
|
unless OpenNebula.is_error?(rc)
|
|
972
|
-
raise "Could not enable host: #{rc.message}"
|
|
974
|
+
raise "Could not enable host: #{rc.message}"
|
|
975
|
+
end
|
|
973
976
|
|
|
974
977
|
raise "Could not enable host: #{update_error} "\
|
|
975
978
|
"and could not delete host: #{rc.message}"
|
|
@@ -1388,7 +1391,8 @@ module VCenterDriver
|
|
|
1388
1391
|
|
|
1389
1392
|
def update_pg(pg, switch_name, vlan_id)
|
|
1390
1393
|
unless pg.spec.respond_to?(:vlanId) && pg.spec.vlanId != vlan_id
|
|
1391
|
-
return
|
|
1394
|
+
return
|
|
1395
|
+
end
|
|
1392
1396
|
|
|
1393
1397
|
# Backup original spec
|
|
1394
1398
|
orig_spec = pg.spec
|
data/lib/models/role.rb
CHANGED
data/lib/network.rb
CHANGED
data/lib/nsx_rule.rb
CHANGED
|
@@ -167,7 +167,7 @@ end
|
|
|
167
167
|
sg_range_port = xml_rule.xpath('RANGE').text
|
|
168
168
|
if sg_range_port
|
|
169
169
|
if sg_range_port.index(':')
|
|
170
|
-
sg_port_from = sg_range_port[0..sg_range_port.index(':')-1]
|
|
170
|
+
sg_port_from = sg_range_port[0..(sg_range_port.index(':')-1)]
|
|
171
171
|
sg_port_to = sg_range_port[sg_range_port.index(':')+1,
|
|
172
172
|
sg_range_port.length]
|
|
173
173
|
sg_ports = "#{sg_port_from}-#{sg_port_to}"
|
|
@@ -523,7 +523,7 @@ module OpenNebula
|
|
|
523
523
|
roles = template['roles']
|
|
524
524
|
|
|
525
525
|
roles.each_with_index do |role, role_index|
|
|
526
|
-
roles[role_index+1..-1].each do |other_role|
|
|
526
|
+
roles[(role_index+1)..-1].each do |other_role|
|
|
527
527
|
if role['name'] == other_role['name']
|
|
528
528
|
raise Validator::ParseException,
|
|
529
529
|
"Role name '#{role['name']}' is repeated"
|
data/lib/opennebula.rb
CHANGED
data/lib/vi_helper.rb
CHANGED
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.10.
|
|
4
|
+
version: 6.10.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenNebula
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|