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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30b1eeb0d6f269692aef6b3afd5e2ae31996d07ce53bc8a8c0ae5a7dec79e35a
4
- data.tar.gz: 253e6141092946c85fc93beb7d07ef85017e3ae0945476328fe252c29749a263
3
+ metadata.gz: 24f7e3fc4b65f114d9882b4ac4d8070785c024e906974e6ea0b37f0284fabe09
4
+ data.tar.gz: c62e9e17681129253e72bffe09fd6b0986e00387a6080b3f4ecf4b4c64a83fde
5
5
  SHA512:
6
- metadata.gz: c60d3275025ab5c39ce3e900cba7742e2e96490d27d3d30fd5d1f75d7f76160f424f65c58bc765e15ff8ca07512dbe8db968647c997b1f50965e93b539ce91b9
7
- data.tar.gz: be9cbc8db9dc7c86e485e3bf690544710f082eec532f592921c5db1de17c396834227b0ab84eda0e515790441108fb1ae8522a35aff03354013c09954e97872e
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 = (options[:userfilter] || VirtualMachinePool::INFO_ALL)
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
@@ -77,7 +77,7 @@ CommandParser::CmdParser.new(ARGV) do
77
77
  exit(0)
78
78
  end
79
79
 
80
- filter_flag = (options[:userfilter] || VirtualMachinePool::INFO_ALL)
80
+ filter_flag = options[:userfilter] || VirtualMachinePool::INFO_ALL
81
81
 
82
82
  start_month = -1
83
83
  start_year = -1
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 spefici token (new resources will be created in that
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
@@ -261,7 +261,7 @@ CommandParser::CmdParser.new(ARGV) do
261
261
  Examples:
262
262
  - importing first datastore
263
263
 
264
- onevcenter list -o templates -h <host_id>
264
+ onevcenter import -o templates -h <host_id>
265
265
 
266
266
  - importing 2 concrete templates:
267
267
 
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 the a saved VM
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 delete-recreate: Any but STOP/UNDEPLOYED
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 (offline, the VM cannot be
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 -v \'0.6\'` to install it'
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 => 'Lines to add to the context section'
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.exists?(path)
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.5
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: 2023-11-23 00:00:00.000000000 Z
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.5
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.5
26
+ version: 6.4.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement