opennebula 6.3.90.pre → 6.4.0
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/flow/service_template.rb +0 -3
- data/lib/opennebula/marketplaceapp_ext.rb +15 -4
- data/lib/opennebula/wait_ext.rb +22 -0
- data/lib/opennebula.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae702b1caa32e4a526435ad37d29bb6cb7c4a246aa0b13d1355def1129ef6d9c
|
4
|
+
data.tar.gz: c162738a79f54ed6d5b19c1e286ba0bf56485205d5dc692af888b735955e585b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ee51231d555025c271c2b67c71461c0d20760fc775e9598c02ad4f28bb281fa54a99c83e3c2ecee85f393702931871768e7e908d7667faf78dd01ca9d396a9
|
7
|
+
data.tar.gz: c44fdbd373155a95f6b6cad8c2b34d276b8f7149e52fb177e956844a7b68144c2573e262bccba4c1de378524355c24f41628cd534f04f8a1337c947115203c03
|
data/lib/cloud/CloudClient.rb
CHANGED
@@ -460,7 +460,11 @@ module OpenNebula::MarketPlaceAppExt
|
|
460
460
|
end
|
461
461
|
|
462
462
|
if !options[:template] || options[:template] == -1
|
463
|
-
vmtpl = create_vcenter_template(
|
463
|
+
vmtpl = create_vcenter_template(
|
464
|
+
ds,
|
465
|
+
options,
|
466
|
+
self['TEMPLATE/VMTEMPLATE64']
|
467
|
+
)
|
464
468
|
else
|
465
469
|
template_id = options[:template]
|
466
470
|
template = Template.new_with_id(template_id, @client)
|
@@ -625,7 +629,7 @@ module OpenNebula::MarketPlaceAppExt
|
|
625
629
|
|
626
630
|
rc = obj.export(
|
627
631
|
:dsid => options[:dsid],
|
628
|
-
:name => "#{options[:name]}-#{idx}",
|
632
|
+
:name => "#{options[:name]}-#{obj_name}-#{idx}",
|
629
633
|
:notemplate => options[:notemplate]
|
630
634
|
)
|
631
635
|
|
@@ -676,7 +680,8 @@ module OpenNebula::MarketPlaceAppExt
|
|
676
680
|
"Error deleting template #{id}"]
|
677
681
|
}
|
678
682
|
|
679
|
-
delete_method = 'delete
|
683
|
+
delete_method = 'delete'
|
684
|
+
args = true
|
680
685
|
else
|
681
686
|
obj_factory = lambda {|v|
|
682
687
|
id = v[:image].first
|
@@ -690,7 +695,13 @@ module OpenNebula::MarketPlaceAppExt
|
|
690
695
|
exported.each do |_, v|
|
691
696
|
obj, err_msg = obj_factory.call(v)
|
692
697
|
|
693
|
-
|
698
|
+
if args
|
699
|
+
rc = obj.send(delete_method, args)
|
700
|
+
else
|
701
|
+
rc = obj.send(delete_method)
|
702
|
+
end
|
703
|
+
|
704
|
+
next unless OpenNebula.is_error?(rc)
|
694
705
|
|
695
706
|
ret << err_msg
|
696
707
|
end
|
data/lib/opennebula/wait_ext.rb
CHANGED
@@ -138,6 +138,28 @@ module OpenNebula::WaitExt
|
|
138
138
|
|
139
139
|
# Wait classes and the name published in ZMQ/STATE
|
140
140
|
WAIT = {
|
141
|
+
OpenNebula::VirtualNetwork => {
|
142
|
+
:event => lambda {|o, s1, _s2|
|
143
|
+
"EVENT STATE NET/#{s1}//#{o['ID']}"
|
144
|
+
},
|
145
|
+
|
146
|
+
:in_state => lambda {|o, s1, _s2|
|
147
|
+
obj_s = Integer(o['STATE'])
|
148
|
+
inx_s = OpenNebula::VirtualNetwork::VN_STATES.index(s1)
|
149
|
+
|
150
|
+
obj_s == inx_s
|
151
|
+
},
|
152
|
+
|
153
|
+
:in_state_e => lambda {|s1, _s2, content|
|
154
|
+
xml = Nokogiri::XML(Base64.decode64(content))
|
155
|
+
|
156
|
+
obj_s = Integer(xml.xpath('//VNET/STATE').text)
|
157
|
+
inx_s = OpenNebula::VirtualNetwork::VN_STATES.index(s1)
|
158
|
+
|
159
|
+
obj_s == inx_s
|
160
|
+
}
|
161
|
+
},
|
162
|
+
|
141
163
|
OpenNebula::Host => {
|
142
164
|
:event => lambda {|o, s1, _s2|
|
143
165
|
"EVENT STATE HOST/#{s1}//#{o['ID']}"
|
data/lib/opennebula.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.
|
4
|
+
version: 6.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -255,9 +255,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
requirements:
|
258
|
-
- - "
|
258
|
+
- - ">="
|
259
259
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
260
|
+
version: '0'
|
261
261
|
requirements: []
|
262
262
|
rubygems_version: 3.1.2
|
263
263
|
signing_key:
|