Skip to content
Snippets Groups Projects
Commit 8c5cd011 authored by SamYaple's avatar SamYaple
Browse files

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
parent 5d90d930
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,25 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then ...@@ -8,6 +8,25 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then
echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins
fi 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 { function detect_disk {
# TODO(SamYaple): This check could be much better, but should work for now # TODO(SamYaple): This check could be much better, but should work for now
if [[ $(hostname | grep rax) ]]; then if [[ $(hostname | grep rax) ]]; then
...@@ -96,7 +115,9 @@ function setup_logging { ...@@ -96,7 +115,9 @@ function setup_logging {
} }
setup_logging setup_logging
(dump_node_info 2>&1) > /tmp/logs/node_info_first
setup_ssh setup_ssh
setup_ansible setup_ansible
setup_node setup_node
setup_config setup_config
(dump_node_info 2>&1) > /tmp/logs/node_info_last
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment