manageiq-appliance_console 7.0.1 → 7.0.4

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: 374d440d8bb316983c6a7d104c7c24cafde547c0155d56ed575b13acabd8be7f
4
- data.tar.gz: 76d98cfd05523759a98e5c16004590f3db844848e2dad407751cb43739e97762
3
+ metadata.gz: a1896708eace4f8dfb3dba1f628158b9c7a27bab56aa61393417a573db36b038
4
+ data.tar.gz: 25e543b7c8636d2f8522a8121d5b2b5fca7a14b6ed26fc1a3bcfe56614c5c5ae
5
5
  SHA512:
6
- metadata.gz: 18d0b62a2cbf0ee739c30b20e1a68cfb0009465c54565b8be4adba52ee97c924e4ce50d614bb4204dbd24201da4ae9a65a4f0247c60387a935f0b65cb815b27a
7
- data.tar.gz: ccd0ea2e1861078f1999ab76d4d254ec8b9062c460c09632209ba499b27966f929607256e9f9a389632d37433a94866de43753f36be6dfbd2685b82aeba77fc9
6
+ metadata.gz: 8074bd6fc3eb533abb23a413415ec19627a94ca8c3d330eedf6832c86b81f61d348c3e4f9d070c1849bbf92d7b5cf1d141a880e52cbc6a19f486833ccf2dbc79
7
+ data.tar.gz: 448c18b7393ab34900d360b6103457c8a8b9f18aa90100f5da6b71f676df5f41ee24a969b9d683916b01d9bfd9db3faa28f713cc14eef42a0df01b1ccdb0f034
data/.travis.yml CHANGED
@@ -19,3 +19,4 @@ notifications:
19
19
  on_success: change
20
20
  on_failure: always
21
21
  on_start: never
