Browse Source

Reduce unnecessary log storage

Previously we were storing the whole contents of /var/tmp/packstack,
which includes all Puppet modules and is unnecessarily filling up
the log server.

Instead, let's store /var/tmp/packstack/latest, where the last
Packstack execution logs are kept. That is really what we need.

Also added 'ip netns' command to logs to help troubleshooting issues
with dhcp agent.

Change-Id: Ia138c13c0797d2b83c9e3b4037c4648abf8f7295
(cherry picked from commit cfdbeb5d02)
changes/17/689417/2
Javier Pena Alfredo Moralejo 6 months ago
parent
commit
f21f84b066
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/copy-logs.sh

+ 2
- 1
tools/copy-logs.sh View File

@@ -42,6 +42,7 @@ function get_diag_commands {
'iptables -vnL -t mangle'
'ifconfig -a'
'ip addr show'
'ip netns'
'lsmod'
'timeout 15 lsof' # High potential of getting stuck
'lsof -Pni'
@@ -100,7 +101,7 @@ function get_config_and_logs {
'/var/log/mariadb'
'/etc/httpd/conf.d/'
'/var/log/httpd'
'/var/tmp/packstack'
'/var/tmp/packstack/latest'
'/var/tmp/packstack/latest/testrepository.subunit' # So we're copying it
'/var/log/audit' # to the root of
'/var/log/secure' # /logs


Loading…
Cancel
Save