aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssaf Muller <amuller@redhat.com>2019-08-21 15:17:07 -0400
committerPavel Moravec <pmoravec@redhat.com>2019-08-26 16:59:17 +0200
commitecc1f757343b936cc6ba5f088d76a3c28dfc05a3 (patch)
tree061d8695bb7716c45d76e4bbfed3ccd1a35a8028
parent255c0b08321e9d81f69798d3df16c7548bd3c0db (diff)
downloadsos-ecc1f757343b936cc6ba5f088d76a3c28dfc05a3.tar.gz
[openstack_instack] Collect /home/stack/.tripleo/history
The 'history' file includes one line for every cmdline invocation of TripleO. The file includes useful information to troubleshoot TripleO based OpenStack deployments, as it includes timestamps for operations, so the troubleshooter will now be able to know when the last operation happened. Resolves: #1765 Signed-off-by: Assaf Muller <amuller@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/openstack_instack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
index 15e6c384..6a42df54 100644
--- a/sos/plugins/openstack_instack.py
+++ b/sos/plugins/openstack_instack.py
@@ -23,7 +23,8 @@ CONTAINERIZED_DEPLOY = [
'/var/log/heat-launcher/',
'/home/stack/install-undercloud.log',
'/home/stack/undercloud-install-*.tar.bzip2',
- '/var/lib/mistral/config-download-latest/ansible.log'
+ '/var/lib/mistral/config-download-latest/ansible.log',
+ '/home/stack/.tripleo/history',
]
@@ -127,6 +128,9 @@ class OpenStackInstack(Plugin):
json_regexp = r'((?m)"(%s)": )(".*?")' % "|".join(protected_json_keys)
self.do_file_sub("/home/stack/instackenv.json", json_regexp,
r"\1*********")
+ self.do_file_sub('/home/stack/.tripleo/history',
+ r'(password=)\w+',
+ r'\1*********')
class RedHatRDOManager(OpenStackInstack, RedHatPlugin):