foreman_leapp 0.1.9 → 0.1.11
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 +4 -4
- data/README.md +1 -1
- data/app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb +5 -8
- data/app/helpers/foreman_leapp/hosts_helper.rb +11 -0
- data/app/views/foreman_leapp/job_templates/leapp_preupgrade.erb +1 -1
- data/app/views/foreman_leapp/job_templates/leapp_upgrade.erb +1 -1
- data/lib/foreman_leapp/engine.rb +7 -4
- data/lib/foreman_leapp/version.rb +1 -1
- data/locale/action_names.rb +2 -2
- data/locale/en/foreman_leapp.edit.po +172 -0
- data/locale/en/foreman_leapp.po +19 -7
- data/locale/en/foreman_leapp.po.time_stamp +0 -0
- data/locale/foreman_leapp.pot +42 -27
- data/locale/gemspec.rb +1 -1
- data/webpack/__mocks__/foremanReact/components/Pagination.js +2 -0
- data/webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js +2 -2
- data/webpack/components/PreupgradeReports/__tests__/__snapshots__/PreupgradeReportsHelpers.test.js.snap +1 -25
- data/webpack/components/PreupgradeReportsList/__tests__/__snapshots__/PreupgradeReportsList.test.js.snap +2 -30
- data/webpack/components/PreupgradeReportsList/index.js +2 -4
- metadata +11 -10
- data/app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb +0 -17
- data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f66eb2aaee146f245f45c3806525803d9bf0834035ea62fcde33e666d9df94d7
|
|
4
|
+
data.tar.gz: 20d3e32fc5ab353b5bb0e804bb54a2f937a757cb220a37cb3d1067915f4f7129
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 529c587c622d1d3a131f16d62670c6bb341ae9a762dea74b092d62b8e56b3a7b3b2874be83bc96b83e521f9474123a745d868390162df2836e1a83d73ed10b62
|
|
7
|
+
data.tar.gz: 6efbb688ff2ce91a8181f2698fb4beb9e64b5bb01d95e3ddbb6e91bedac4fbd326e651d3bbe74650ed3c20226c59a56bc19c673762f29f148aa1223b52bdc1f5
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ForemanLeapp
|
|
2
2
|
|
|
3
|
-
This plugin allows to run inplace upgrades for RHEL
|
|
3
|
+
This plugin allows to run inplace upgrades for RHEL hosts in Foreman using Leapp tool.
|
|
4
4
|
For more information about Leapp tool check [github](https://github.com/oamg/leapp) or [developer docs](https://leapp.readthedocs.io/en/latest/).
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
module ForemanLeapp
|
|
4
4
|
module RemoteExecutionHelperExtension
|
|
5
|
-
def
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class: 'btn btn-default',
|
|
11
|
-
title: _('Run Leapp Preupgrade check again'),
|
|
12
|
-
method: :get))
|
|
5
|
+
def rex_host_features(*args)
|
|
6
|
+
super + [link_to(_('Preupgrade check with Leapp'),
|
|
7
|
+
new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_preupgrade')),
|
|
8
|
+
link_to(_('Upgrade with Leapp'),
|
|
9
|
+
new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_upgrade'))]
|
|
13
10
|
end
|
|
14
11
|
end
|
|
15
12
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ForemanLeapp
|
|
4
|
+
module HostsHelper
|
|
5
|
+
def leapp_hosts_multiple_actions
|
|
6
|
+
[{ action: [_('Preupgrade check with Leapp'), new_job_invocation_path(feature: 'leapp_preupgrade'), false],
|
|
7
|
+
priority: 1000 },
|
|
8
|
+
{ action: [_('Upgrade with Leapp'), new_job_invocation_path(feature: 'leapp_upgrade'), false], priority: 1000 }]
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
kind: job_template
|
|
3
3
|
name: Run preupgrade via Leapp
|
|
4
4
|
job_category: Leapp - Preupgrade
|
|
5
|
-
description_format: 'Upgradeability check for RHEL
|
|
5
|
+
description_format: 'Upgradeability check for RHEL host'
|
|
6
6
|
provider_type: SSH
|
|
7
7
|
feature: leapp_preupgrade
|
|
8
8
|
model: JobTemplate
|
data/lib/foreman_leapp/engine.rb
CHANGED
|
@@ -21,7 +21,7 @@ module ForemanLeapp
|
|
|
21
21
|
|
|
22
22
|
initializer 'foreman_leapp.register_plugin', before: :finisher_hook do |_app|
|
|
23
23
|
Foreman::Plugin.register :foreman_leapp do
|
|
24
|
-
requires_foreman '>= 2
|
|
24
|
+
requires_foreman '>= 3.2'
|
|
25
25
|
|
|
26
26
|
apipie_documented_controllers ["#{ForemanLeapp::Engine.root}/app/controllers/api/v2/*.rb"]
|
|
27
27
|
extend_template_helpers ForemanLeapp::TemplateHelper
|
|
@@ -41,13 +41,16 @@ module ForemanLeapp
|
|
|
41
41
|
permission :view_job_invocations, { :preupgrade_reports => %i[index show job_invocation],
|
|
42
42
|
'api/v2/preupgrade_reports' => %i[index show job_invocation] }
|
|
43
43
|
end
|
|
44
|
+
|
|
45
|
+
describe_host do
|
|
46
|
+
multiple_actions_provider :leapp_hosts_multiple_actions
|
|
47
|
+
end
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
|
|
47
51
|
# Include concerns in this config.to_prepare block
|
|
48
52
|
config.to_prepare do
|
|
49
53
|
begin
|
|
50
|
-
::HostsHelper.prepend ForemanLeapp::HostsHelperExtensions
|
|
51
54
|
::JobInvocation.include ForemanLeapp::JobInvocationExtensions
|
|
52
55
|
rescue StandardError => e
|
|
53
56
|
Rails.logger.warn "ForemanLeapp: skipping engine hook (#{e})"
|
|
@@ -88,14 +91,14 @@ module ForemanLeapp
|
|
|
88
91
|
RemoteExecutionFeature.register(
|
|
89
92
|
:leapp_preupgrade,
|
|
90
93
|
N_('Preupgrade check with Leapp'),
|
|
91
|
-
description: N_('Upgradeability check for RHEL
|
|
94
|
+
description: N_('Upgradeability check for RHEL host'),
|
|
92
95
|
host_action_button: false
|
|
93
96
|
)
|
|
94
97
|
|
|
95
98
|
RemoteExecutionFeature.register(
|
|
96
99
|
:leapp_upgrade,
|
|
97
100
|
N_('Upgrade with Leapp'),
|
|
98
|
-
description: N_('Run Leapp upgrade job for RHEL
|
|
101
|
+
description: N_('Run Leapp upgrade job for RHEL host'),
|
|
99
102
|
host_action_button: false
|
|
100
103
|
)
|
|
101
104
|
|
data/locale/action_names.rb
CHANGED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# foreman_leapp
|
|
2
|
+
#
|
|
3
|
+
# This file is distributed under the same license as foreman_leapp.
|
|
4
|
+
#
|
|
5
|
+
msgid ""
|
|
6
|
+
msgstr ""
|
|
7
|
+
"Project-Id-Version: version 0.0.1\n"
|
|
8
|
+
"Report-Msgid-Bugs-To: \n"
|
|
9
|
+
"PO-Revision-Date: 2014-08-20 08:54+0100\n"
|
|
10
|
+
"Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
|
|
11
|
+
"Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
|
|
12
|
+
"Language: \n"
|
|
13
|
+
"MIME-Version: 1.0\n"
|
|
14
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
15
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
16
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
17
|
+
|
|
18
|
+
#: ../app/controllers/api/v2/concerns/api_authorizer.rb:16
|
|
19
|
+
msgid "Missing one of the required permissions: view_hosts"
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
#: ../app/controllers/api/v2/preupgrade_reports_controller.rb:10
|
|
23
|
+
msgid "List Preupgrade reports"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#: ../app/controllers/api/v2/preupgrade_reports_controller.rb:16
|
|
27
|
+
msgid "Show Preupgrade report"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
#: ../app/controllers/api/v2/preupgrade_reports_controller.rb:22
|
|
31
|
+
msgid "List Preupgrade reports for Job invocation"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:6 ../app/helpers/foreman_leapp/hosts_helper.rb:6 ../lib/foreman_leapp/engine.rb:93
|
|
35
|
+
msgid "Preupgrade check with Leapp"
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
#: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:8 ../app/helpers/foreman_leapp/hosts_helper.rb:8 ../lib/foreman_leapp/engine.rb:100
|
|
39
|
+
msgid "Upgrade with Leapp"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
42
|
+
#: ../lib/foreman_leapp/engine.rb:32
|
|
43
|
+
msgid "Leapp preupgrade report"
|
|
44
|
+
msgstr ""
|
|
45
|
+
|
|
46
|
+
#: ../lib/foreman_leapp/engine.rb:94
|
|
47
|
+
msgid "Upgradeability check for RHEL host"
|
|
48
|
+
msgstr ""
|
|
49
|
+
|
|
50
|
+
#: ../lib/foreman_leapp/engine.rb:101
|
|
51
|
+
msgid "Run Leapp upgrade job for RHEL host"
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
54
|
+
#: ../lib/foreman_leapp/engine.rb:107
|
|
55
|
+
msgid "Remediation plan"
|
|
56
|
+
msgstr ""
|
|
57
|
+
|
|
58
|
+
#: ../lib/foreman_leapp/engine.rb:108
|
|
59
|
+
msgid "Run Remediation plan with Leapp"
|
|
60
|
+
msgstr ""
|
|
61
|
+
|
|
62
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:19 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:38
|
|
63
|
+
msgid "Title"
|
|
64
|
+
msgstr ""
|
|
65
|
+
|
|
66
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:20 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:13
|
|
67
|
+
msgid "Risk Factor"
|
|
68
|
+
msgstr ""
|
|
69
|
+
|
|
70
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:21 ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:12
|
|
71
|
+
msgid "Host"
|
|
72
|
+
msgstr ""
|
|
73
|
+
|
|
74
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:22
|
|
75
|
+
msgid "Fix Type"
|
|
76
|
+
msgstr ""
|
|
77
|
+
|
|
78
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:23 ../webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js:21
|
|
79
|
+
msgid "Inhibitor"
|
|
80
|
+
msgstr ""
|
|
81
|
+
|
|
82
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:27 ../webpack/components/PreupgradeReports/components/EntriesFilter.js:35 ../webpack/components/PreupgradeReports/components/EntriesFilter.js:41
|
|
83
|
+
msgid "All"
|
|
84
|
+
msgstr ""
|
|
85
|
+
|
|
86
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:28
|
|
87
|
+
msgid "Low"
|
|
88
|
+
msgstr ""
|
|
89
|
+
|
|
90
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:29
|
|
91
|
+
msgid "Medium"
|
|
92
|
+
msgstr ""
|
|
93
|
+
|
|
94
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:30
|
|
95
|
+
msgid "High"
|
|
96
|
+
msgstr ""
|
|
97
|
+
|
|
98
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:31
|
|
99
|
+
msgid "Info"
|
|
100
|
+
msgstr ""
|
|
101
|
+
|
|
102
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:36
|
|
103
|
+
msgid "Hint"
|
|
104
|
+
msgstr ""
|
|
105
|
+
|
|
106
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:37
|
|
107
|
+
msgid "Command"
|
|
108
|
+
msgstr ""
|
|
109
|
+
|
|
110
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:42
|
|
111
|
+
msgid "Yes"
|
|
112
|
+
msgstr ""
|
|
113
|
+
|
|
114
|
+
#: ../webpack/components/PreupgradeReports/components/EntriesFilter.js:43
|
|
115
|
+
msgid "No"
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
#: ../webpack/components/PreupgradeReports/components/FixSelectedButton.js:12
|
|
119
|
+
msgid "Fix Selected"
|
|
120
|
+
msgstr ""
|
|
121
|
+
|
|
122
|
+
#: ../webpack/components/PreupgradeReports/components/NoReports.js:12
|
|
123
|
+
msgid "The preupgrade report could not be generated, check the job details for the reason"
|
|
124
|
+
msgstr ""
|
|
125
|
+
|
|
126
|
+
#: ../webpack/components/PreupgradeReports/components/NoReports.js:17
|
|
127
|
+
msgid "The preupgrade report will be available after the job finishes"
|
|
128
|
+
msgstr ""
|
|
129
|
+
|
|
130
|
+
#: ../webpack/components/PreupgradeReports/components/NoReports.js:25
|
|
131
|
+
msgid "No Preupgrade Report Available"
|
|
132
|
+
msgstr ""
|
|
133
|
+
|
|
134
|
+
#: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:8
|
|
135
|
+
msgid "Run Upgrade"
|
|
136
|
+
msgstr ""
|
|
137
|
+
|
|
138
|
+
#: ../webpack/components/PreupgradeReportsList/components/InhibitorInfoItem.js:17
|
|
139
|
+
msgid "This issue inhibits the upgrade."
|
|
140
|
+
msgstr ""
|
|
141
|
+
|
|
142
|
+
#: ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:14
|
|
143
|
+
msgid "Has Remediation?"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: ../webpack/components/PreupgradeReportsList/components/PreupgradeReportsListHeader.js:15
|
|
147
|
+
msgid "Inhibitor?"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
#: action_names.rb:2
|
|
151
|
+
msgid "Remote action:"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
#: action_names.rb:3
|
|
155
|
+
msgid "Import Puppet classes"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: action_names.rb:4
|
|
159
|
+
msgid "Import facts"
|
|
160
|
+
msgstr ""
|
|
161
|
+
|
|
162
|
+
#: action_names.rb:5
|
|
163
|
+
msgid "Action with sub plans"
|
|
164
|
+
msgstr ""
|
|
165
|
+
|
|
166
|
+
#: action_names.rb:6
|
|
167
|
+
msgid "Preupgrade job"
|
|
168
|
+
msgstr ""
|
|
169
|
+
|
|
170
|
+
#: gemspec.rb:4
|
|
171
|
+
msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
|
|
172
|
+
msgstr ""
|
data/locale/en/foreman_leapp.po
CHANGED
|
@@ -15,7 +15,10 @@ msgstr ""
|
|
|
15
15
|
"Content-Transfer-Encoding: 8bit\n"
|
|
16
16
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
17
17
|
|
|
18
|
-
msgid "A
|
|
18
|
+
msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
msgid "Action with sub plans"
|
|
19
22
|
msgstr ""
|
|
20
23
|
|
|
21
24
|
msgid "All"
|
|
@@ -42,6 +45,12 @@ msgstr ""
|
|
|
42
45
|
msgid "Host"
|
|
43
46
|
msgstr ""
|
|
44
47
|
|
|
48
|
+
msgid "Import Puppet classes"
|
|
49
|
+
msgstr ""
|
|
50
|
+
|
|
51
|
+
msgid "Import facts"
|
|
52
|
+
msgstr ""
|
|
53
|
+
|
|
45
54
|
msgid "Info"
|
|
46
55
|
msgstr ""
|
|
47
56
|
|
|
@@ -78,19 +87,19 @@ msgstr ""
|
|
|
78
87
|
msgid "Preupgrade check with Leapp"
|
|
79
88
|
msgstr ""
|
|
80
89
|
|
|
81
|
-
msgid "
|
|
90
|
+
msgid "Preupgrade job"
|
|
82
91
|
msgstr ""
|
|
83
92
|
|
|
84
|
-
msgid "
|
|
93
|
+
msgid "Remediation plan"
|
|
85
94
|
msgstr ""
|
|
86
95
|
|
|
87
|
-
msgid "
|
|
96
|
+
msgid "Remote action:"
|
|
88
97
|
msgstr ""
|
|
89
98
|
|
|
90
|
-
msgid "
|
|
99
|
+
msgid "Risk Factor"
|
|
91
100
|
msgstr ""
|
|
92
101
|
|
|
93
|
-
msgid "Run Leapp upgrade job for RHEL
|
|
102
|
+
msgid "Run Leapp upgrade job for RHEL host"
|
|
94
103
|
msgstr ""
|
|
95
104
|
|
|
96
105
|
msgid "Run Remediation plan with Leapp"
|
|
@@ -102,6 +111,9 @@ msgstr ""
|
|
|
102
111
|
msgid "Show Preupgrade report"
|
|
103
112
|
msgstr ""
|
|
104
113
|
|
|
114
|
+
msgid "The preupgrade report could not be generated, check the job details for the reason"
|
|
115
|
+
msgstr ""
|
|
116
|
+
|
|
105
117
|
msgid "The preupgrade report will be available after the job finishes"
|
|
106
118
|
msgstr ""
|
|
107
119
|
|
|
@@ -114,7 +126,7 @@ msgstr ""
|
|
|
114
126
|
msgid "Upgrade with Leapp"
|
|
115
127
|
msgstr ""
|
|
116
128
|
|
|
117
|
-
msgid "Upgradeability check for RHEL
|
|
129
|
+
msgid "Upgradeability check for RHEL host"
|
|
118
130
|
msgstr ""
|
|
119
131
|
|
|
120
132
|
msgid "Yes"
|
|
File without changes
|
data/locale/foreman_leapp.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: foreman_leapp 1.0.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date:
|
|
12
|
-
"PO-Revision-Date:
|
|
11
|
+
"POT-Creation-Date: 2022-10-10 10:24+0200\n"
|
|
12
|
+
"PO-Revision-Date: 2022-10-10 10:24+0200\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
|
@@ -34,44 +34,35 @@ msgstr ""
|
|
|
34
34
|
msgid "List Preupgrade reports for Job invocation"
|
|
35
35
|
msgstr ""
|
|
36
36
|
|
|
37
|
-
#: ../app/helpers/concerns/foreman_leapp/
|
|
38
|
-
#: ../app/helpers/
|
|
39
|
-
#: ../lib/foreman_leapp/engine.rb:
|
|
37
|
+
#: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:6
|
|
38
|
+
#: ../app/helpers/foreman_leapp/hosts_helper.rb:6
|
|
39
|
+
#: ../lib/foreman_leapp/engine.rb:93
|
|
40
40
|
msgid "Preupgrade check with Leapp"
|
|
41
41
|
msgstr ""
|
|
42
42
|
|
|
43
|
-
#: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:7
|
|
44
|
-
#: ../app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb:13
|
|
45
|
-
#: ../lib/foreman_leapp/engine.rb:60
|
|
46
|
-
msgid "Upgrade with Leapp"
|
|
47
|
-
msgstr ""
|
|
48
|
-
|
|
49
43
|
#: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:8
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
#:
|
|
54
|
-
#: ../app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb:11
|
|
55
|
-
msgid "Run Leapp Preupgrade check again"
|
|
44
|
+
#: ../app/helpers/foreman_leapp/hosts_helper.rb:8
|
|
45
|
+
#: ../lib/foreman_leapp/engine.rb:100
|
|
46
|
+
msgid "Upgrade with Leapp"
|
|
56
47
|
msgstr ""
|
|
57
48
|
|
|
58
49
|
#: ../lib/foreman_leapp/engine.rb:32
|
|
59
50
|
msgid "Leapp preupgrade report"
|
|
60
51
|
msgstr ""
|
|
61
52
|
|
|
62
|
-
#: ../lib/foreman_leapp/engine.rb:
|
|
63
|
-
msgid "Upgradeability check for RHEL
|
|
53
|
+
#: ../lib/foreman_leapp/engine.rb:94
|
|
54
|
+
msgid "Upgradeability check for RHEL host"
|
|
64
55
|
msgstr ""
|
|
65
56
|
|
|
66
|
-
#: ../lib/foreman_leapp/engine.rb:
|
|
67
|
-
msgid "Run Leapp upgrade job for RHEL
|
|
57
|
+
#: ../lib/foreman_leapp/engine.rb:101
|
|
58
|
+
msgid "Run Leapp upgrade job for RHEL host"
|
|
68
59
|
msgstr ""
|
|
69
60
|
|
|
70
|
-
#: ../lib/foreman_leapp/engine.rb:
|
|
61
|
+
#: ../lib/foreman_leapp/engine.rb:107
|
|
71
62
|
msgid "Remediation plan"
|
|
72
63
|
msgstr ""
|
|
73
64
|
|
|
74
|
-
#: ../lib/foreman_leapp/engine.rb:
|
|
65
|
+
#: ../lib/foreman_leapp/engine.rb:108
|
|
75
66
|
msgid "Run Remediation plan with Leapp"
|
|
76
67
|
msgstr ""
|
|
77
68
|
|
|
@@ -141,6 +132,12 @@ msgstr ""
|
|
|
141
132
|
msgid "Fix Selected"
|
|
142
133
|
msgstr ""
|
|
143
134
|
|
|
135
|
+
#: ../webpack/components/PreupgradeReports/components/NoReports.js:12
|
|
136
|
+
msgid ""
|
|
137
|
+
"The preupgrade report could not be generated, check the job details for the re"
|
|
138
|
+
"ason"
|
|
139
|
+
msgstr ""
|
|
140
|
+
|
|
144
141
|
#: ../webpack/components/PreupgradeReports/components/NoReports.js:17
|
|
145
142
|
msgid "The preupgrade report will be available after the job finishes"
|
|
146
143
|
msgstr ""
|
|
@@ -149,7 +146,7 @@ msgstr ""
|
|
|
149
146
|
msgid "No Preupgrade Report Available"
|
|
150
147
|
msgstr ""
|
|
151
148
|
|
|
152
|
-
#: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:
|
|
149
|
+
#: ../webpack/components/PreupgradeReports/components/UpgradeAllButton.js:8
|
|
153
150
|
msgid "Run Upgrade"
|
|
154
151
|
msgstr ""
|
|
155
152
|
|
|
@@ -168,8 +165,26 @@ msgstr ""
|
|
|
168
165
|
msgid "Inhibitor?"
|
|
169
166
|
msgstr ""
|
|
170
167
|
|
|
168
|
+
#: action_names.rb:2
|
|
169
|
+
msgid "Remote action:"
|
|
170
|
+
msgstr ""
|
|
171
|
+
|
|
172
|
+
#: action_names.rb:3
|
|
173
|
+
msgid "Import Puppet classes"
|
|
174
|
+
msgstr ""
|
|
175
|
+
|
|
176
|
+
#: action_names.rb:4
|
|
177
|
+
msgid "Import facts"
|
|
178
|
+
msgstr ""
|
|
179
|
+
|
|
180
|
+
#: action_names.rb:5
|
|
181
|
+
msgid "Action with sub plans"
|
|
182
|
+
msgstr ""
|
|
183
|
+
|
|
184
|
+
#: action_names.rb:6
|
|
185
|
+
msgid "Preupgrade job"
|
|
186
|
+
msgstr ""
|
|
187
|
+
|
|
171
188
|
#: gemspec.rb:4
|
|
172
|
-
msgid ""
|
|
173
|
-
"A foreman plugin to support inplace RHEL 7 -> RHEL 8 upgrades with Leapp utili"
|
|
174
|
-
"ty."
|
|
189
|
+
msgid "A Foreman plugin to support inplace RHEL upgrades with Leapp utility."
|
|
175
190
|
msgstr ""
|
data/locale/gemspec.rb
CHANGED
|
@@ -57,9 +57,9 @@ export const idsForInvocationFromReports = reports =>
|
|
|
57
57
|
idsForInvocationFromEntries(flattenEntries(reports));
|
|
58
58
|
|
|
59
59
|
export const entriesPage = (entries, pagination) => {
|
|
60
|
-
const offset = (pagination.page - 1) * pagination.
|
|
60
|
+
const offset = (pagination.page - 1) * pagination.per_page;
|
|
61
61
|
|
|
62
|
-
return entries.slice(offset, offset + pagination.
|
|
62
|
+
return entries.slice(offset, offset + pagination.per_page);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const filterEntries = (attribute, value, entries) => {
|
|
@@ -131,31 +131,7 @@ Array [
|
|
|
131
131
|
]
|
|
132
132
|
`;
|
|
133
133
|
|
|
134
|
-
exports[`PreupgradeReportsHelpers should return entries page 1`] = `
|
|
135
|
-
Array [
|
|
136
|
-
Object {
|
|
137
|
-
"flags": Array [],
|
|
138
|
-
"hostname": "foo.example.com",
|
|
139
|
-
"id": 45,
|
|
140
|
-
"severity": "low",
|
|
141
|
-
"title": "Not enough credits",
|
|
142
|
-
},
|
|
143
|
-
Object {
|
|
144
|
-
"flags": Array [],
|
|
145
|
-
"hostname": "foo.example.com",
|
|
146
|
-
"id": 46,
|
|
147
|
-
"severity": "medium",
|
|
148
|
-
"title": "SELinux is turned off",
|
|
149
|
-
},
|
|
150
|
-
Object {
|
|
151
|
-
"flags": Array [],
|
|
152
|
-
"hostname": "foo.example.com",
|
|
153
|
-
"id": 47,
|
|
154
|
-
"severity": "medium",
|
|
155
|
-
"title": "Root password is too short",
|
|
156
|
-
},
|
|
157
|
-
]
|
|
158
|
-
`;
|
|
134
|
+
exports[`PreupgradeReportsHelpers should return entries page 1`] = `Array []`;
|
|
159
135
|
|
|
160
136
|
exports[`PreupgradeReportsHelpers should return fixable entries 1`] = `
|
|
161
137
|
Array [
|
|
@@ -59,23 +59,9 @@ exports[`PreupgradeReportsList should render 1`] = `
|
|
|
59
59
|
key="3"
|
|
60
60
|
toggleSelected={[Function]}
|
|
61
61
|
/>
|
|
62
|
-
<
|
|
63
|
-
dropdownButtonId="preupgrade-report-entries-pagination-dropdown"
|
|
62
|
+
<Pagination
|
|
64
63
|
itemCount={4}
|
|
65
64
|
onChange={[Function]}
|
|
66
|
-
pagination={
|
|
67
|
-
Object {
|
|
68
|
-
"page": 1,
|
|
69
|
-
"perPage": 20,
|
|
70
|
-
"perPageOptions": Array [
|
|
71
|
-
5,
|
|
72
|
-
10,
|
|
73
|
-
20,
|
|
74
|
-
30,
|
|
75
|
-
50,
|
|
76
|
-
],
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
65
|
viewType="list"
|
|
80
66
|
/>
|
|
81
67
|
</ListView>
|
|
@@ -140,23 +126,9 @@ exports[`PreupgradeReportsList should render when working 1`] = `
|
|
|
140
126
|
key="3"
|
|
141
127
|
toggleSelected={[Function]}
|
|
142
128
|
/>
|
|
143
|
-
<
|
|
144
|
-
dropdownButtonId="preupgrade-report-entries-pagination-dropdown"
|
|
129
|
+
<Pagination
|
|
145
130
|
itemCount={4}
|
|
146
131
|
onChange={[Function]}
|
|
147
|
-
pagination={
|
|
148
|
-
Object {
|
|
149
|
-
"page": 1,
|
|
150
|
-
"perPage": 20,
|
|
151
|
-
"perPageOptions": Array [
|
|
152
|
-
5,
|
|
153
|
-
10,
|
|
154
|
-
20,
|
|
155
|
-
30,
|
|
156
|
-
50,
|
|
157
|
-
],
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
132
|
viewType="list"
|
|
161
133
|
/>
|
|
162
134
|
</ListView>
|
|
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { ListView } from 'patternfly-react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
|
-
import Pagination from 'foremanReact/components/Pagination
|
|
5
|
+
import Pagination from 'foremanReact/components/Pagination';
|
|
6
6
|
import { useForemanSettings } from 'foremanReact/Root/Context/ForemanContext';
|
|
7
7
|
|
|
8
8
|
import PreupgradeReportEntry from './components/PreupgradeReportEntry';
|
|
@@ -22,7 +22,7 @@ const PreupgradeReportsList = ({
|
|
|
22
22
|
const { perPage, perPageOptions } = useForemanSettings();
|
|
23
23
|
const [pagination, setPagination] = useState({
|
|
24
24
|
page: 1,
|
|
25
|
-
perPage,
|
|
25
|
+
per_page: perPage,
|
|
26
26
|
perPageOptions,
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -44,9 +44,7 @@ const PreupgradeReportsList = ({
|
|
|
44
44
|
<Pagination
|
|
45
45
|
viewType="list"
|
|
46
46
|
itemCount={allEntries.length}
|
|
47
|
-
pagination={pagination}
|
|
48
47
|
onChange={newPage => setPagination({ ...pagination, ...newPage })}
|
|
49
|
-
dropdownButtonId="preupgrade-report-entries-pagination-dropdown"
|
|
50
48
|
/>
|
|
51
49
|
</ListView>
|
|
52
50
|
);
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_leapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Leapp team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: foreman_remote_execution
|
|
@@ -52,8 +52,7 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '6.2'
|
|
55
|
-
description: A Foreman plugin to support inplace RHEL
|
|
56
|
-
utility.
|
|
55
|
+
description: A Foreman plugin to support inplace RHEL upgrades with Leapp utility.
|
|
57
56
|
email:
|
|
58
57
|
- foreman-dev@googlegroups.com
|
|
59
58
|
executables: []
|
|
@@ -66,8 +65,8 @@ files:
|
|
|
66
65
|
- app/controllers/api/v2/concerns/api_authorizer.rb
|
|
67
66
|
- app/controllers/api/v2/preupgrade_reports_controller.rb
|
|
68
67
|
- app/controllers/preupgrade_reports_controller.rb
|
|
69
|
-
- app/helpers/concerns/foreman_leapp/hosts_helper_extensions.rb
|
|
70
68
|
- app/helpers/concerns/foreman_leapp/remote_execution_helper_extension.rb
|
|
69
|
+
- app/helpers/foreman_leapp/hosts_helper.rb
|
|
71
70
|
- app/helpers/foreman_leapp/template_helper.rb
|
|
72
71
|
- app/lib/actions/preupgrade_job.rb
|
|
73
72
|
- app/lib/helpers/job_helper.rb
|
|
@@ -99,7 +98,9 @@ files:
|
|
|
99
98
|
- lib/tasks/foreman_leapp_tasks.rake
|
|
100
99
|
- locale/Makefile
|
|
101
100
|
- locale/action_names.rb
|
|
101
|
+
- locale/en/foreman_leapp.edit.po
|
|
102
102
|
- locale/en/foreman_leapp.po
|
|
103
|
+
- locale/en/foreman_leapp.po.time_stamp
|
|
103
104
|
- locale/foreman_leapp.pot
|
|
104
105
|
- locale/gemspec.rb
|
|
105
106
|
- package.json
|
|
@@ -114,7 +115,7 @@ files:
|
|
|
114
115
|
- test/unit/helpers/job_helper_test.rb
|
|
115
116
|
- webpack/__mocks__/foremanReact/Root/Context/ForemanContext.js
|
|
116
117
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
|
117
|
-
- webpack/__mocks__/foremanReact/components/Pagination
|
|
118
|
+
- webpack/__mocks__/foremanReact/components/Pagination.js
|
|
118
119
|
- webpack/__mocks__/foremanReact/components/common/EmptyState.js
|
|
119
120
|
- webpack/__mocks__/foremanReact/components/common/MessageBox.js
|
|
120
121
|
- webpack/components/PreupgradeReports/PreupgradeReports.js
|
|
@@ -203,12 +204,12 @@ signing_key:
|
|
|
203
204
|
specification_version: 4
|
|
204
205
|
summary: A Foreman plugin for Leapp utility.
|
|
205
206
|
test_files:
|
|
207
|
+
- test/factories/foreman_leapp_factories.rb
|
|
206
208
|
- test/functional/api/v2/preupgrade_reports_controller_test.rb
|
|
207
209
|
- test/functional/preupgrade_reports_controller_test.rb
|
|
208
|
-
- test/
|
|
210
|
+
- test/helpers/template_helper_test.rb
|
|
209
211
|
- test/models/preupgrade_report_entry_test.rb
|
|
210
|
-
- test/
|
|
212
|
+
- test/models/preupgrade_report_test.rb
|
|
211
213
|
- test/unit/actions/preupgrade_job_test.rb
|
|
214
|
+
- test/unit/helpers/job_helper_test.rb
|
|
212
215
|
- test/test_plugin_helper.rb
|
|
213
|
-
- test/helpers/template_helper_test.rb
|
|
214
|
-
- test/factories/foreman_leapp_factories.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module ForemanLeapp
|
|
4
|
-
module HostsHelperExtensions
|
|
5
|
-
def multiple_actions
|
|
6
|
-
super + [[_('Preupgrade check with Leapp'), new_job_invocation_path(feature: 'leapp_preupgrade'), false],
|
|
7
|
-
[_('Upgrade with Leapp'), new_job_invocation_path(feature: 'leapp_upgrade'), false]]
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def rex_host_features(*args)
|
|
11
|
-
super + [link_to(_('Preupgrade check with Leapp'),
|
|
12
|
-
new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_preupgrade')),
|
|
13
|
-
link_to(_('Upgrade with Leapp'),
|
|
14
|
-
new_job_invocation_path(host_ids: [args.first.id], feature: 'leapp_upgrade'))]
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|