10
10
'9' : [architecture .ARCH_X86_64 , architecture .ARCH_PPC64LE ]
11
11
}
12
12
13
- # SAP HANA 2.00 rev 54 is the minimal supported revision for both RHEL 7.9 and RHEL 8.2
14
-
15
13
SAP_HANA_MINIMAL_MAJOR_VERSION = 2
16
- # RHEL 8.2 target requirements
17
- SAP_HANA_RHEL82_REQUIRED_PATCH_LEVELS = ((5 , 54 , 0 ),)
18
- SAP_HANA_RHEL82_MINIMAL_VERSION_STRING = 'HANA 2.0 SPS05 rev 54 or later'
19
14
20
15
# RHEL 8.6 target requirements
21
16
SAP_HANA_RHEL86_REQUIRED_PATCH_LEVELS = ((5 , 59 , 2 ),)
22
17
SAP_HANA_RHEL86_MINIMAL_VERSION_STRING = 'HANA 2.0 SPS05 rev 59.02 or later'
23
18
24
- # RHEL 9 target requirements
25
- SAP_HANA_RHEL9_REQUIRED_PATCH_LEVELS = ((5 , 59 , 4 ), (6 , 63 , 0 ))
26
- SAP_HANA_RHEL9_MINIMAL_VERSION_STRING = 'HANA 2.0 SPS05 rev 59.04 or later, or SPS06 rev 63 or later'
19
+ # RHEL 9.0 target requirements
20
+ SAP_HANA_RHEL90_REQUIRED_PATCH_LEVELS = ((5 , 59 , 4 ), (6 , 63 , 0 ))
21
+ SAP_HANA_RHEL90_MINIMAL_VERSION_STRING = 'HANA 2.0 SPS05 rev 59.04 or later, or SPS06 rev 63 or later'
22
+
23
+
24
+ def _report_skip_check ():
25
+ summary = (
26
+ 'For the target RHEL releases >=8.8 and >=9.2 '
27
+ 'the leapp utility does not check RHEL and SAP HANA 2.0 '
28
+ 'versions compatibility. Please ensure your SAP HANA 2.0 '
29
+ 'is supported on the target RHEL release and '
30
+ 'proceed on your discretion. '
31
+ 'SAP HANA: Supported Operating Systems '
32
+ 'https://launchpad.support.sap.com/#/notes/2235581' )
33
+ remedy_hint = 'Ensure your SAP HANA 2.0 is supported on the target release.'
34
+ reporting .create_report ([
35
+ reporting .Title ('SAP HANA 2.0 version should be checked prior the upgrade' ),
36
+ reporting .Summary (summary ),
37
+ reporting .Severity (reporting .Severity .MEDIUM ),
38
+ reporting .Groups ([reporting .Groups .SANITY ]),
39
+ reporting .Remediation (hint = remedy_hint ),
40
+ reporting .ExternalLink (url = 'https://launchpad.support.sap.com/#/notes/2235581' ,
41
+ title = 'SAP HANA: Supported Operating Systems' ),
42
+ ])
27
43
28
44
29
45
def _manifest_get (manifest , key , default_value = None ):
@@ -45,7 +61,6 @@ def running_check(info):
45
61
reporting .Severity (reporting .Severity .HIGH ),
46
62
reporting .Groups ([reporting .Groups .SANITY ]),
47
63
reporting .Groups ([reporting .Groups .INHIBITOR ]),
48
- reporting .Audience ('sysadmin' )
49
64
])
50
65
51
66
@@ -72,12 +87,10 @@ def _create_detected_instances_list(details):
72
87
73
88
74
89
def _min_ver_string ():
75
- if version .get_target_major_version () == '8' :
90
+ if version .matches_target_version ( '8.6' ) :
76
91
ver_str = SAP_HANA_RHEL86_MINIMAL_VERSION_STRING
77
- if version .matches_target_version ('8.2' ):
78
- ver_str = SAP_HANA_RHEL82_MINIMAL_VERSION_STRING
79
92
else :
80
- ver_str = SAP_HANA_RHEL9_MINIMAL_VERSION_STRING
93
+ ver_str = SAP_HANA_RHEL90_MINIMAL_VERSION_STRING
81
94
return ver_str
82
95
83
96
@@ -89,10 +102,9 @@ def version1_check(info):
89
102
_add_hana_details (found , instance )
90
103
91
104
if found :
92
- min_ver_string = _min_ver_string ()
93
105
detected = _create_detected_instances_list (found )
94
106
reporting .create_report ([
95
- reporting .Title ('Found SAP HANA 1 which is not supported with the target version of RHEL' ),
107
+ reporting .Title ('Found SAP HANA 1.0 which is not supported with the target version of RHEL' ),
96
108
reporting .Summary (
97
109
('SAP HANA 1.00 is not supported with the version of RHEL you are upgrading to.\n \n '
98
110
'The following instances have been detected to be version 1.00:\n '
@@ -101,12 +113,11 @@ def version1_check(info):
101
113
reporting .Severity (reporting .Severity .HIGH ),
102
114
reporting .RemediationHint ((
103
115
'In order to upgrade RHEL, you will have to upgrade your SAP HANA 1.0 software to '
104
- '{ supported}.' . format ( supported = min_ver_string ) )),
116
+ 'SAP HANA 2.0 supported on the target RHEL release first.' )),
105
117
reporting .ExternalLink (url = 'https://launchpad.support.sap.com/#/notes/2235581' ,
106
118
title = 'SAP HANA: Supported Operating Systems' ),
107
119
reporting .Groups ([reporting .Groups .SANITY ]),
108
120
reporting .Groups ([reporting .Groups .INHIBITOR ]),
109
- reporting .Audience ('sysadmin' )
110
121
])
111
122
112
123
@@ -160,12 +171,10 @@ def _sp_rev_patchlevel_check(instance, patchlevels):
160
171
161
172
def _fullfills_hana_min_version (instance ):
162
173
""" Performs a check whether the version of SAP HANA fulfills the minimal requirements for the target RHEL """
163
- if version .get_target_major_version () == '8' :
174
+ if version .matches_target_version ( '8.6' ) :
164
175
patchlevels = SAP_HANA_RHEL86_REQUIRED_PATCH_LEVELS
165
- if version .matches_target_version ('8.2' ):
166
- patchlevels = SAP_HANA_RHEL82_REQUIRED_PATCH_LEVELS
167
176
else :
168
- patchlevels = SAP_HANA_RHEL9_REQUIRED_PATCH_LEVELS
177
+ patchlevels = SAP_HANA_RHEL90_REQUIRED_PATCH_LEVELS
169
178
return _major_version_check (instance ) and _sp_rev_patchlevel_check (instance , patchlevels )
170
179
171
180
@@ -175,6 +184,11 @@ def version2_check(info):
175
184
for instance in info .instances :
176
185
if _manifest_get (instance .manifest , 'release' , None ) == '1.00' :
177
186
continue
187
+ if version .matches_target_version ('> 8.6' , '< 9.0' ) or version .matches_target_version ('> 9.0' ):
188
+ # if a target release is >=8.8 or >=9.2, the SAP HANA and RHEL versions compatibility is not checked
189
+ _report_skip_check ()
190
+ return
191
+ # if a starget release is 8.6 or 9.0 we still check SAP HANA and RHEL versions compatibility
178
192
if not _fullfills_hana_min_version (instance ):
179
193
_add_hana_details (found , instance )
180
194
@@ -196,7 +210,6 @@ def version2_check(info):
196
210
reporting .Severity (reporting .Severity .HIGH ),
197
211
reporting .Groups ([reporting .Groups .SANITY ]),
198
212
reporting .Groups ([reporting .Groups .INHIBITOR ]),
199
- reporting .Audience ('sysadmin' )
200
213
])
201
214
202
215
0 commit comments