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
This commit is contained in:
Tony Breeds 2018-01-30 17:00:00 +11:00
parent 6575bb5f79
commit b135fbf95c
1 changed files with 10 additions and 0 deletions

View File

@ -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