opennebula-cli 5.10.5 → 5.11.80.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/bin/oneacct +2 -1
  3. data/bin/oneacl +2 -1
  4. data/bin/onecluster +2 -1
  5. data/bin/onedatastore +2 -1
  6. data/bin/oneflow +149 -551
  7. data/bin/oneflow-template +171 -292
  8. data/bin/onegroup +2 -1
  9. data/bin/onehook +2 -1
  10. data/bin/onehost +9 -9
  11. data/bin/oneimage +2 -1
  12. data/bin/onemarket +2 -1
  13. data/bin/onemarketapp +2 -1
  14. data/bin/onesecgroup +2 -1
  15. data/bin/oneshowback +2 -1
  16. data/bin/onetemplate +2 -1
  17. data/bin/oneuser +2 -1
  18. data/bin/onevcenter +2 -1
  19. data/bin/onevdc +2 -1
  20. data/bin/onevm +88 -16
  21. data/bin/onevmgroup +2 -1
  22. data/bin/onevnet +11 -3
  23. data/bin/onevntemplate +2 -1
  24. data/bin/onevrouter +2 -1
  25. data/bin/onezone +2 -1
  26. data/lib/cli_helper.rb +10 -4
  27. data/lib/command_parser.rb +32 -13
  28. data/lib/one_helper.rb +193 -2
  29. data/lib/one_helper/oneacct_helper.rb +1 -1
  30. data/lib/one_helper/oneacl_helper.rb +1 -1
  31. data/lib/one_helper/onecluster_helper.rb +1 -1
  32. data/lib/one_helper/onedatastore_helper.rb +1 -1
  33. data/lib/one_helper/oneflow_helper.rb +413 -0
  34. data/lib/one_helper/oneflowtemplate_helper.rb +306 -0
  35. data/lib/one_helper/onegroup_helper.rb +1 -1
  36. data/lib/one_helper/onehook_helper.rb +1 -1
  37. data/lib/one_helper/onehost_helper.rb +29 -27
  38. data/lib/one_helper/oneimage_helper.rb +2 -2
  39. data/lib/one_helper/onemarket_helper.rb +1 -1
  40. data/lib/one_helper/onemarketapp_helper.rb +1 -1
  41. data/lib/one_helper/oneprovision_helper.rb +104 -60
  42. data/lib/one_helper/onequota_helper.rb +1 -1
  43. data/lib/one_helper/onesecgroup_helper.rb +1 -1
  44. data/lib/one_helper/onetemplate_helper.rb +9 -180
  45. data/lib/one_helper/oneuser_helper.rb +1 -1
  46. data/lib/one_helper/onevcenter_helper.rb +2 -1
  47. data/lib/one_helper/onevdc_helper.rb +1 -1
  48. data/lib/one_helper/onevm_helper.rb +11 -6
  49. data/lib/one_helper/onevmgroup_helper.rb +1 -1
  50. data/lib/one_helper/onevnet_helper.rb +1 -1
  51. data/lib/one_helper/onevntemplate_helper.rb +1 -1
  52. data/lib/one_helper/onevrouter_helper.rb +1 -1
  53. data/lib/one_helper/onezone_helper.rb +1 -1
  54. metadata +10 -8
@@ -1,5 +1,5 @@
1
1
  # -------------------------------------------------------------------------- #
2
- # Copyright 2002-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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,6 +1,6 @@
1
1
 
2
2
  # -------------------------------------------------------------------------- #
3
- # Copyright 2002-2019, OpenNebula Project, OpenNebula Systems #
3
+ # Copyright 2002-2020, OpenNebula Project, OpenNebula Systems #
4
4
  # #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License"); you may #
6
6
  # not use this file except in compliance with the License. You may obtain #
@@ -96,6 +96,7 @@ class OneVcenterHelper < OpenNebulaHelper::OneHelper
96
96
  end
97
97
 
98
98
  def host(arg)
99
+ return arg
99
100
  end
100
101
 
101
102
  ########################
@@ -1,5 +1,5 @@
1
1
  # -------------------------------------------------------------------------- #
2
- # Copyright 2002-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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 #
@@ -345,15 +345,15 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
345
345
  OneVMHelper.state_to_str(d['STATE'], d['LCM_STATE'])
346
346
  end
347
347
 
348
- column :UCPU, 'CPU percentage used by the VM', :size => 4 do |d|
349
- cpu = d['MONITORING']['CPU']
348
+ column :CPU, 'CPU asigned to the VM', :size => 4 do |d|
349
+ cpu = d['TEMPLATE']['CPU']
350
350
  cpu = '0' if cpu.nil?
351
351
 
352
352
  cpu
353
353
  end
354
354
 
355
- column :UMEM, 'Memory used by the VM', :size => 7 do |d|
356
- OpenNebulaHelper.unit_to_str(d['MONITORING']['MEMORY'].to_i,
355
+ column :MEM, 'Memory asigned to the VM', :size => 7 do |d|
356
+ OpenNebulaHelper.unit_to_str(d['TEMPLATE']['MEMORY'].to_i,
357
357
  options)
358
358
  end
359
359
 
@@ -395,7 +395,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
395
395
  OneVMHelper.ip_str(d)
396
396
  end
397
397
 
398
- default :ID, :USER, :GROUP, :NAME, :STAT, :UCPU, :UMEM, :HOST,
398
+ default :ID, :USER, :GROUP, :NAME, :STAT, :CPU, :MEM, :HOST,
399
399
  :TIME
400
400
  end
401
401
 
@@ -457,6 +457,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
457
457
 
458
458
  tmp_str << "\nSCHED_ACTION = "
459
459
  tmp_str << "[ID = #{id}, ACTION = #{action}, "
460
+ tmp_str << "ARGS = \"#{options[:args]}\"," if options[:args]
460
461
  tmp_str << "TIME = #{options[:schedule].to_i}"
461
462
  tmp_str << str_periodic << ']'
462
463
 
@@ -1151,6 +1152,10 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
1151
1152
  d['ACTION'] unless d.nil?
1152
1153
  end
1153
1154
 
1155
+ column :ARGS, '', :left, :size => 15 do |d|
1156
+ d['ARGS'] ? d['ARGS'] : '-'
1157
+ end
1158
+
1154
1159
  column :SCHEDULED, '', :size => 12 do |d|
1155
1160
  OpenNebulaHelper.time_to_str(d['TIME'], false) \
1156
1161
  unless d.nil?
@@ -1,5 +1,5 @@
1
1
  # -------------------------------------------------------------------------- #
2
- # Copyright 2002-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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-2019, OpenNebula Project, OpenNebula Systems #
2
+ # Copyright 2002-2020, 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 #
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.10.5
4
+ version: 5.11.80.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opennebula
@@ -16,16 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.10.5
19
+ version: 5.11.80.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.10.5
26
+ version: 5.11.80.pre
27
27
  description: Commands used to talk to OpenNebula
28
- email: contact@opennebula.org
28
+ email: contact@opennebula.io
29
29
  executables:
30
30
  - oneacct
31
31
  - oneacl
@@ -85,6 +85,8 @@ files:
85
85
  - lib/one_helper/oneacl_helper.rb
86
86
  - lib/one_helper/onecluster_helper.rb
87
87
  - lib/one_helper/onedatastore_helper.rb
88
+ - lib/one_helper/oneflow_helper.rb
89
+ - lib/one_helper/oneflowtemplate_helper.rb
88
90
  - lib/one_helper/onegroup_helper.rb
89
91
  - lib/one_helper/onehook_helper.rb
90
92
  - lib/one_helper/onehost_helper.rb
@@ -106,7 +108,7 @@ files:
106
108
  - lib/one_helper/onezone_helper.rb
107
109
  - NOTICE
108
110
  - LICENSE
109
- homepage: http://opennebula.org
111
+ homepage: http://opennebula.io
110
112
  licenses:
111
113
  - Apache-2.0
112
114
  metadata: {}
@@ -121,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
123
  version: '0'
122
124
  required_rubygems_version: !ruby/object:Gem::Requirement
123
125
  requirements:
124
- - - '>='
126
+ - - '>'
125
127
  - !ruby/object:Gem::Version
126
- version: '0'
128
+ version: 1.3.1
127
129
  requirements: []
128
130
  rubyforge_project:
129
131
  rubygems_version: 2.0.14.1