@@ -124,12 +124,7 @@ def write_in_color(f, color: str, text: str):
124
124
f .write (text )
125
125
126
126
def end (self ):
127
- if self .has_problems :
128
- self .write_in_color (sys .stdout , constants .RED , '[FAIL]\n \n ' )
129
- else :
130
- self .write_in_color (sys .stdout , constants .GREEN , '[PASS]\n \n ' )
131
- if not self .has_problems :
132
- self .write_in_color (sys .stdout , constants .GREEN , '[PASS]\n ' )
127
+ sys .stdout .write ('\n ' )
133
128
134
129
135
130
def migrate ():
@@ -171,8 +166,9 @@ def check(args: typing.Sequence[str]) -> int:
171
166
else :
172
167
check_remote_yield = check_remote ()
173
168
next (check_remote_yield )
174
- print ('------ corosync @ localhost ------' )
169
+ print ('------ localhost ------' )
175
170
check_local (handler )
171
+ print ('------ cib ------' )
176
172
check_global (handler )
177
173
handler .end ()
178
174
match handler :
@@ -189,12 +185,12 @@ def check(args: typing.Sequence[str]) -> int:
189
185
print ('****** summary ******' )
190
186
if ret == 0 :
191
187
CheckResultInteractiveHandler .write_in_color (sys .stdout , constants .GREEN , '[INFO]' )
192
- sys .stdout .write (' Please run "crm cluster health sles16 --fix" on on any one of above nodes, after migrating all the nodes to SLES 16 .\n ' )
188
+ sys .stdout .write (' Please run "crm cluster health sles16 --fix" on on any one of above nodes.\n ' )
193
189
CheckResultInteractiveHandler .write_in_color (sys .stdout , constants .GREEN , '[PASS]' )
194
190
sys .stdout .write (' This cluster is good to migrate to SLES 16.\n ' )
195
191
else :
196
192
CheckResultInteractiveHandler .write_in_color (sys .stdout , constants .RED , '[FAIL]' )
197
- sys .stdout .write (' Please fix all the "FAIL" problems above before migrating to SLES 16.\n ' )
193
+ sys .stdout .write (' The pacemaker cluster stack can not migrate to SLES 16.\n ' )
198
194
return ret
199
195
200
196
@@ -340,8 +336,7 @@ def _check_unsupported_corosync_transport(handler: CheckResultHandler, dom):
340
336
except KeyError :
341
337
# looks like a corosync 3 config
342
338
return
343
- handler .handle_tip (f'Corosync transport "{ transport } " will be deprecated in corosync 3.' , [
344
- 'Run "crm health sles16 --fix" to migrate it to transport "knet".' ,
339
+ handler .handle_tip (f'Corosync transport "{ transport } " will be deprecated in corosync 3. Please use knet.' , [
345
340
])
346
341
347
342
@@ -529,8 +524,7 @@ def check_unsupported_resource_agents(handler: CheckResultHandler):
529
524
ocf_resource_agents .append (resource_agent )
530
525
elif resource_agent .m_class == 'stonith' :
531
526
if resource_agent .m_type == 'external/sbd' :
532
- handler .handle_tip ('stonith:external/sbd will be removed.' , [
533
- '* Please replace it with stonith:fence_sbd.'
527
+ handler .handle_tip ('stonith:external/sbd will be removed. Please use stonith:fence_sbd' , [
534
528
])
535
529
else :
536
530
stonith_resource_agents .append (resource_agent )
@@ -606,6 +600,5 @@ def _check_removed_resource_agents(
606
600
607
601
def _check_ocfs2 (handler : CheckResultHandler , cib : lxml .etree .Element ):
608
602
if cibquery .has_primitive_filesystem_with_fstype (cib , 'ocfs2' ):
609
- handler .handle_problem (False , 'OCFS2 is not supported in SLES 16.' , [
610
- '* Before migrating to SLES 16, replace it with GFS2.' ,
603
+ handler .handle_problem (False , 'OCFS2 is not supported in SLES 16. Please use GFS2.' , [
611
604
])
0 commit comments