Save and report nodepool image names
When building an image, save the hostname of the image to a file in /etc. Before running tox in jobs, cat that file. This will help confirm which image was used to build a given node for a particular job, and potentially help debug some issues we are currently seeing. Change-Id: I9d55b7223ea85c1137b460f049a0184d7e9ce53d
This commit is contained in:
parent
8891904869
commit
53ede00741
@ -40,6 +40,9 @@ then
|
|||||||
echo "127.0.1.1 $HOSTNAME" | sudo tee -a /etc/hosts
|
echo "127.0.1.1 $HOSTNAME" | sudo tee -a /etc/hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo $HOSTNAME > /tmp/image-hostname.txt
|
||||||
|
sudo mv /tmp/image-hostname.txt /etc/image-hostname.txt
|
||||||
|
|
||||||
# Fedora image doesn't come with wget
|
# Fedora image doesn't come with wget
|
||||||
if [ -f /usr/bin/yum ]; then
|
if [ -f /usr/bin/yum ]; then
|
||||||
sudo yum -y install wget
|
sudo yum -y install wget
|
||||||
|
@ -21,6 +21,8 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat /etc/image-hostname.txt
|
||||||
|
|
||||||
/usr/local/jenkins/slave_scripts/jenkins-oom-grep.sh pre
|
/usr/local/jenkins/slave_scripts/jenkins-oom-grep.sh pre
|
||||||
|
|
||||||
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
||||||
|
@ -20,6 +20,8 @@ export NOSE_HTML_OUT_FILE='nose_results.html'
|
|||||||
export TMPDIR=`/bin/mktemp -d`
|
export TMPDIR=`/bin/mktemp -d`
|
||||||
trap "rm -rf $TMPDIR" EXIT
|
trap "rm -rf $TMPDIR" EXIT
|
||||||
|
|
||||||
|
cat /etc/image-hostname.txt
|
||||||
|
|
||||||
/usr/local/jenkins/slave_scripts/jenkins-oom-grep.sh pre
|
/usr/local/jenkins/slave_scripts/jenkins-oom-grep.sh pre
|
||||||
|
|
||||||
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
||||||
|
Loading…
Reference in New Issue
Block a user