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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce0ca66d3a7fc700e855f98615b22498966c4efb6321770afc9e5852d29359c2
4
- data.tar.gz: 7879f4859708352f9d1a69edd76ed6131ec8c3a26470ebea6933fb02317f948f
3
+ metadata.gz: ae702b1caa32e4a526435ad37d29bb6cb7c4a246aa0b13d1355def1129ef6d9c
4
+ data.tar.gz: c162738a79f54ed6d5b19c1e286ba0bf56485205d5dc692af888b735955e585b
5
5
  SHA512:
6
- metadata.gz: ff3757f8da05cd268b1fcdd153e9e1dabb502ac3269567d2d66c1161e0d5014641d0ccd2776a8cb6b924a6d076d01b28730a38d4095c3655d14728805120450a
7
- data.tar.gz: ede0e55b1b5b3423e22dc73832ead4e300857c41551f79cd921d427aaba9e1a331f1f8763ef8fecbe3bdcad8cc8a122ba8ba1b4aec0f4c51bd3c0486178c06c8
6
+ metadata.gz: 36ee51231d555025c271c2b67c71461c0d20760fc775e9598c02ad4f28bb281fa54a99c83e3c2ecee85f393702931871768e7e908d7667faf78dd01ca9d396a9
7
+ data.tar.gz: c44fdbd373155a95f6b6cad8c2b34d276b8f7149e52fb177e956844a7b68144c2573e262bccba4c1de378524355c24f41628cd534f04f8a1337c947115203c03
@@ -51,7 +51,7 @@ end
51
51
  module CloudClient
52
52
 
53
53
  # OpenNebula version
54
- VERSION = '6.3.90'
54
+ VERSION = '6.4.0'
55
55
 
56
56
  # #########################################################################
57
57
  # Default location for the authentication file
@@ -414,9 +414,6 @@ module OpenNebula
414
414
  return rc
415
415
  end
416
416
 
417
- # add registration time, as the template is new
418
- body['registration_time'] = Integer(Time.now)
419
-
420
417
  # update the template with the new body
421
418
  doc.update(body.to_json)
422
419
 
@@ -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(ds, options)
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(true)'
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
- next unless OpenNebula.is_error?(obj.send(delete_method))
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
@@ -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
@@ -77,5 +77,5 @@ require 'opennebula/flow'
77
77
  module OpenNebula
78
78
 
79
79
  # OpenNebula version
80
- VERSION = '6.3.90'
80
+ VERSION = '6.4.0'
81
81
  end
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.3.90.pre
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-04-28 00:00:00.000000000 Z
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: 1.3.1
260
+ version: '0'
261
261
  requirements: []
262
262
  rubygems_version: 3.1.2
263
263
  signing_key: