opennebula-cli 4.90.0.beta1 → 4.90.10.rc1

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
  SHA1:
3
- metadata.gz: 03d316a86c2d34e3a0f246b8c1bc65380a3edabb
4
- data.tar.gz: 9cce74d38345ea1f873119f10bdb16ace40391a6
3
+ metadata.gz: d6a5ac89156c41b32c7dda603606ea64843a5951
4
+ data.tar.gz: 230a6c25080f7057b86cbe31a2cf287700a2ef5b
5
5
  SHA512:
6
- metadata.gz: adc9b92034a6fb1ac7d4ee40ed90ae967eed40a05e34309ab02cd21a383cbb9112e58b0bad114d3e3b6e48cb4c22d2606c7b1974b306340cc2044352b78226d3
7
- data.tar.gz: 5651dbf53d3b2827bb65bd839c3c58b9a401e013864e7eab4183902240937126ef4c260a17f2669b285735075b0b8b8340e387a5fc959d46aedfd6aba9c594d7
6
+ metadata.gz: 180e52d5207e7e8ae08ac0d2c973dd538f1c124a1e10c85a83fc479e41c8dd8d8aeb82a0739f85d2984e1016a781e7ec2943d0f8303f50a230c7e6e736aee0cd
7
+ data.tar.gz: 92d169992c1679bc7769f24fd8bf40e09420bfeff0b415746f0f52065f1f1b39a7580506017e09c9b6406a643b71aab4bd7f9a137ebf3e114d959b6c90f6a850
data/bin/oneacct CHANGED
@@ -122,8 +122,8 @@ cmd = CommandParser::CmdParser.new(ARGV) do
122
122
  end
123
123
  end
124
124
 
125
- cols=AcctHelper::ACCT_TABLE.default_columns
126
- AcctHelper::ACCT_TABLE.default(:UID, *cols)
125
+ cols = [ :UID ] + AcctHelper::ACCT_TABLE.default_columns
126
+ options[:list] ||= cols
127
127
 
128
128
  AcctHelper::ACCT_TABLE.show(a, options)
129
129
  exit(0)
data/bin/oneimage CHANGED
@@ -105,7 +105,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
105
105
 
106
106
  oneimage create -d 1 --name ubuntu --path /tmp/ubuntu.qcow2 \\
107
107
  --prefix sd --type OS --driver qcow2 \\
108
- --description "A OS plain installation"
108
+ --description "A OS plain installation \\
109
+ --persistent"
109
110
 
110
111
  - a datablock image of 400MB:
111
112
 
data/bin/onevcenter CHANGED
@@ -642,7 +642,13 @@ cmd=CommandParser::CmdParser.new(ARGV) do
642
642
  rc = one_i.allocate(i[:one], i[:dsid].to_i)
643
643
 
644
644
  if ::OpenNebula.is_error?(rc)
645
- STDOUT.puts " Error creating image: #{rc.message}\n"
645
+ STDOUT.puts "Error creating image: #{rc.message}\n"
646
+ if rc.message == "[ImageAllocate] Not enough space "\
647
+ "in datastore"
648
+ STDOUT.puts "Please disable DATASTORE_CAPACITY_"\
649
+ "CHECK in /etc/one/oned.conf and "\
650
+ "restart OpenNebula."
651
+ end
646
652
  else
647
653
  STDOUT.puts " OpenNebula image #{one_i.id} created!\n"
648
654
  end
data/bin/onevm CHANGED
@@ -925,9 +925,9 @@ cmd=CommandParser::CmdParser.new(ARGV) do
925
925
  end
926
926
 
927
927
  updateconf_desc = <<-EOT.unindent
928
- Updates the configuration of a VM. The VM cannot be in a active (running)
928
+ Updates the configuration of a VM. The VM cannot be in an active (running)
929
929
  state, valid states are: pending, failure, poweroff, undeploy, hold or
930
- clonning.
930
+ cloning.
931
931
 
932
932
  This command accepts a template file or opens an editor, the full list of
933
933
  configuration attributes are:
data/lib/one_helper.rb CHANGED
@@ -347,6 +347,11 @@ EOT
347
347
  :large => '--startscript [file]',
348
348
  :format => String,
