From ecc1f757343b936cc6ba5f088d76a3c28dfc05a3 Mon Sep 17 00:00:00 2001 From: Assaf Muller Date: Wed, 21 Aug 2019 15:17:07 -0400 Subject: [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 Signed-off-by: Pavel Moravec --- sos/plugins/openstack_instack.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- cgit