Verbose task errors logging in deploy.sh

It needs the https://review.openstack.org/#/c/315577/ solar change
to be included in solar-minimal image

Also fixed issue with dpkg lock on installing ansible

Change-Id: I8d71fc74ba2cfea93b95234c24954a6bf1781924
This commit is contained in:
Maciej Kwiek 2016-05-13 11:03:18 +02:00
parent 37aeeb2db0
commit de97b8d671
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

@ -7,6 +7,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"