aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/pacemaker.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/sos/report/plugins/pacemaker.py b/sos/report/plugins/pacemaker.py
index 3e2c8571..cf11e219 100644
--- a/sos/report/plugins/pacemaker.py
+++ b/sos/report/plugins/pacemaker.py
@@ -8,6 +8,7 @@
from sos.report.plugins import (Plugin, RedHatPlugin, DebianPlugin,
UbuntuPlugin, PluginOpt)
+from sos.utilities import parse_version
from datetime import datetime, timedelta
import re
@@ -42,13 +43,23 @@ class Pacemaker(Plugin):
])
def setup_pcs(self):
+ pcs_pkg = self.policy.package_manager.pkg_by_name('pcs')
+ if pcs_pkg is None:
+ return
+
self.add_copy_spec("/var/log/pcsd/pcsd.log")
self.add_cmd_output([
"pcs stonith sbd status --full",
"pcs stonith sbd watchdog list",
"pcs stonith history show",
- "pcs property list --all"
])
+
+ pcs_version = '.'.join(pcs_pkg['version'])
+ if parse_version(pcs_version) > parse_version('0.10.8'):
+ self.add_cmd_output("pcs property config --all")
+ else:
+ self.add_cmd_output("pcs property list --all")
+
self.add_cmd_output("pcs config", tags="pcs_config")
self.add_cmd_output("pcs quorum status", tags="pcs_quorum_status")
self.add_cmd_output("pcs status --full", tags="pcs_status")