Merge "Verbose task errors logging in deploy.sh"

This commit is contained in:
NextGen CI 2016-06-01 07:39:46 +00:00 committed by Gerrit Code Review
commit ea0bdac0a8
2 changed files with 14 additions and 1 deletions

View File

@ -35,4 +35,13 @@ fi
./mcpinstall.py dns
solar changes stage
solar changes process
solar orch run-once -w 1200
SUCCESS_MESSAGE='mcpinstall succeeded'
ERROR_MESSAGE='mcpinstall encountered an error. Please refer to above message to see detailed error message. Deployment continues.'
if solar orch run-once -w 1200 -s ; then
echo $SUCCESS_MESSAGE
else
echo $ERROR_MESSAGE
solar orch report -w 120
fi

View File

@ -9,6 +9,10 @@ if [[ ! "$os" == "Ubuntu" ]]; then
sudo hostnamectl set-hostname --static "{{name}}"
else
if [[ "$os" == "Ubuntu" ]]; then
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do
echo "waiting for dpkg lock"
sleep 1
done
sudo apt-get install -y python ansible
sudo hostname {{name}}
sudo bash -c "echo {{name}} > /etc/hostname"