Sandro Bonazzola has uploaded a new change for review.

Change subject: sos: engine: collect full service configuration
......................................................................

sos: engine: collect full service configuration

Collect also /var/tmp/ovirt-engine/config content.

Change-Id: Id41c3859731a77cb2c771d327730c277b81a8c54
Bug-Url: https://bugzilla.redhat.com/1035825
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M src/sos/plugins/engine.py
1 file changed, 13 insertions(+), 0 deletions(-)


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

diff --git a/src/sos/plugins/engine.py b/src/sos/plugins/engine.py
index a06c67e..f56c4f3 100644
--- a/src/sos/plugins/engine.py
+++ b/src/sos/plugins/engine.py
@@ -100,6 +100,7 @@
         self.addCopySpec("/var/lib/ovirt-engine/setup-history.txt")
         self.addCopySpec("/var/lib/ovirt-engine/setup/answers")
         self.addCopySpec("/var/lib/ovirt-engine/external_truststore")
+        self.addCopySpec("/var/tmp/ovirt-engine/config")
 
     def postproc(self):
         """
@@ -115,6 +116,18 @@
             r"Password.type=(.*)",
             r'Password.type=********'
         )
+        for filename in (
+            'ovirt-engine.xml',
+            'ovirt-engine_history/current/ovirt-engine.v1.xml',
+            'ovirt-engine_history/ovirt-engine.boot.xml',
+            'ovirt-engine_history/ovirt-engine.initial.xml',
+            'ovirt-engine_history/ovirt-engine.last.xml',
+        ):
+            self.doRegexSub(
+                "/var/tmp/ovirt-engine/config/%s" % filename,
+                r"<password>(.*)</password>",
+                r'<password>********</password>'
+            )
 
         if self.getOption('sensitive_keys'):
             sensitive_keys = self.getOption('sensitive_keys')


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id41c3859731a77cb2c771d327730c277b81a8c54
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to