opennebula-cli 6.4.5 → 6.4.6
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/oneshowback +1 -1
- data/bin/oneuser +1 -1
- data/bin/onevcenter +1 -1
- data/bin/onevm +7 -4
- data/bin/onezone +1 -5
- data/lib/one_helper/onehost_helper.rb +2 -0
- data/lib/one_helper.rb +4 -4
- 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: 24f7e3fc4b65f114d9882b4ac4d8070785c024e906974e6ea0b37f0284fabe09
|
4
|
+
data.tar.gz: c62e9e17681129253e72bffe09fd6b0986e00387a6080b3f4ecf4b4c64a83fde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 407a8a954b45b0657c6b3797d6a1640f76c6ecbb6f06c0cecfe661d16386fbd9f9ab37ec71f0391b80def5359f8bb6f6e40429e66a74acebf753aba3154da27d
|
7
|
+
data.tar.gz: 25d0ff8779579f32954cebde7485caa758334283736b7958257071cf08b79891135fd280124574df025d79eac911bdd5ca936c94e959182118da593b354cf36e
|
data/bin/oneacct
CHANGED
@@ -75,7 +75,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
75
75
|
exit(0)
|
76
76
|
end
|
77
77
|
|
78
|
-
filter_flag =
|
78
|
+
filter_flag = options[:userfilter] || VirtualMachinePool::INFO_ALL
|
79
79
|
if options[:start_time]
|
80
80
|
start_time = options[:start_time].to_i
|
81
81
|
else
|
data/bin/oneshowback
CHANGED
data/bin/oneuser
CHANGED
@@ -620,7 +620,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
620
620
|
Example, request a valid token for a generic driver (e.g. core auth, LDAP...):
|
621
621
|
oneuser token-create my_user --time 3600
|
622
622
|
|
623
|
-
Example, request a group
|
623
|
+
Example, request a group specific token (new resources will be created in that
|
624
624
|
group and only resources that belong to that group will be listed):
|
625
625
|
oneuser token-create my_user --group <id|group>
|
626
626
|
|
data/bin/onevcenter
CHANGED
data/bin/onevm
CHANGED
@@ -713,7 +713,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
713
713
|
end
|
714
714
|
|
715
715
|
resume_desc = <<-EOT.unindent
|
716
|
-
Resumes the execution of
|
716
|
+
Resumes the execution of a saved VM
|
717
717
|
|
718
718
|
States: STOPPED, SUSPENDED, UNDEPLOYED, POWEROFF, UNKNOWN
|
719
719
|
EOT
|
@@ -747,7 +747,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
747
747
|
States for success/failure recovers: Any ACTIVE state.
|
748
748
|
States for a retry recover: Any *FAILURE state
|
749
749
|
States for delete: Any
|
750
|
-
States for
|
750
|
+
States for recreate: Any but DONE/POWEROFF/SUSPENDED
|
751
751
|
States for delete-db: Any
|
752
752
|
EOT
|
753
753
|
|
@@ -1252,6 +1252,10 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1252
1252
|
|
1253
1253
|
if options[:xml]
|
1254
1254
|
puts pool.to_xml
|
1255
|
+
elsif options[:json]
|
1256
|
+
puts JSON.pretty_generate(pool.to_hash)
|
1257
|
+
elsif options[:yaml]
|
1258
|
+
puts pool.to_hash.to_yaml
|
1255
1259
|
else
|
1256
1260
|
table.show(pool.to_hash, options)
|
1257
1261
|
end
|
@@ -1281,8 +1285,7 @@ CommandParser::CmdParser.new(ARGV) do
|
|
1281
1285
|
end
|
1282
1286
|
|
1283
1287
|
resize_desc = <<-EOT.unindent
|
1284
|
-
Resizes the capacity of a Virtual Machine
|
1285
|
-
RUNNING)
|
1288
|
+
Resizes the capacity of a Virtual Machine
|
1286
1289
|
|
1287
1290
|
EOT
|
1288
1291
|
|
data/bin/onezone
CHANGED
@@ -246,15 +246,11 @@ CommandParser::CmdParser.new(ARGV) do
|
|
246
246
|
|
247
247
|
command :serversync, sync_desc, :server, :options => [DATABASE] do
|
248
248
|
begin
|
249
|
-
# Suppress augeas require warning message
|
250
|
-
$VERBOSE = nil
|
251
|
-
|
252
|
-
gem 'augeas', '~> 0.6'
|
253
249
|
require 'augeas'
|
254
250
|
rescue Gem::LoadError
|
255
251
|
STDERR.puts(
|
256
252
|
'Augeas gem is not installed, run `gem install ' \
|
257
|
-
'augeas
|
253
|
+
'opennebula-augeas` to install it'
|
258
254
|
)
|
259
255
|
exit(-1)
|
260
256
|
end
|
@@ -802,6 +802,8 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
802
802
|
numa_nodes.each do |node|
|
803
803
|
mon_node = monitoring.find {|x| x['NODE_ID'] == node['NODE_ID'] }
|
804
804
|
|
805
|
+
next if mon_node.nil?
|
806
|
+
|
805
807
|
node['MEMORY']['FREE'] = mon_node['MEMORY']['FREE']
|
806
808
|
node['MEMORY']['USED'] = mon_node['MEMORY']['USED']
|
807
809
|
|
data/lib/one_helper.rb
CHANGED
@@ -357,7 +357,7 @@ EOT
|
|
357
357
|
:name => 'context',
|
358
358
|
:large => '--context line1,line2,line3',
|
359
359
|
:format => Array,
|
360
|
-
:description => '
|
360
|
+
:description => 'Replaces the context section with the specified lines'
|
361
361
|
},
|
362
362
|
{
|
363
363
|
:name => 'boot',
|
@@ -918,12 +918,12 @@ EOT
|
|
918
918
|
elsif options[:xml]
|
919
919
|
return list_pool_xml(pool, options, filter_flag)
|
920
920
|
elsif options[:json]
|
921
|
-
list_pool_format(pool, options, filter_flag) do |pool|
|
921
|
+
return list_pool_format(pool, options, filter_flag) do |pool|
|
922
922
|
hash = check_resource_xsd(pool, pname)
|
923
923
|
puts ::JSON.pretty_generate(hash)
|
924
924
|
end
|
925
925
|
elsif options[:yaml]
|
926
|
-
list_pool_format(pool, options, filter_flag) do |pool|
|
926
|
+
return list_pool_format(pool, options, filter_flag) do |pool|
|
927
927
|
hash = check_resource_xsd(pool, pname)
|
928
928
|
puts hash.to_yaml(:indent => 4)
|
929
929
|
end
|
@@ -1141,7 +1141,7 @@ EOT
|
|
1141
1141
|
def self.table_conf(conf_file=self.conf_file)
|
1142
1142
|
path = "#{ENV["HOME"]}/.one/cli/#{conf_file}"
|
1143
1143
|
|
1144
|
-
if File.
|
1144
|
+
if File.exist?(path)
|
1145
1145
|
return path
|
1146
1146
|
else
|
1147
1147
|
return "#{TABLE_CONF_PATH}/#{conf_file}"
|
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.6
|
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: 2024-06-11 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.6
|
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.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|