Blame SOURCES/sos-bz1848095-collect-rhev-pki.patch

bffc8a
From bbd28011f8bb710d64283bd6d3ec68c0fb5430b4 Mon Sep 17 00:00:00 2001
bffc8a
From: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Date: Fri, 6 Nov 2020 21:28:37 +0100
bffc8a
Subject: [PATCH] [ovirt] collect /etc/pki/ovirt-engine/.truststore
bffc8a
bffc8a
.truststore contains useful public CAs but a_c_s skips collecting
bffc8a
that hidden file.
bffc8a
bffc8a
Closes: #2296
bffc8a
Resolves: #2297
bffc8a
bffc8a
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/ovirt.py | 7 +++++--
bffc8a
 1 file changed, 5 insertions(+), 2 deletions(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/ovirt.py b/sos/report/plugins/ovirt.py
bffc8a
index 4c112cac..127c971c 100644
bffc8a
--- a/sos/report/plugins/ovirt.py
bffc8a
+++ b/sos/report/plugins/ovirt.py
bffc8a
@@ -137,12 +137,15 @@ class Ovirt(Plugin, RedHatPlugin):
bffc8a
             "/var/lib/ovirt-engine-reports/jboss_runtime/config"
bffc8a
         ])
bffc8a
 
bffc8a
-        # Copying host certs.
bffc8a
+        # Copying host certs; extra copy the hidden .truststore file
bffc8a
         self.add_forbidden_path([
bffc8a
             "/etc/pki/ovirt-engine/keys",
bffc8a
             "/etc/pki/ovirt-engine/private"
bffc8a
         ])
bffc8a
-        self.add_copy_spec("/etc/pki/ovirt-engine/")
bffc8a
+        self.add_copy_spec([
bffc8a
+            "/etc/pki/ovirt-engine/",
bffc8a
+            "/etc/pki/ovirt-engine/.truststore",
bffc8a
+        ])
bffc8a
 
bffc8a
     def postproc(self):
bffc8a
         """
bffc8a
-- 
bffc8a
2.26.2
bffc8a