Skip to content

Commit

Permalink
add remediation hint to ha cluster check
Browse files Browse the repository at this point in the history
  • Loading branch information
idevat authored and pirat89 committed Oct 20, 2020
1 parent 62b412f commit 13c349f
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ def inhibit(node_type):
" to a RHEL High Availability or Resilient Storage Cluster"
),
),
reporting.Remediation(
hint=(
"Destroy the existing HA cluster"
" or (if you have already removed HA cluster packages) remove"
" configuration files {0} and {1}".format(
CIB_LOCATION,
COROSYNC_CONF_LOCATION,
)
),
commands=[["sh", "-c", "pcs cluster stop --all --wait && pcs cluster destroy --all"]]
),
reporting.RelatedResource('file', COROSYNC_CONF_LOCATION),
reporting.RelatedResource('file', CIB_LOCATION)
])
Expand Down

0 comments on commit 13c349f

Please sign in to comment.