Simone Tiraboschi has uploaded a new change for review.

Change subject: sos: enabling additional plugins for sos >= 3
......................................................................

sos: enabling additional plugins for sos >= 3

SOS plugins have been refactored between sos 2 and sos 3,
enabling additional plugins for sos > 3

https://bugzilla.redhat.com/1174155

Change-Id: I61c2c5e9a7d5989df75838de503d17390b4d7186
Signed-off-by: Simone Tiraboschi <stira...@redhat.com>
---
M src/__main__.py
1 file changed, 13 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/99/37199/1

diff --git a/src/__main__.py b/src/__main__.py
index 4dd7b18..4e1c8e7 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -633,6 +633,17 @@
             "memory",
             "rpm",
         ))
+        self.configuration['reports3'] = ",".join((
+            "processor",
+            "pci",
+            "md",
+            "block",
+            "scsi",
+            "multipath",
+            "systemd",
+            "sanlock",
+            "lvm2",
+        ))
 
         # these are the reports that will work with rhev2.2 hosts
         self.configuration['bc_reports'] = \
@@ -682,10 +693,10 @@
 VERSION=`/bin/rpm -q --qf '[%%{{VERSION}}]' sos | /bin/sed 's/\.//'`;
 if [ "$VERSION" -ge "32" ]; then
     /usr/sbin/sosreport {option} --batch --all-logs \
-        -o logs,%(reports)s
+        -o logs,%(reports)s,%(reports3)s
 elif [ "$VERSION" -ge "30" ]; then
     /usr/sbin/sosreport {option} --batch -k logs.all_logs=True \
-        -o logs,%(reports)s
+        -o logs,%(reports)s,%(reports3)s
 elif [ "$VERSION" -ge "22" ]; then
     /usr/sbin/sosreport {option} --batch -k general.all_logs=True \
         -o %(reports)s


-- 
To view, visit http://gerrit.ovirt.org/37199
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I61c2c5e9a7d5989df75838de503d17390b4d7186
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: ovirt-log-collector-3.5
Gerrit-Owner: Simone Tiraboschi <stira...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to