Skip to content

Commit 13c349f

Browse files
idevatpirat89
authored andcommitted
add remediation hint to ha cluster check
1 parent 62b412f commit 13c349f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

repos/system_upgrade/el7toel8/actors/checkhacluster/libraries/checkhacluster.py

+11
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ def inhibit(node_type):
2525
" to a RHEL High Availability or Resilient Storage Cluster"
2626
),
2727
),
28+
reporting.Remediation(
29+
hint=(
30+
"Destroy the existing HA cluster"
31+
" or (if you have already removed HA cluster packages) remove"
32+
" configuration files {0} and {1}".format(
33+
CIB_LOCATION,
34+
COROSYNC_CONF_LOCATION,
35+
)
36+
),
37+
commands=[["sh", "-c", "pcs cluster stop --all --wait && pcs cluster destroy --all"]]
38+
),
2839
reporting.RelatedResource('file', COROSYNC_CONF_LOCATION),
2940
reporting.RelatedResource('file', CIB_LOCATION)
3041
])

0 commit comments

Comments
 (0)