scripts: collect-test-info.sh: Collect baremetal information

Collect baremetal node information which can help debug issues.

Change-Id: I923ed22ea16c8692f803ac7656f5d105f9a32032
This commit is contained in:
Markos Chandras 2018-10-05 14:49:14 +01:00
parent 2be2c38399
commit d1c9bd8101
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ mkdir -p ${LOG_LOCATION}/pxe/
cp /httpboot/ipxe.pxe ${LOG_LOCATION}/pxe/
cp -aL /httpboot/pxelinux.cfg/ ${LOG_LOCATION}/pxe/
# Copy baremetal information
source $HOME/openrc
for vm in $(openstack baremetal node list -c Name -f value); do
openstack baremetal node show $vm >> ${LOG_LOCATION}/baremetal.txt
done
if [ -d "/var/log/ironic" ]; then
cp -a "/var/log/ironic" ${LOG_LOCATION}/ipa-logs
fi