opennebula-cli 5.11.85.pre → 5.11.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: c5979e29fd5700d0aaedede6a56329fa90069d44
4
- data.tar.gz: ff7e492d9964ae93cc9836077fdb91dd8355584f
3
+ metadata.gz: d8f9d505a4c075609888337b302394b8ad09f564
4
+ data.tar.gz: 5f91c8dd57ee2e6ebe71f6a5563d289e68ed97ee
5
5
  SHA512:
6
- metadata.gz: d0cd39603a4ef726234135d52ba5d8b9c3cde28b2f5259019d903beafa7869e1ce8711d1071e12cd87f254f66b437560028786639a3c82607c6adfbfc92c293e
7
- data.tar.gz: 4f9210addf423c2661b9632305519286da8142728a65f0ef51c039747cedb90b3a1500f7b4c7531bcfb4921de6fca71c7daf07c0fda5eb98cbcab4493ca01d9d
6
+ metadata.gz: 45a4ca86499b26e4f8d94178384b7266da3764e0c0169226b1b8f3e582ba09298b01387f852dea0b9d05e66420ea74a2ee84295101aca55366d9adfa92d402e6
7
+ data.tar.gz: 547591723faffe0aa33786c3f4ee863576348a618e30ede74df643e98c664afca036dae467f277cce9ef3f063f93391e64ae5e48123156968769ab0e255c6244
@@ -231,6 +231,9 @@ CommandParser::CmdParser.new(ARGV) do
231
231
 
232
232
  command :serversync, sync_desc, :server, :options => [DATABASE] do
233
233
  begin
234
+ # Suppress augeas require warning message
235
+ $VERBOSE = nil
236
+
234
237
  gem 'augeas', '~> 0.6'
235
238
  require 'augeas'
236
239
  rescue Gem::LoadError
@@ -580,6 +580,10 @@ module CLIHelper
580
580
  filter_data!(res_data, options) if options[:filter]
581
581
  end
582
582
 
583
+ return res_data unless options[:list]
584
+
585
+ @default_columns = options[:list].collect {|o| o.upcase.to_sym }
586
+
583
587
  res_data
584
588
  end
585
589
 
@@ -797,10 +801,6 @@ module CLIHelper
797
801
  rescue StandardError => e
798
802
  CLIHelper.fail(e.message)
799
803
  end
800
-
801
- return unless options[:list]
802
-
803
- @default_columns = options[:list].collect {|o| o.upcase.to_sym }
804
804
  end
805
805
 
806
806
  # Filter data
@@ -821,7 +821,7 @@ module CLIHelper
821
821
  m = s.match(/^(.*?)#{operators}(.*?)$/)
822
822
 
823
823
  if m
824
- index = @default_columns.index(m[1].to_sym)
824
+ index = @columns.keys.index(m[1].to_sym)
825
825
 
826
826
  if index
827
827
  {
@@ -474,15 +474,15 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
474
474
 
475
475
  break unless host
476
476
 
477
- cmd = 'cat /tmp/one-monitord-client.pid | xargs kill -HUP'
478
- system("ssh #{host['NAME']} \"#{cmd}\" 2>/dev/null")
477
+ hn = host['NAME']
479
478
 
479
+ system("onehost offline #{hn} && onehost enable #{hn}")
480
480
  if !$CHILD_STATUS.success?
481
481
  error_lock.synchronize do
482
- host_errors << host['NAME']
482
+ host_errors << hn
483
483
  end
484
484
  else
485
- puts "#{host['NAME']} monitoring forced"
485
+ puts "#{hn} monitoring forced"
486
486
  end
487
487
  end
488
488
  end
@@ -36,6 +36,8 @@ class Replicator
36
36
  :service => 'opennebula' },
37
37
  { :name => 'ec2_driver.default',
38
38
  :service => 'opennebula' },
39
+ { :name => 'monitord.conf',
40
+ :service => 'opennebula' },
39
41
  { :name => 'econe.conf',
40
42
  :service => 'opennebula-econe' },
41
43
  { :name => 'oneflow-server.conf',
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.11.85.pre
4
+ version: 5.11.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: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2020-06-01 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.11.85.pre
19
+ version: 5.11.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.11.85.pre
26
+ version: 5.11.90.pre
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.io
29
29
  executables: