aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Gaillot <kgaillot@redhat.com>2018-10-04 16:59:35 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-18 12:01:56 +0000
commit601d711866d10e0a5455355baef94c5d94fd37eb (patch)
tree25d00fa9eda8d2f103fdd3e00357a50a4f1f03a9
parent71d6cf9676ea5e258edb0de7fd9864845fcab8d5 (diff)
downloadsos-601d711866d10e0a5455355baef94c5d94fd37eb.tar.gz
[pacemaker] only run pcs commands on systems that support it
pcs commands should be run in pcs_setup() rather than setup(), so they are only called on distributions that ship pcs Related: #1444 Signed-off-by: Ken Gaillot <kgaillot@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/pacemaker.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py
index 84921fbd..9f38d449 100644
--- a/sos/plugins/pacemaker.py
+++ b/sos/plugins/pacemaker.py
@@ -45,6 +45,8 @@ class Pacemaker(Plugin):
self.add_cmd_output([
"pcs config",
"pcs status",
+ "pcs stonith sbd status",
+ "pcs quorum status",
"pcs property list --all"
])
@@ -80,11 +82,6 @@ class Pacemaker(Plugin):
"/var/log/cluster/bundles/*/",
])
- self.add_cmd_output([
- "pcs stonith sbd status",
- "pcs quorum status"
- ])
-
self.setup_crm_mon()
# crm_report needs to be given a --from "YYYY-MM-DD HH:MM:SS" start