From b135fbf95cae49be280e7a96138118786ab4d4cd Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 30 Jan 2018 17:00:00 +1100 Subject: [PATCH] Add ironic-inspector and iptables to captured logs Add iptables output so we can validate the firewall config. Also if ironic is enabled there is a good chnace that we also want to log the ironic-inspector config/logs Change-Id: Ia363e7eca12157e0b15b29b4d517c75e07d596de --- copy_logs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/copy_logs.sh b/copy_logs.sh index b4f6a983d..bbfb0ab41 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -47,6 +47,10 @@ for project in $PUPPET_MODULES_PATH/*; do if [ -f $project/metadata.json ]; then if egrep -q "github.com/(stackforge|openstack)/puppet" $project/metadata.json; then PROJECTS+="$(basename $project) " + # if we've added ironic we want to try for ironic-inspector also + if [ "$(basename $project)" == 'ironic' ] ; then + PROJECTS+="ironic-inspector " + fi fi fi done @@ -219,6 +223,12 @@ cat /proc/cpuinfo > $LOG_DIR/cpuinfo.txt ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > $LOG_DIR/ps.txt netstat -tulpn > $LOG_DIR/netstat.txt +for table in raw filter nat mangle ; do + echo $table + sudo iptables -t $table -vnxL + echo "" +done > $LOG_DIR/iptables.txt + # keystone resources source $LOG_DIR/openrc.txt openstack endpoint list >> $LOG_DIR/keystone-resources.txt