opennebula-cli 6.4.5 → 6.4.7

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: 35fcf46056dee5465f882c7856dc094b7c302e1b9fa04fbc972463820b7bcb23
4
+ data.tar.gz: 3c131a42ff47dece967c6c5828d1079ac4dcb290ff996ff8f8a1efc3456f6a74
5
5
  SHA512:
6
- metadata.gz: c60d3275025ab5c39ce3e900cba7742e2e96490d27d3d30fd5d1f75d7f76160f424f65c58bc765e15ff8ca07512dbe8db968647c997b1f50965e93b539ce91b9
7
- data.tar.gz: be9cbc8db9dc7c86e485e3bf690544710f082eec532f592921c5db1de17c396834227b0ab84eda0e515790441108fb1ae8522a35aff03354013c09954e97872e
6
+ metadata.gz: 124a6e98d92a4ee91f76048a1501e80b930e447a6b01a2b13e2c88de6127f516ece23ed57331105be9068ded0dfec3a3643484cfecae772f816b55eb2e31b79d
7
+ data.tar.gz: 3376a4735e60b64812eafc6bd6ec9146cc3f8d74cf6ade7cdae25d590d7362509ab791c4436f77fde966d4bfbda456ff8be888b46953ca2178758b419661522e
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}"
@@ -42,12 +42,25 @@
42
42
  <xs:element name="VMS_THREAD" type="xs:integer"/>
43
43
  <xs:element name="DATASTORES">
44
44
  <xs:complexType>
45
- <xs:all>
45
+ <xs:sequence>
46
46
  <xs:element name="DISK_USAGE" type="xs:integer"/>
47
+ <xs:element name="DS" minOccurs="0" maxOccurs="unbounded">
48
+ <xs:complexType>
49
+ <xs:sequence>
50
+ <xs:element name="FREE_MB" type="xs:integer"/>
51
+ <xs:element name="ID" type="xs:integer"/>
52
+ <xs:element name="TOTAL_MB" type="xs:integer"/>
53
+ <xs:element name="USED_MB" type="xs:integer"/>
54
+ <xs:element name="REPLICA_CACHE" type="xs:string" minOccurs="0" maxOccurs="1"/>
55
+ <xs:element name="REPLICA_CACHE_SIZE" type="xs:string" minOccurs="0" maxOccurs="1"/>
56
+ <xs:element name="REPLICA_IMAGES" type="xs:integer" minOccurs="0" maxOccurs="1"/>
57
+ </xs:sequence>
58
+ </xs:complexType>
59
+ </xs:element>
47
60
  <xs:element name="FREE_DISK" type="xs:integer"/>
48
61
  <xs:element name="MAX_DISK" type="xs:integer"/>
49
62
  <xs:element name="USED_DISK" type="xs:integer"/>
50
- </xs:all>
63
+ </xs:sequence>
51
64
  </xs:complexType>
52
65
  </xs:element>
53
66
  <xs:element name="PCI_DEVICES">
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.7
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-12-10 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.7
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.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -41,32 +41,32 @@ dependencies:
41
41
  description: Commands used to talk to OpenNebula
42
42
  email: contact@opennebula.io
43
43
  executables:
44
- - onezone
45
- - onevcenter
46
- - oneimage
47
- - onevmgroup
48
- - onehost
44
+ - oneacct
45
+ - oneacl
46
+ - onecluster
47
+ - onedatastore
48
+ - oneflow
49
+ - oneflow-template
49
50
  - onegroup
50
51
  - onehook
51
- - onevdc
52
- - oneacl
52
+ - onehost
53
+ - oneimage
53
54
  - oneirb
54
- - oneflow-template
55
- - onevrouter
56
- - oneshowback
57
- - oneuser
58
- - oneacct
59
- - onesecgroup
60
- - onecluster
61
55
  - onelog
56
+ - onemarket
62
57
  - onemarketapp
58
+ - onesecgroup
59
+ - oneshowback
63
60
  - onetemplate
64
- - onemarket
65
- - onevntemplate
66
- - onevnet
67
- - oneflow
68
- - onedatastore
61
+ - oneuser
62
+ - onevcenter
63
+ - onevdc
69
64
  - onevm
65
+ - onevmgroup
66
+ - onevnet
67
+ - onevntemplate
68
+ - onevrouter
69
+ - onezone
70
70
  extensions: []
71
71
  extra_rdoc_files: []
72
72
  files:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.1.2
196
+ rubygems_version: 3.3.5
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: OpenNebula Command Line Interface