foreman_maintain 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09c832269d99bedd38510d834f77ef84f7921e3c'
|
4
|
+
data.tar.gz: 5b4c6b6dced266b4ea569113d71efe9b1efc65ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
|
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"))
|
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.
|
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-
|
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
|
332
|
+
rubygems_version: 2.6.14
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: Foreman maintenance tool belt
|