Merge "Add debugging information for bmc issues"

This commit is contained in:
Jenkins 2017-01-28 00:18:53 +00:00 committed by Gerrit Code Review
commit 37bf7fef5c
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ function delete_ports() {
done
}
# Save the end of the bmc log for debugging IPMI connectivity problems
nova console-log bmc-${ENVNUM} | tail -n 100 | awk -v envnum="$ENVNUM" '$0=envnum ": " $0' >> /var/log/bmc-console-logs
# Delete the ports that have been attached to the undercloud
SUBNETID=$(neutron subnet-show $PUBLICNET | awk '$2=="id" {print $4}' || echo '')
delete_ports $SUBNETID