aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-06-01 19:27:23 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-06-02 16:11:40 +0100
commitbecbaae92d42db7b80da79403cda142acd4bf451 (patch)
tree919b9d5453617270772d0cb695efd2978a6a72aa
parent4392bbc901d71d059e2a511b1e6d12ba20a50cd3 (diff)
downloadsos-becbaae92d42db7b80da79403cda142acd4bf451.tar.gz
[openvswitch] convert to add_journal interface
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/openvswitch.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index 47cb59a1..177da89f 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -43,9 +43,6 @@ class OpenVSwitch(Plugin):
"ovsdb-client -f list dump",
# List the contents of runtime directory
"ls -laZ /var/run/openvswitch",
- # Gather systemd services logs
- "journalctl -u openvswitch",
- "journalctl -u openvswitch-nonetwork",
# List devices and their drivers
"dpdk_nic_bind --status",
# Capture a list of all bond devices
@@ -68,6 +65,10 @@ class OpenVSwitch(Plugin):
"ovs-vsctl -t 5 get Open_vSwitch . other_config"
])
+ # Gather systemd services logs
+ self.add_journal(units="openvswitch")
+ self.add_journal(units="openvswitch-nonetwork")
+
# Gather additional output for each OVS bridge on the host.
br_list_result = self.call_ext_prog("ovs-vsctl list-br")
if br_list_result['status'] == 0: