foreman_maintain 0.3.2 → 0.3.3

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: c13cb8b4593007b12938ca47f1c7f921b5fd1d8d
4
- data.tar.gz: af861bcb2ad7672b579529f30a64a155630729b4
3
+ metadata.gz: '09c832269d99bedd38510d834f77ef84f7921e3c'
4
+ data.tar.gz: 5b4c6b6dced266b4ea569113d71efe9b1efc65ff
5
5
  SHA512:
6
- metadata.gz: 9f2552e5bc5ceea333091a3235debfb27e22c24980ea215b7a51bf63f0c01667d573a86f99eb0bebcdc6451f453bb82931b24d0d39a68248b4f03fa2eb5024f8
7
- data.tar.gz: f601e479e2ea8ffa74f61e8e7b194ec1bd962ea5b171d1fb78cf3da6e05c45fafedbf5460c173fe3df053861845c8ec3d112918bf5184ab7cc497e9e752e2793
6
+ metadata.gz: af2b744d60ae39bf1c6d0e07f1a2eeb51554228fa53ec6cdcb1d23354e50de2f9a240557c8da8585be64e8b6a398de35c9f30a1e11a0c74d144cd0c566432b46
7
+ data.tar.gz: 124bd65b249e146f671d06484a605d0ba158d3b2462df7238725bb7561fe9c9802d5d3e5dcd1ad0541ca6e49edbae4ac86603654a584b6c7e4baa961c8e34907
data/README.md CHANGED
@@ -107,6 +107,12 @@ export EXTERNAL_SAT_ORG='Sat6-CI'
107
107
  export EXTERNAL_SAT_ACTIVATION_KEY='Satellite QA RHEL7'
108
108
  ```
109
109
 
110
+ To use beta repositories during upgrade, set the following environment variable
111
+
112
+ ```
113
+ export FOREMAN_MAINTAIN_USE_BETA='1'
114
+ ```
115
+
110
116
  ## Implementation
111
117
 
112
118
  `foreman_maintain` maps the CLI commands into definitions. This allows to keep the set
@@ -26,7 +26,11 @@ module Checks
26
26
  puts "\n"
27
27
  puts stats.stdout
28
28
 
29
- assert(success, io_obj.slow_disk_error_msg)
29
+ if feature(:downstream) && feature(:downstream).at_least_version?('6.3')
30
+ assert(success, io_obj.slow_disk_error_msg + warning_message, :warn => true)
31
+ else
32
+ assert(success, io_obj.slow_disk_error_msg)
33
+ end
30
34
  end
31
35
  end
32
36
 
@@ -38,11 +42,17 @@ module Checks
38
42
 
39
43
  def dirs_to_check
40
44
  return DEFAULT_DIRS.first(1) if check_only_single_device?
45
+
41
46
  DEFAULT_DIRS
42
47
  end
43
48
 
44
49
  private
45
50
 
51
+ def warning_message
52
+ "\nWARNING: Low disk speed might have a negative impact on the system."\
53
+ "\nSee https://access.redhat.com/solutions/3397771 before proceeding"
54
+ end
55
+
46
56
  def compute_disk_speed(spinner)
47
57
  success = true
48
58
  io_obj = ForemanMaintain::Utils::Disk::NilDevice.new
@@ -81,7 +81,7 @@ class Features::Downstream < ForemanMaintain::Feature
81
81
  sat_maintenance_repo_id = "rhel-#{rh_version_major}-server-satellite-maintenance-6-rpms"
82
82
 
83
83
  # Override to use Beta repositories for sat version until GA
84
- if sat_version.to_s == '6.5'
84
+ if ENV['FOREMAN_MAINTAIN_USE_BETA'] == '1'
85
85
  sat_repo_id = "rhel-server-#{rh_version_major}-satellite-6-beta-rpms"
86
86
  sat_tools_repo_id = "rhel-#{rh_version_major}-server-satellite-tools-6-beta-rpms"
87
87
  sat_maintenance_repo_id = "rhel-#{rh_version_major}-server-satellite-maintenance-6-beta-rpms"
@@ -317,7 +317,7 @@ module ForemanMaintain
317
317
 
318
318
  recommend << <<-MESSAGE.strip_heredoc
319
319
  The steps in warning state itself might not mean there is an error,
320
- but it should be reviews to ensure the behavior is expected
320
+ but it should be reviewed to ensure the behavior is expected
321
321
  MESSAGE
322
322
  end
323
323
  puts((message + recommend).join("\n"))
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.3.2'.freeze
2
+ VERSION = '0.3.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-14 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  version: '0'
330
330
  requirements: []
331
331
  rubyforge_project:
332
- rubygems_version: 2.6.14.1
332
+ rubygems_version: 2.6.14
333
333
  signing_key:
334
334
  specification_version: 4
335
335
  summary: Foreman maintenance tool belt