opennebula-cli 5.13.80.pre → 5.13.85.pre
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/bin/onehost +2 -2
- data/bin/oneimage +2 -2
- data/bin/onemarketapp +1 -1
- data/lib/cli_helper.rb +2 -2
- data/lib/one_helper/onemarketapp_helper.rb +12 -6
- data/lib/one_helper/onezone_helper.rb +1 -5
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 855c80b5cfbc91284d684d4ad8c16b16723280a4
|
|
4
|
+
data.tar.gz: 583fd805721234146baa37a38cfb231bda65d77d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e13faf950b3041e3fe6957f9d007b9ed984cf6ecf201e6148b8ca203f18390dfc78cc01c2208881aef764809cc3ad8c073100c3b5498a44681677f46168e9b9
|
|
7
|
+
data.tar.gz: c42cb386febcc3f7a25bebddc11747bd8d7337f7e3cff466ad8d12fa8fd95e77e905ec307e18981d9bbcd0d605a97809b113819070184377d4d5a2ba06c8ce33
|
data/bin/onehost
CHANGED
|
@@ -171,8 +171,8 @@ CommandParser::CmdParser.new(ARGV) do
|
|
|
171
171
|
[:file, nil], :options => CREAT_OPTIONS do
|
|
172
172
|
if options[:im].nil? || options[:vm].nil?
|
|
173
173
|
STDERR.puts 'Drivers are mandatory to create a host:'
|
|
174
|
-
STDERR.puts
|
|
175
|
-
STDERR.puts
|
|
174
|
+
STDERR.puts "\t -i information driver"
|
|
175
|
+
STDERR.puts "\t -v hypervisor driver"
|
|
176
176
|
exit(-1)
|
|
177
177
|
end
|
|
178
178
|
|
data/bin/oneimage
CHANGED
|
@@ -164,7 +164,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
|
164
164
|
:options => CREATE_OPTIONS + OneImageHelper::TEMPLATE_OPTIONS do
|
|
165
165
|
if options[:datastore].nil? && !options[:dry]
|
|
166
166
|
STDERR.puts 'Datastore to save the image is mandatory: '
|
|
167
|
-
STDERR.puts
|
|
167
|
+
STDERR.puts "\t -d datastore_id"
|
|
168
168
|
exit(-1)
|
|
169
169
|
end
|
|
170
170
|
|
|
@@ -484,7 +484,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
|
484
484
|
# Check user options
|
|
485
485
|
unless options[:datastore]
|
|
486
486
|
STDERR.puts 'Datastore to save the image is mandatory: '
|
|
487
|
-
STDERR.puts
|
|
487
|
+
STDERR.puts "\t -d datastore_id"
|
|
488
488
|
exit(-1)
|
|
489
489
|
end
|
|
490
490
|
|
data/bin/onemarketapp
CHANGED
|
@@ -177,7 +177,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
|
177
177
|
OneMarketPlaceAppHelper::TEMPLATE_OPTIONS do
|
|
178
178
|
if options[:marketplace].nil?
|
|
179
179
|
STDERR.puts 'Marketplace to save the app is mandatory: '
|
|
180
|
-
STDERR.puts
|
|
180
|
+
STDERR.puts "\t -m marketplace_id"
|
|
181
181
|
exit(-1)
|
|
182
182
|
end
|
|
183
183
|
|
data/lib/cli_helper.rb
CHANGED
|
@@ -357,14 +357,14 @@ module CLIHelper
|
|
|
357
357
|
# @param options [Hash] Object with CLI user options
|
|
358
358
|
# @param top [Boolean] True to not update columns again
|
|
359
359
|
def show(data, options = {}, top = false)
|
|
360
|
+
update_columns(options) unless top
|
|
361
|
+
|
|
360
362
|
if options[:list]
|
|
361
363
|
@cli_columns = options[:list].collect {|o| o.upcase.to_sym }
|
|
362
364
|
else
|
|
363
365
|
@cli_columns = @default_columns
|
|
364
366
|
end
|
|
365
367
|
|
|
366
|
-
update_columns(options) unless top
|
|
367
|
-
|
|
368
368
|
if data.is_a? Hash
|
|
369
369
|
@data = data
|
|
370
370
|
|
|
@@ -198,6 +198,9 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
198
198
|
end
|
|
199
199
|
end
|
|
200
200
|
|
|
201
|
+
# Turn import all into a boolean
|
|
202
|
+
import_all == 'yes' ? import_all = true : import_all = false
|
|
203
|
+
|
|
201
204
|
main_market = options[:market]
|
|
202
205
|
|
|
203
206
|
# Read marketplace where import the service template
|
|
@@ -232,7 +235,7 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
232
235
|
ids = []
|
|
233
236
|
|
|
234
237
|
# Create roles apps
|
|
235
|
-
if import_all
|
|
238
|
+
if import_all
|
|
236
239
|
rc = create_apps(markets, import_all)
|
|
237
240
|
ids = rc[1]
|
|
238
241
|
|
|
@@ -282,6 +285,9 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
282
285
|
end
|
|
283
286
|
end
|
|
284
287
|
|
|
288
|
+
# Turn import all into a boolean
|
|
289
|
+
import_all == 'yes' ? import_all = true : import_all = false
|
|
290
|
+
|
|
285
291
|
main_market = options[:market]
|
|
286
292
|
|
|
287
293
|
# Read marketplace where import the VM template
|
|
@@ -510,7 +516,7 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
510
516
|
|
|
511
517
|
# Get roles information when importing a service template into marketplace
|
|
512
518
|
#
|
|
513
|
-
# @param import_all [
|
|
519
|
+
# @param import_all [Boolean] true to import VM templates too
|
|
514
520
|
# @param body [Hash] Sevice Template information
|
|
515
521
|
# @param pool [Array] Marketplace pool
|
|
516
522
|
# @param market [Integer] Marketplace to import
|
|
@@ -525,7 +531,7 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
525
531
|
markets = {}
|
|
526
532
|
default_mp = pool.first['ID'].to_i
|
|
527
533
|
|
|
528
|
-
if import_all
|
|
534
|
+
if import_all
|
|
529
535
|
# Read marketplace where import each different VM template
|
|
530
536
|
# It can only be a private marketplace
|
|
531
537
|
unless market
|
|
@@ -592,9 +598,9 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
|
|
|
592
598
|
|
|
593
599
|
# Create applications in Marketplace
|
|
594
600
|
#
|
|
595
|
-
# @param markets [Hash]
|
|
596
|
-
# @param import_all [
|
|
597
|
-
# @param template_name [String]
|
|
601
|
+
# @param markets [Hash] Marketplaces and templates information
|
|
602
|
+
# @param import_all [Boolean] true to import images too
|
|
603
|
+
# @param template_name [String] Virtual Machine Template app name
|
|
598
604
|
#
|
|
599
605
|
# @return [String] Error message in case of any
|
|
600
606
|
def create_apps(markets, import_all, template_name = nil)
|
|
@@ -38,8 +38,6 @@ class Replicator
|
|
|
38
38
|
:service => 'opennebula' },
|
|
39
39
|
{ :name => 'monitord.conf',
|
|
40
40
|
:service => 'opennebula' },
|
|
41
|
-
{ :name => 'econe.conf',
|
|
42
|
-
:service => 'opennebula-econe' },
|
|
43
41
|
{ :name => 'oneflow-server.conf',
|
|
44
42
|
:service => 'opennebula-flow' },
|
|
45
43
|
{ :name => 'onegate-server.conf',
|
|
@@ -57,7 +55,6 @@ class Replicator
|
|
|
57
55
|
FOLDERS = [
|
|
58
56
|
{ :name => 'sunstone-views', :service => 'opennebula-sunstone' },
|
|
59
57
|
{ :name => 'auth', :service => 'opennebula' },
|
|
60
|
-
{ :name => 'ec2query_templates', :service => 'opennebula' },
|
|
61
58
|
{ :name => 'hm', :service => 'opennebula' },
|
|
62
59
|
{ :name => 'sunstone-views', :service => 'opennebula' },
|
|
63
60
|
{ :name => 'vmm_exec', :service => 'opennebula' }
|
|
@@ -99,8 +96,7 @@ class Replicator
|
|
|
99
96
|
@opennebula_services = { 'opennebula' => false,
|
|
100
97
|
'opennebula-sunstone' => false,
|
|
101
98
|
'opennebula-gate' => false,
|
|
102
|
-
'opennebula-flow' => false
|
|
103
|
-
'opennebula-econe' => false }
|
|
99
|
+
'opennebula-flow' => false }
|
|
104
100
|
end
|
|
105
101
|
|
|
106
102
|
# Process files and folders
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opennebula-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.13.
|
|
4
|
+
version: 5.13.85.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenNebula
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opennebula
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 5.13.
|
|
19
|
+
version: 5.13.85.pre
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 5.13.
|
|
26
|
+
version: 5.13.85.pre
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|