opennebula-cli 5.5.80.pre → 5.5.90.pre

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: fc41f8f8df8ba4974563f1d788b8fa0e69ce4617
4
- data.tar.gz: 31e9809c019b480988762595668062132560b0cc
3
+ metadata.gz: 8fd311db0f9451a7e5b7c8c73bb43875710a4e6b
4
+ data.tar.gz: 7ddcba5be8c6594f2fbd501f70840ef662d6a27c
5
5
  SHA512:
6
- metadata.gz: 53b2984f595372db08abf082ebd17108e6a276fcf9471ed06be843982714f0b8b30acf9550e0ff7e451e80072ee31013f9c893f80b78e9e7c5692166b9e2f665
7
- data.tar.gz: 4162550f47afd3a4995577a34f6a6d0ae4d3a5b4bb7852a842e5a29e54cb50bf45f2d720df04f95e185ff1464b00ff19ef73008e4090bf9c73a98b80a7138271
6
+ metadata.gz: 6269451844e1879df05cb5d8615195b450af36e6952e6d6e513907c2dfc2350c64f5fd17d77fefad2e7c1be2e6a229d4b09b73e297e8dbfd3f983e6ed950d590
7
+ data.tar.gz: 7118136d64beda6dffecc752abd5ffc85c9bf587ab4d7700c0c5d823f1a7905146e9797e1919dcfb8ca7392bffbab8197f83f6570cc709b585d18b2db021f543
data/bin/onehost CHANGED
@@ -244,8 +244,17 @@ cmd=CommandParser::CmdParser.new(ARGV) do
244
244
  EOT
245
245
 
246
246
  command :flush, flush_desc, [:range,:hostid_list] do
247
+ begin
248
+ if !ONE_LOCATION
249
+ action = YAML.load_file("/etc/one/cli/onehost.yaml")[:default_actions][0][:flush]
250
+ else
251
+ action = YAML.load_file("#{ONE_LOCATION}/etc/cli/onehost.yaml")[:default_actions][0][:flush]
252
+ end
253
+ rescue Exception => e
254
+ STDERR.puts e
255
+ end
247
256
  helper.perform_actions(args[0],options,"flush") do |host|
248
- host.flush
257
+ host.flush action
249
258
  end
250
259
  end
251
260
 
data/bin/oneimage CHANGED
@@ -75,7 +75,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
75
75
  list_options << OpenNebulaHelper::NUMERIC
76
76
  list_options << OpenNebulaHelper::DESCRIBE
77
77
 
78
- CREATE_OPTIONS = [OneDatastoreHelper::DATASTORE]
78
+ CREATE_OPTIONS = [OneDatastoreHelper::DATASTORE, OneImageHelper::IMAGE]
79
79
 
80
80
  ########################################################################
81
81
  # Formatters for arguments
@@ -147,6 +147,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
147
147
  exit -1
148
148
  end
149
149
 
150
+ check_capacity = options[:no_check_capacity].nil? ? false : true;
151
+
150
152
  if args[0] && OpenNebulaHelper.create_template_options_used?(options)
151
153
  STDERR.puts "You can not use both template file and template"<<
152
154
  " creation options."
@@ -173,7 +175,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
173
175
  exit 0
174
176
  end
175
177
 
176
- image.allocate(template, options[:datastore])
178
+ image.allocate(template, options[:datastore], check_capacity)
177
179
  rescue => e
178
180
  STDERR.puts e.messsage
179
181
  exit -1
data/bin/onezone CHANGED
@@ -128,6 +128,18 @@ cmd=CommandParser::CmdParser.new(ARGV) do
128
128
  end
129
129
 
130
130
  end
131
+
132
+ resetserver_desc = <<-EOT.unindent
133
+ Reset follower log index. This should be trigger when a follower DB has
134
+ been reset.
135
+ EOT
136
+
137
+ command :"server-reset", resetserver_desc, :zoneid, :serverid do
138
+ helper.perform_action(args[0], options, "server reset") do |o|
139
+ o.reset_server(args[1].to_i)
140
+ end
141
+ end
142
+
131
143
  update_desc = <<-EOT.unindent
132
144
  Update the template contents. If a path is not provided the editor will
133
145
  be launched to modify the current content.
@@ -105,7 +105,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
105
105
  OpenNebulaHelper.cluster_str(d["CLUSTER"])
106
106
  end
107
107
 
108
- column :RVM, "Number of Virtual Machines running", :size=>3 do |d|
108
+ column :TVM, "Total Virtual Machines allocated to the Host", :size=>3 do |d|
109
109
  d["HOST_SHARE"]["RUNNING_VMS"] || 0
110
110
  end
111
111
 
@@ -210,7 +210,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
210
210
  OneHostHelper.state_to_str(d["STATE"])
211
211
  end
212
212
 
213
- default :ID, :NAME, :CLUSTER, :RVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT
213
+ default :ID, :NAME, :CLUSTER, :TVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT
214
214
  end
215
215
 
216
216
  table
@@ -160,6 +160,14 @@ class OneImageHelper < OpenNebulaHelper::OneHelper
160
160
  OpenNebulaHelper::DRY
161
161
  ]
162
162
 
163
+ IMAGE = {
164
+ :name => "no_check_capacity",
165
+ :large => "--no_check_capacity",
166
+ :description =>
167
+ "Check Datastore capacity. By Default YES",
168
+ :format => String
169
+ }
170
+
163
171
  def self.rname
164
172
  "IMAGE"
165
173
  end
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.5.80.pre
4
+ version: 5.5.90.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-03 00:00:00.000000000 Z
11
+ date: 2018-06-27 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: 5.5.80.pre
19
+ version: 5.5.90.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.5.80.pre
26
+ version: 5.5.90.pre
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables: