aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-01-12 20:38:17 +0000
committerSamYaple <sam@yaple.net>2016-01-12 20:52:58 +0000
commit8c5cd011a7e4d033bb90de59469e63dfa972a1d6 (patch)
tree80a901f871ba2ccb93e4eb6e4fdc73bf43d5a02f /tests
parent5d90d930868ff10ca10565ec6ce439ec2743c3f5 (diff)
downloadkolla-8c5cd011a7e4d033bb90de59469e63dfa972a1d6.tar.gz
kolla-8c5cd011a7e4d033bb90de59469e63dfa972a1d6.zip
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_gate.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/setup_gate.sh b/tests/setup_gate.sh
index 4f925cb0c..d94377aff 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