From d1c9bd8101cf66000b7ea9388068df4d31b5a8e1 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 5 Oct 2018 14:49:14 +0100 Subject: [PATCH] scripts: collect-test-info.sh: Collect baremetal information Collect baremetal node information which can help debug issues. Change-Id: I923ed22ea16c8692f803ac7656f5d105f9a32032 --- scripts/collect-test-info.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/collect-test-info.sh b/scripts/collect-test-info.sh index b04e52f4b..2dda41396 100755 --- a/scripts/collect-test-info.sh +++ b/scripts/collect-test-info.sh @@ -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