opennebula-cli 6.4.1 → 6.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/oneacct +1 -1
- data/bin/oneacl +1 -1
- data/bin/onecluster +1 -1
- data/bin/onedatastore +1 -1
- data/bin/oneflow +1 -1
- data/bin/oneflow-template +10 -11
- data/bin/onegroup +1 -1
- data/bin/onehook +1 -1
- data/bin/onehost +2 -2
- data/bin/oneimage +6 -6
- data/bin/oneirb +1 -2
- data/bin/onelog +10 -4
- data/bin/onemarket +1 -1
- data/bin/onemarketapp +3 -3
- data/bin/onesecgroup +1 -1
- data/bin/oneshowback +1 -1
- data/bin/onetemplate +1 -1
- data/bin/oneuser +2 -2
- data/bin/onevcenter +1 -1
- data/bin/onevdc +1 -1
- data/bin/onevm +16 -16
- data/bin/onevmgroup +1 -1
- data/bin/onevnet +3 -3
- data/bin/onevntemplate +1 -1
- data/bin/onevrouter +1 -1
- data/bin/onezone +1 -1
- data/lib/cli_helper.rb +1 -1
- data/lib/command_parser.rb +1 -1
- data/lib/one_helper/oneacct_helper.rb +1 -1
- data/lib/one_helper/oneacl_helper.rb +1 -1
- data/lib/one_helper/onecluster_helper.rb +1 -1
- data/lib/one_helper/onedatastore_helper.rb +1 -1
- data/lib/one_helper/oneflow_helper.rb +1 -1
- data/lib/one_helper/oneflowtemplate_helper.rb +1 -1
- data/lib/one_helper/onegroup_helper.rb +1 -1
- data/lib/one_helper/onehook_helper.rb +1 -1
- data/lib/one_helper/onehost_helper.rb +41 -6
- data/lib/one_helper/oneimage_helper.rb +1 -1
- data/lib/one_helper/onemarket_helper.rb +1 -1
- data/lib/one_helper/onemarketapp_helper.rb +1 -1
- data/lib/one_helper/onequota_helper.rb +1 -1
- data/lib/one_helper/onesecgroup_helper.rb +1 -1
- data/lib/one_helper/onetemplate_helper.rb +1 -1
- data/lib/one_helper/oneuser_helper.rb +1 -1
- data/lib/one_helper/onevcenter_helper.rb +1 -1
- data/lib/one_helper/onevdc_helper.rb +1 -1
- data/lib/one_helper/onevm_helper.rb +1 -1
- data/lib/one_helper/onevmgroup_helper.rb +1 -1
- data/lib/one_helper/onevnet_helper.rb +1 -1
- data/lib/one_helper/onevntemplate_helper.rb +1 -1
- data/lib/one_helper/onevrouter_helper.rb +1 -1
- data/lib/one_helper/onezone_helper.rb +1 -1
- data/lib/one_helper.rb +2 -2
- data/share/schemas/xsd/host.xsd +23 -3
- 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: 52e0a5a3b38c09a00791302328c27a3f181e20e0a1f4b0508130eb2a12359ae1
|
4
|
+
data.tar.gz: 283952947e0a79cdae77f1b31194a00cd84d8e503dc70da22c702d64a1d95495
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ad8f15106d0da7d365684f85e9ccc88a36298dbd27901ba347aac6eb810abbd24c661bc96e30d40ab5427bef0fd8782e9b52b4a835c15fce8e85941496a806
|
7
|
+
data.tar.gz: 1d7570eb132a9d0547c6b4fda85db2975fe87969af9b8a84a11410b740f86c1db741d2c5bdb884e14ccc6d784f22480f266186391d5e804ca8b23feab8d427b0
|
data/bin/oneacct
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/oneacl
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onecluster
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onedatastore
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/oneflow
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/oneflow-template
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -234,26 +234,26 @@ CommandParser::CmdParser.new(ARGV) do
|
|
234
234
|
Instantiate a Service Template
|
235
235
|
EOT
|
236
236
|
|
237
|
-
command :instantiate,
|
238
|
-
instantiate_desc,
|
239
|
-
:templateid,
|
240
|
-
[:file, nil],
|
237
|
+
command :instantiate, instantiate_desc, :templateid, [:file, nil],
|
241
238
|
:options => [MULTIPLE, Service::JSON_FORMAT, Service::TOP] do
|
242
239
|
number = options[:multiple] || 1
|
243
240
|
params = {}
|
244
241
|
rc = 0
|
242
|
+
client = helper.client(options)
|
245
243
|
|
246
244
|
number.times do
|
247
245
|
params['merge_template'] = nil
|
248
246
|
params['merge_template'] = JSON.parse(File.read(args[1])) if args[1]
|
249
247
|
|
250
248
|
unless params['merge_template']
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
249
|
+
response = client.get("#{RESOURCE_PATH}/#{args[0]}")
|
250
|
+
|
251
|
+
if CloudClient.is_error?(response)
|
252
|
+
rc = [response.code.to_i, response.to_s]
|
253
|
+
break
|
254
|
+
end
|
255
255
|
|
256
|
-
body = JSON.parse(
|
256
|
+
body = JSON.parse(response.body)['DOCUMENT']['TEMPLATE']['BODY']
|
257
257
|
|
258
258
|
params['merge_template'] = helper.custom_attrs(
|
259
259
|
body['custom_attrs']
|
@@ -266,7 +266,6 @@ CommandParser::CmdParser.new(ARGV) do
|
|
266
266
|
end
|
267
267
|
|
268
268
|
json = Service.build_json_action('instantiate', params)
|
269
|
-
client = helper.client(options)
|
270
269
|
response = client.post("#{RESOURCE_PATH}/#{args[0]}/action", json)
|
271
270
|
|
272
271
|
if CloudClient.is_error?(response)
|
data/bin/onegroup
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onehook
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onehost
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -339,7 +339,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
339
339
|
rescue StandardError => e
|
340
340
|
STDERR.puts e
|
341
341
|
end
|
342
|
-
helper.perform_actions(args[0], options, '
|
342
|
+
helper.perform_actions(args[0], options, 'flushing') do |host|
|
343
343
|
host.flush action
|
344
344
|
end
|
345
345
|
end
|
data/bin/oneimage
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -234,7 +234,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
234
234
|
|
235
235
|
command :clone, clone_desc, :imageid, :name,
|
236
236
|
:options => [OneDatastoreHelper::DATASTORE] do
|
237
|
-
helper.perform_action(args[0], options, '
|
237
|
+
helper.perform_action(args[0], options, 'cloning') do |image|
|
238
238
|
ds_id = options[:datastore] || -1 # -1 clones to self
|
239
239
|
res = image.clone(args[1], ds_id)
|
240
240
|
|
@@ -252,7 +252,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
252
252
|
EOT
|
253
253
|
|
254
254
|
command :delete, delete_desc, [:range, :imageid_list] do
|
255
|
-
helper.perform_actions(args[0], options, '
|
255
|
+
helper.perform_actions(args[0], options, 'deleting') do |image|
|
256
256
|
image.delete
|
257
257
|
end
|
258
258
|
end
|
@@ -382,7 +382,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
382
382
|
EOT
|
383
383
|
|
384
384
|
command :'snapshot-delete', snapshot_delete_desc, :imageid, :snapshot_id do
|
385
|
-
helper.perform_action(args[0], options, 'snapshot
|
385
|
+
helper.perform_action(args[0], options, 'deleting snapshot') do |o|
|
386
386
|
o.snapshot_delete(args[1].to_i)
|
387
387
|
end
|
388
388
|
end
|
@@ -392,7 +392,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
392
392
|
EOT
|
393
393
|
|
394
394
|
command :'snapshot-revert', snapshot_revert_desc, :imageid, :snapshot_id do
|
395
|
-
helper.perform_action(args[0], options, 'image state
|
395
|
+
helper.perform_action(args[0], options, 'reverting image state') do |o|
|
396
396
|
o.snapshot_revert(args[1].to_i)
|
397
397
|
end
|
398
398
|
end
|
@@ -405,7 +405,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
405
405
|
snapshot_flatten_desc,
|
406
406
|
:imageid,
|
407
407
|
:snapshot_id do
|
408
|
-
helper.perform_action(args[0], options, 'snapshot
|
408
|
+
helper.perform_action(args[0], options, 'flattening snapshot') do |o|
|
409
409
|
o.snapshot_flatten(args[1].to_i)
|
410
410
|
end
|
411
411
|
end
|
data/bin/oneirb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -63,7 +63,6 @@ require 'json'
|
|
63
63
|
require 'nokogiri'
|
64
64
|
require 'openssl'
|
65
65
|
require 'ox'
|
66
|
-
require 'pp'
|
67
66
|
require 'set'
|
68
67
|
require 'socket'
|
69
68
|
require 'sqlite3'
|
data/bin/onelog
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -21,9 +21,11 @@ ONE_LOCATION = ENV['ONE_LOCATION']
|
|
21
21
|
if !ONE_LOCATION
|
22
22
|
RUBY_LIB_LOCATION = '/usr/lib/one/ruby'
|
23
23
|
GEMS_LOCATION = '/usr/share/one/gems'
|
24
|
+
LOG_LOCATION = '/var/log/one'
|
24
25
|
else
|
25
26
|
RUBY_LIB_LOCATION = ONE_LOCATION + '/lib/ruby'
|
26
27
|
GEMS_LOCATION = ONE_LOCATION + '/share/gems'
|
28
|
+
LOG_LOCATION = ONE_LOCATION + '/var'
|
27
29
|
end
|
28
30
|
|
29
31
|
# %%RUBYGEMS_SETUP_BEGIN%%
|
@@ -114,7 +116,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
114
116
|
|
115
117
|
options[:type].nil? ? f = logs[:log] : f = logs[options[:type].to_sym]
|
116
118
|
|
117
|
-
system("#{pager} #{options[:pager_opts]}
|
119
|
+
system("#{pager} #{options[:pager_opts]} #{LOG_LOCATION}/#{f}")
|
118
120
|
end
|
119
121
|
|
120
122
|
vm_desc = <<-EOT.unindent
|
@@ -127,7 +129,11 @@ CommandParser::CmdParser.new(ARGV) do
|
|
127
129
|
begin
|
128
130
|
Integer(args[0])
|
129
131
|
|
130
|
-
|
132
|
+
if !ONE_LOCATION
|
133
|
+
file = "#{LOG_LOCATION}/#{args[0]}.log"
|
134
|
+
else
|
135
|
+
file = "#{LOG_LOCATION}/vms/#{args[0]}/vm.log"
|
136
|
+
end
|
131
137
|
|
132
138
|
unless File.exist?(file)
|
133
139
|
STDERR.puts "No LOG file found for '#{args[0]}' VM"
|
@@ -154,7 +160,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
154
160
|
begin
|
155
161
|
Integer(args[0])
|
156
162
|
|
157
|
-
file = "/
|
163
|
+
file = "#{LOG_LOCATION}/oneflow/#{args[0]}.log"
|
158
164
|
|
159
165
|
unless File.exist?(file)
|
160
166
|
STDERR.puts "No LOG file found for '#{args[0]}' service"
|
data/bin/onemarket
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onemarketapp
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -284,7 +284,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
284
284
|
EOT
|
285
285
|
|
286
286
|
command :export, export_desc, :appid, :name, :options => EXPORT_OPTIONS do
|
287
|
-
helper.perform_action(args[0], options, '
|
287
|
+
helper.perform_action(args[0], options, 'exporting') do |obj|
|
288
288
|
tag ="tag=#{options[:tag]}" if options[:tag]
|
289
289
|
|
290
290
|
obj.extend(MarketPlaceAppExt)
|
@@ -325,7 +325,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
325
325
|
|
326
326
|
command :download, download_desc, :appid, :path,
|
327
327
|
:options => [OpenNebulaHelper::FORCE] do
|
328
|
-
helper.perform_action(args[0], options, '
|
328
|
+
helper.perform_action(args[0], options, 'downloading') do
|
329
329
|
download_args = [:marketplaceapp, args[0], args[1], options[:force]]
|
330
330
|
OpenNebulaHelper.download_resource_sunstone(*download_args)
|
331
331
|
end
|
data/bin/onesecgroup
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/oneshowback
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onetemplate
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/oneuser
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -708,7 +708,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
708
708
|
|
709
709
|
tokens = helper.find_token(user, token_hint, group, false)
|
710
710
|
|
711
|
-
if tokens.
|
711
|
+
if tokens.empty?
|
712
712
|
exit_with_code 1, 'No valid tokens found.'
|
713
713
|
end
|
714
714
|
|
data/bin/onevcenter
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onevdc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onevm
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -517,7 +517,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
517
517
|
if !options[:schedule].nil?
|
518
518
|
helper.schedule_actions(args[0], options, command_name)
|
519
519
|
else
|
520
|
-
helper.perform_actions(args[0], options, '
|
520
|
+
helper.perform_actions(args[0], options, 'terminating') do |vm|
|
521
521
|
vm.terminate(options[:hard] == true)
|
522
522
|
end
|
523
523
|
end
|
@@ -833,7 +833,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
833
833
|
template << ' ]'
|
834
834
|
end
|
835
835
|
|
836
|
-
helper.perform_action(args[0], options, '
|
836
|
+
helper.perform_action(args[0], options, 'Attaching disk') do |vm|
|
837
837
|
vm.disk_attach(template)
|
838
838
|
end
|
839
839
|
end
|
@@ -847,7 +847,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
847
847
|
command :"disk-detach", disk_detach_desc, :vmid, :diskid do
|
848
848
|
diskid = args[1].to_i
|
849
849
|
|
850
|
-
helper.perform_action(args[0], options, '
|
850
|
+
helper.perform_action(args[0], options, 'Detaching disk') do |vm|
|
851
851
|
vm.disk_detach(diskid)
|
852
852
|
end
|
853
853
|
end
|
@@ -910,7 +910,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
910
910
|
end
|
911
911
|
end
|
912
912
|
|
913
|
-
helper.perform_action(args[0], options, '
|
913
|
+
helper.perform_action(args[0], options, 'Attaching NIC') do |vm|
|
914
914
|
vm.nic_attach(template)
|
915
915
|
end
|
916
916
|
end
|
@@ -924,7 +924,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
924
924
|
command :"nic-detach", nic_detach_desc, :vmid, :nicid do
|
925
925
|
nicid = args[1].to_i
|
926
926
|
|
927
|
-
helper.perform_action(args[0], options, '
|
927
|
+
helper.perform_action(args[0], options, 'Detaching NIC') do |vm|
|
928
928
|
vm.nic_detach(nicid)
|
929
929
|
end
|
930
930
|
end
|
@@ -939,7 +939,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
939
939
|
nic_id = args[1].to_i
|
940
940
|
sg_id = args[2].to_i
|
941
941
|
|
942
|
-
helper.perform_action(args[0], options, '
|
942
|
+
helper.perform_action(args[0], options, 'Attaching SG') do |vm|
|
943
943
|
vm.sg_attach(nic_id, sg_id)
|
944
944
|
end
|
945
945
|
end
|
@@ -954,7 +954,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
954
954
|
nic_id = args[1].to_i
|
955
955
|
sg_id = args[2].to_i
|
956
956
|
|
957
|
-
helper.perform_action(args[0], options, '
|
957
|
+
helper.perform_action(args[0], options, 'Detaching SG') do |vm|
|
958
958
|
vm.sg_detach(nic_id, sg_id)
|
959
959
|
end
|
960
960
|
end
|
@@ -1047,7 +1047,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1047
1047
|
|
1048
1048
|
helper.schedule_actions(args[0], options, @comm_name)
|
1049
1049
|
else
|
1050
|
-
helper.perform_actions(args[0], options, 'snapshot
|
1050
|
+
helper.perform_actions(args[0], options, 'creating snapshot') do |o|
|
1051
1051
|
o.snapshot_create(args[1])
|
1052
1052
|
end
|
1053
1053
|
end
|
@@ -1071,7 +1071,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1071
1071
|
|
1072
1072
|
helper.schedule_actions([args[0]], options, @comm_name)
|
1073
1073
|
else
|
1074
|
-
helper.perform_action(args[0], options, 'snapshot
|
1074
|
+
helper.perform_action(args[0], options, 'reverting snapshot') do |o|
|
1075
1075
|
o.snapshot_revert(args[1].to_i)
|
1076
1076
|
end
|
1077
1077
|
end
|
@@ -1095,7 +1095,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1095
1095
|
|
1096
1096
|
helper.schedule_actions([args[0]], options, @comm_name)
|
1097
1097
|
else
|
1098
|
-
helper.perform_action(args[0], options, 'snapshot
|
1098
|
+
helper.perform_action(args[0], options, 'deleting snapshot') do |o|
|
1099
1099
|
o.snapshot_delete(args[1])
|
1100
1100
|
end
|
1101
1101
|
end
|
@@ -1123,7 +1123,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1123
1123
|
helper.schedule_actions([args[0]], options, @comm_name)
|
1124
1124
|
else
|
1125
1125
|
helper.perform_action(args[0], options,
|
1126
|
-
'disk snapshot
|
1126
|
+
'creating disk snapshot') do |o|
|
1127
1127
|
o.disk_snapshot_create(args[1].to_i, args[2])
|
1128
1128
|
end
|
1129
1129
|
end
|
@@ -1150,7 +1150,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1150
1150
|
helper.schedule_actions([args[0]], options, @comm_name)
|
1151
1151
|
else
|
1152
1152
|
helper.perform_action(args[0], options,
|
1153
|
-
'disk snapshot
|
1153
|
+
'reverting disk snapshot') do |o|
|
1154
1154
|
o.disk_snapshot_revert(args[1].to_i, args[2].to_i)
|
1155
1155
|
end
|
1156
1156
|
end
|
@@ -1177,7 +1177,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1177
1177
|
helper.schedule_actions([args[0]], options, @comm_name)
|
1178
1178
|
else
|
1179
1179
|
helper.perform_action(args[0], options,
|
1180
|
-
'disk snapshot
|
1180
|
+
'deleting disk snapshot') do |o|
|
1181
1181
|
o.disk_snapshot_delete(args[1].to_i, args[2].to_i)
|
1182
1182
|
end
|
1183
1183
|
end
|
@@ -1213,7 +1213,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1213
1213
|
|
1214
1214
|
command :"disk-resize", disk_resize_desc,
|
1215
1215
|
:vmid, :diskid, :size do
|
1216
|
-
helper.perform_action(args[0], options, 'disk
|
1216
|
+
helper.perform_action(args[0], options, 'resizing disk') do |o|
|
1217
1217
|
o.info
|
1218
1218
|
size = o["/VM/TEMPLATE/DISK[DISK_ID='#{args[1]}']/SIZE"].to_i
|
1219
1219
|
|
@@ -1350,7 +1350,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1350
1350
|
FEATURES = ["ACPI", "PAE", "APIC", "LOCALTIME", "HYPERV", "GUEST_AGENT", "IOTHREADS"]
|
1351
1351
|
INPUT = ["TYPE", "BUS"]
|
1352
1352
|
GRAPHICS = ["TYPE", "LISTEN", "PASSWD", "KEYMAP" ]
|
1353
|
-
RAW = ["DATA", "DATA_VMX", "TYPE"]
|
1353
|
+
RAW = ["DATA", "DATA_VMX", "TYPE", "VALIDATE"]
|
1354
1354
|
CPU_MODEL = ["MODEL"]
|
1355
1355
|
CONTEXT (any value, **variable substitution will be made**)
|
1356
1356
|
EOT
|
data/bin/onevmgroup
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onevnet
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -176,7 +176,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
176
176
|
EOT
|
177
177
|
|
178
178
|
command :delete, delete_desc, [:range, :vnetid_list] do
|
179
|
-
helper.perform_actions(args[0], options, '
|
179
|
+
helper.perform_actions(args[0], options, 'deleting') do |vn|
|
180
180
|
vn.delete
|
181
181
|
end
|
182
182
|
end
|
@@ -187,7 +187,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
187
187
|
|
188
188
|
command :addar, addar_desc, :vnetid, [:file, nil],
|
189
189
|
:options => STD_OPTIONS + OneVNetHelper::ADDAR_OPTIONS do
|
190
|
-
helper.perform_action(args[0], options, '
|
190
|
+
helper.perform_action(args[0], options, 'address range added') do |vn|
|
191
191
|
if args[1]
|
192
192
|
ar = File.read(args[1])
|
193
193
|
else
|
data/bin/onevntemplate
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onevrouter
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/bin/onezone
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# -------------------------------------------------------------------------- #
|
4
|
-
# Copyright 2002-
|
4
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
5
5
|
# #
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
7
7
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/cli_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/command_parser.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -692,7 +692,14 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
692
692
|
end
|
693
693
|
|
694
694
|
if numa_nodes && !numa_nodes.empty?
|
695
|
-
|
695
|
+
begin
|
696
|
+
monitoring_numa =
|
697
|
+
host.to_hash['HOST']['MONITORING']['NUMA_NODE']
|
698
|
+
rescue StandardError
|
699
|
+
monitoring_numa = nil
|
700
|
+
end
|
701
|
+
|
702
|
+
print_numa_nodes(numa_nodes, monitoring_numa)
|
696
703
|
end
|
697
704
|
|
698
705
|
puts
|
@@ -777,14 +784,34 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
777
784
|
table.show(pcis)
|
778
785
|
end
|
779
786
|
|
780
|
-
def print_numa_nodes(numa_nodes)
|
787
|
+
def print_numa_nodes(numa_nodes, monitoring)
|
781
788
|
numa_nodes = get_numa_data(numa_nodes)
|
782
789
|
|
790
|
+
merge_numa_monitoring(numa_nodes, monitoring)
|
791
|
+
|
783
792
|
print_numa_cores(numa_nodes)
|
784
793
|
print_numa_memory(numa_nodes)
|
785
794
|
print_numa_hugepages(numa_nodes)
|
786
795
|
end
|
787
796
|
|
797
|
+
def merge_numa_monitoring(numa_nodes, monitoring)
|
798
|
+
return if monitoring.nil?
|
799
|
+
|
800
|
+
monitoring = [monitoring] if monitoring.class == Hash
|
801
|
+
|
802
|
+
numa_nodes.each do |node|
|
803
|
+
mon_node = monitoring.find {|x| x['NODE_ID'] == node['NODE_ID'] }
|
804
|
+
|
805
|
+
node['MEMORY']['FREE'] = mon_node['MEMORY']['FREE']
|
806
|
+
node['MEMORY']['USED'] = mon_node['MEMORY']['USED']
|
807
|
+
|
808
|
+
node['HUGEPAGE'].each do |hp|
|
809
|
+
mon_hp = mon_node['HUGEPAGE'].find {|x| x['SIZE'] == hp['SIZE'] }
|
810
|
+
hp['FREE'] = mon_hp['FREE']
|
811
|
+
end
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
788
815
|
def get_numa_data(numa_nodes)
|
789
816
|
numa_nodes = [numa_nodes] if numa_nodes.class == Hash
|
790
817
|
|
@@ -894,7 +921,11 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
894
921
|
end
|
895
922
|
|
896
923
|
column :USED_REAL, 'Used memory', :size => 20, :left => true do |d|
|
897
|
-
|
924
|
+
if d['MEMORY']['USED'].nil?
|
925
|
+
'-'
|
926
|
+
else
|
927
|
+
OpenNebulaHelper.unit_to_str(d['MEMORY']['USED'].to_i, {})
|
928
|
+
end
|
898
929
|
end
|
899
930
|
|
900
931
|
column :USED_ALLOCATED, 'U memory',
|
@@ -903,7 +934,11 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
903
934
|
end
|
904
935
|
|
905
936
|
column :FREE, 'Free memory', :size => 8, :left => true do |d|
|
906
|
-
|
937
|
+
if d['MEMORY']['FREE'].nil?
|
938
|
+
'-'
|
939
|
+
else
|
940
|
+
OpenNebulaHelper.unit_to_str(d['MEMORY']['FREE'].to_i, {})
|
941
|
+
end
|
907
942
|
end
|
908
943
|
|
909
944
|
default :NODE_ID, :TOTAL, :USED_REAL, :USED_ALLOCATED, :FREE
|
@@ -941,7 +976,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
941
976
|
end
|
942
977
|
|
943
978
|
column :FREE, 'Free pages', :size => 8, :left => true do |d|
|
944
|
-
d['HUGEPAGE']['FREE']
|
979
|
+
d['HUGEPAGE']['FREE'] || '-'
|
945
980
|
end
|
946
981
|
|
947
982
|
column :USED, 'allocated pages', :size => 8, :left => true do |d|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
data/lib/one_helper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# -------------------------------------------------------------------------- #
|
2
|
-
# Copyright 2002-
|
2
|
+
# Copyright 2002-2023, OpenNebula Project, OpenNebula Systems #
|
3
3
|
# #
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
5
5
|
# not use this file except in compliance with the License. You may obtain #
|
@@ -30,7 +30,7 @@ include OpenNebula
|
|
30
30
|
module OpenNebulaHelper
|
31
31
|
ONE_VERSION=<<-EOT
|
32
32
|
OpenNebula #{OpenNebula::VERSION}
|
33
|
-
Copyright 2002-
|
33
|
+
Copyright 2002-2023, OpenNebula Project, OpenNebula Systems
|
34
34
|
EOT
|
35
35
|
|
36
36
|
if ONE_LOCATION
|
data/share/schemas/xsd/host.xsd
CHANGED
@@ -98,7 +98,6 @@
|
|
98
98
|
<xs:element name="HUGEPAGE" minOccurs="0" maxOccurs="unbounded">
|
99
99
|
<xs:complexType>
|
100
100
|
<xs:all>
|
101
|
-
<xs:element name="FREE" type="xs:integer"/>
|
102
101
|
<xs:element name="PAGES" type="xs:integer"/>
|
103
102
|
<xs:element name="SIZE" type="xs:integer"/>
|
104
103
|
<xs:element name="USAGE" type="xs:integer"/>
|
@@ -109,10 +108,8 @@
|
|
109
108
|
<xs:complexType>
|
110
109
|
<xs:all>
|
111
110
|
<xs:element name="DISTANCE" type="xs:string"/>
|
112
|
-
<xs:element name="FREE" type="xs:integer"/>
|
113
111
|
<xs:element name="TOTAL" type="xs:integer"/>
|
114
112
|
<xs:element name="USAGE" type="xs:integer"/>
|
115
|
-
<xs:element name="USED" type="xs:integer"/>
|
116
113
|
</xs:all>
|
117
114
|
</xs:complexType>
|
118
115
|
</xs:element>
|
@@ -177,6 +174,29 @@
|
|
177
174
|
</xs:sequence>
|
178
175
|
</xs:complexType>
|
179
176
|
</xs:element>
|
177
|
+
<xs:element name="NUMA_NODE" minOccurs="0" maxOccurs="unbounded">
|
178
|
+
<xs:complexType>
|
179
|
+
<xs:sequence>
|
180
|
+
<xs:element name="HUGEPAGE" minOccurs="0" maxOccurs="unbounded">
|
181
|
+
<xs:complexType>
|
182
|
+
<xs:all>
|
183
|
+
<xs:element name="FREE" type="xs:integer"/>
|
184
|
+
<xs:element name="SIZE" type="xs:integer"/>
|
185
|
+
</xs:all>
|
186
|
+
</xs:complexType>
|
187
|
+
</xs:element>
|
188
|
+
<xs:element name="MEMORY">
|
189
|
+
<xs:complexType>
|
190
|
+
<xs:all>
|
191
|
+
<xs:element name="FREE" type="xs:string"/>
|
192
|
+
<xs:element name="USED" type="xs:integer"/>
|
193
|
+
</xs:all>
|
194
|
+
</xs:complexType>
|
195
|
+
</xs:element>
|
196
|
+
<xs:element name="NODE_ID" type="xs:integer"/>
|
197
|
+
</xs:sequence>
|
198
|
+
</xs:complexType>
|
199
|
+
</xs:element>
|
180
200
|
</xs:sequence>
|
181
201
|
</xs:complexType>
|
182
202
|
</xs:element>
|
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: 6.4.
|
4
|
+
version: 6.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-30 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: 6.4.
|
19
|
+
version: 6.4.3
|
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: 6.4.
|
26
|
+
version: 6.4.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|