22
+ dist: bionic
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # ManageIQ::ApplianceConsole
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-appliance_console.svg)](http://badge.fury.io/rb/manageiq-appliance_console)
4
- [![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/ManageIQ/manageiq-appliance_console)
4
+ [![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/github/ManageIQ/manageiq-appliance_console)
5
5
  [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console)
6
6
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/coverage)
7
- [![Security](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master)
8
7
 
9
8
  [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-appliance_console?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10
9
 
@@ -425,7 +425,11 @@ Static Network Configuration
425
425
  say("#{selection}\n\n")
426
426
 
427
427
  message_server = MessageServerConfiguration.new
428
- if message_server.ask_questions && message_server.configure
428
+ if !MessageServerConfiguration.available?
429
+ say("\nMessage Server configuration is unavailable!\n")
430
+ press_any_key
431
+ raise MiqSignalError
432
+ elsif message_server.ask_questions && message_server.configure
429
433
  say("\nMessage Server configured successfully.\n")
430
434
  press_any_key
431
435
  else
@@ -438,7 +442,11 @@ Static Network Configuration
438
442
  say("#{selection}\n\n")
439
443
 
440
444
  message_client = MessageClientConfiguration.new
441
- if message_client.ask_questions && message_client.configure
445
+ if !MessageClientConfiguration.available?
446
+ say("\nMessage Client configuration is unavailable!\n")
447
+ press_any_key
448
+ raise MiqSignalError
449
+ elsif message_client.ask_questions && message_client.configure
442
450
  say("\nMessage Client configured successfully.\n")
443
451
  press_any_key
444
452
  else
@@ -509,6 +509,8 @@ module ApplianceConsole
509
509
  end
510
510
 
511
511
  def message_server_config
512
+ raise "Message Server Configuration is not available" unless MessageServerConfiguration.available?
513
+
512
514
  MessageServerConfiguration.new(options).configure
513
515
  end
514
516
 
@@ -517,6 +519,8 @@ module ApplianceConsole
517
519
  end
518
520
 
519
521
  def message_client_config
522
+ raise "Message Client Configuration is not available" unless MessageClientConfiguration.available?
523
+
520
524
  MessageClientConfiguration.new(options).configure
521
525
  end
522
526
 
@@ -89,7 +89,7 @@ module ApplianceConsole
89
89
  hint = "Please stop the EVM server process on all appliances in the region"
90
90
  ManageIQ::ApplianceConsole::Utilities.bail_if_db_connections("preventing the setup of a database region.\n#{hint}")
91
91
  log_and_feedback(__method__) do
92
- ManageIQ::ApplianceConsole::Utilities.rake("evm:db:region", ["--", {:region => region}])
92
+ ManageIQ::ApplianceConsole::Utilities.rake("evm:db:region", {}, {'REGION' => region, 'VERBOSE' => 'false'})
93
93
  end
94
94
  end
95
95
 
@@ -22,6 +22,10 @@ module ManageIQ
22
22
  SAMPLE_CONFIG_DIR = "#{BASE_DIR}/config-sample".freeze
23
23
  MIQ_CONFIG_DIR = ManageIQ::ApplianceConsole::RAILS_ROOT.join("config").freeze
24
24
 
25
+ def self.available?
26
+ File.exist?("#{BASE_DIR}/bin/kafka-run-class.sh")
27
+ end
28
+
25
29
  def initialize(options = {})
26
30
  @message_server_port = options[:message_server_port] || 9093
27
31
  @message_keystore_username = options[:message_keystore_username] || "admin"
@@ -10,8 +10,8 @@ module ApplianceConsole
10
10
  rake_run(task, params).success?
11
11
  end
12
12
 
13
- def self.rake_run(task, params)
14
- result = AwesomeSpawn.run("rake #{task}", :chdir => ManageIQ::ApplianceConsole::RAILS_ROOT, :params => params)
13
+ def self.rake_run(task, params, env = {})
14
+ result = AwesomeSpawn.run("rake #{task}", :chdir => ManageIQ::ApplianceConsole::RAILS_ROOT, :params => params, :env => env)
15
15
  ManageIQ::ApplianceConsole.logger.error(result.error) if result.failure?
16
16
  result
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.0.1'.freeze
3
+ VERSION = '7.0.4'.freeze
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_runtime_dependency "highline", "~> 1.6.21"
29
29
  spec.add_runtime_dependency "i18n", "~> 0.8"
30
30
  spec.add_runtime_dependency "linux_admin", "~> 2.0"
31
- spec.add_runtime_dependency "manageiq-password", "~> 0.3"
31
+ spec.add_runtime_dependency "manageiq-password", "< 2"
32
32
  spec.add_runtime_dependency "net-scp", "~> 1.2.1"
33
33
  spec.add_runtime_dependency "optimist", "~> 3.0"
34
34
  spec.add_runtime_dependency "pg"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -144,16 +144,16 @@ dependencies:
144
144
  name: manageiq-password
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - "~>"
147
+ - - "<"
148
148
  - !ruby/object:Gem::Version
149
- version: '0.3'
149
+ version: '2'
150
150
  type: :runtime
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - "~>"
154
+ - - "<"
155
155
  - !ruby/object:Gem::Version
156
- version: '0.3'
156
+ version: '2'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: net-scp
159
159
  requirement: !ruby/object:Gem::Requirement
@@ -344,6 +344,7 @@ files:
344
344
  - ".rubocop_cc.yml"
345
345
  - ".rubocop_local.yml"
346
346
  - ".travis.yml"
347
+ - ".whitesource"
347
348
  - ".yamllint"
348
349
  - Gemfile
349
350
  - LICENSE.txt
@@ -409,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
410
  - !ruby/object:Gem::Version
410
411
  version: '0'
411
412
  requirements: []
412
- rubygems_version: 3.2.22
413
+ rubygems_version: 3.3.17
413
414
  signing_key:
414
415
  specification_version: 4
415
416
  summary: ManageIQ Appliance Console