From 8c5cd011a7e4d033bb90de59469e63dfa972a1d6 Mon Sep 17 00:00:00 2001 From: SamYaple Date: Tue, 12 Jan 2016 20:38:17 +0000 Subject: [PATCH] Add some additional debug to gate This info won't affect gate output as all info is logged to a file. TrivialFix Change-Id: Id92c1ebc60937fb376c69541d2f308a9d711c85e --- tests/setup_gate.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/setup_gate.sh b/tests/setup_gate.sh index 4f925cb0cb..d94377aff6 100755 --- a/tests/setup_gate.sh +++ b/tests/setup_gate.sh @@ -8,6 +8,25 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins fi +function dump_node_info { + # NOTE(SamYaple): function for debugging gate + set +o errexit + local OLD_PATH="${PATH}" + PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + sudo parted -l + + sudo mount + + df -h + + uname -a + + cat /etc/*release* + + PATH="${OLD_PATH}" + set -o errexit +} + function detect_disk { # TODO(SamYaple): This check could be much better, but should work for now if [[ $(hostname | grep rax) ]]; then @@ -96,7 +115,9 @@ function setup_logging { } setup_logging +(dump_node_info 2>&1) > /tmp/logs/node_info_first setup_ssh setup_ansible setup_node setup_config +(dump_node_info 2>&1) > /tmp/logs/node_info_last