349
349
  :description => 'Start script to be executed'
350
+ },
351
+ {
352
+ :name => 'report_ready',
353
+ :large => '--report_ready',
354
+ :description => 'Sends READY=YES to OneGate, useful for OneFlow'
350
355
  }
351
356
  ]
352
357
 
@@ -953,7 +958,7 @@ EOT
953
958
  end
954
959
 
955
960
  def self.create_context(options)
956
- context_options = [:ssh, :net_context, :context, :init, :files_ds, :startscript]
961
+ context_options = [:ssh, :net_context, :context, :init, :files_ds, :startscript, :report_ready]
957
962
  if !(options.keys & context_options).empty?
958
963
  lines=[]
959
964
 
@@ -1003,6 +1008,10 @@ EOT
1003
1008
  lines<<"START_SCRIPT_BASE64=\"#{script}\""
1004
1009
  end
1005
1010
 
1011
+ if options[:report_ready]
1012
+ lines << "REPORT_READY = \"YES\""
1013
+ end
1014
+
1006
1015
  if !lines.empty?
1007
1016
  "CONTEXT=[\n" << lines.map{|l| " " << l }.join(",\n") << "\n]\n"
1008
1017
  else
@@ -157,12 +157,12 @@ class AcctHelper < OpenNebulaHelper::OneHelper
157
157
 
158
158
  column :NETRX, "Data received from the network", :size=>6 do |d|
159
159
  # NET is measured in bytes, unit_to_str expects KBytes
160
- OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING/NETRX"].to_i / 1024.0, {})
160
+ OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING"]["NETRX"].to_i / 1024.0, {})
161
161
  end
162
162
 
163
163
  column :NETTX, "Data sent to the network", :size=>6 do |d|
164
164
  # NET is measured in bytes, unit_to_str expects KBytes
165
- OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING/NETTX"].to_i / 1024.0, {})
165
+ OpenNebulaHelper.unit_to_str(d["VM"]["MONITORING"]["NETTX"].to_i / 1024.0, {})
166
166
  end
167
167
 
168
168
  column :DISK, "Total disk size used", :size=>6 do |d|
@@ -102,16 +102,19 @@ class OneImageHelper < OpenNebulaHelper::OneHelper
102
102
  {
103
103
  :name => "disk_type",
104
104
  :large => "--disk_type disk_type",
105
- :description => "Type of the image (BLOCK, CDROM, RBD or FILE)",
106
- :format => String,
107
- :proc => lambda do |o, options|
108
- type=o.strip.upcase
109
- if %w{BLOCK CDROM FILE RBD}.include? type
110
- [0, type]
111
- else
112
- [-1, "Disk type must be BLOCK, CDROM, RBD or FILE"]
113
- end
114
- end
105
+ :description => "Type of the image \n"<<
106
+ " "*31<<"for KVM: BLOCK, CDROM, RBD or FILE \n"<<
107
+ " "*31<<"for vCenter: THIN, TICHK, ZEOREDTHICK " <<
108
+ "(for others, check the documentation) ",
109
+ :format => String
110
+ },
111
+ {
112
+ :name => "adapter_type",
113
+ :large => "--adapter_type adapter_type",
114
+ :description => "Controller that will handle this image in " <<
115
+ "vCenter (lsiLogic, ide, busLogic). For other "<<
116
+ "values check the documentation",
117
+ :format => String
115
118
  },
116
119
  {
117
120
  :name => "source",
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: 4.90.0.beta1
4
+ version: 4.90.10.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opennebula
@@ -16,19 +16,18 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.90.0.beta1
19
+ version: 4.90.10.rc1
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: 4.90.0.beta1
26
+ version: 4.90.10.rc1
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables:
30
30
  - oneuser.backup
31
- - oneacct
32
31
  - oneacl
33
32
  - onecluster
34
33
  - onedatastore
@@ -42,13 +41,14 @@ executables:
42
41
  - oneshowback
43
42
  - onetemplate
44
43
  - oneuser
45
- - onevcenter
46
44
  - onevdc
47
45
  - onevnet
48
46
  - onevrouter
49
47
  - onezone
50
48
  - oneimage
51
49
  - onevm
50
+ - oneacct
51
+ - onevcenter
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files: