XenAPI: Tail output from stack.sh
While installing devstack in XenServer's DomU we can easily track the output so end-users have much more visibility of both what is going on and what (if anything!) went wrong. Change-Id: I7d12a13cea9dffda6c1388ce711b6adf76cae72c
This commit is contained in:
parent
4fcda870e6
commit
dc7ebbb9a4
@ -383,13 +383,12 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ] && [ -e ~/.ssh/id_rsa.pub ] && [ "$COPYENV" =
|
|||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
echo -n "devstack is running"
|
echo -n "devstack is running"
|
||||||
while ssh_no_check -q stack@$OS_VM_MANAGEMENT_ADDRESS "service devstack status | grep -q running"; do
|
|
||||||
sleep 10
|
|
||||||
echo -n "."
|
|
||||||
done
|
|
||||||
echo "done!"
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
# Watch devstack's output
|
||||||
|
pid=`ssh_no_check -q stack@$OS_VM_MANAGEMENT_ADDRESS pgrep run.sh`
|
||||||
|
ssh_no_check -q stack@$OS_VM_MANAGEMENT_ADDRESS "tail --pid $pid -n +1 -f /tmp/devstack/log/stack.log"
|
||||||
|
|
||||||
# Fail if devstack did not succeed
|
# Fail if devstack did not succeed
|
||||||
ssh_no_check -q stack@$OS_VM_MANAGEMENT_ADDRESS 'test -e /var/run/devstack.succeeded'
|
ssh_no_check -q stack@$OS_VM_MANAGEMENT_ADDRESS 'test -e /var/run/devstack.succeeded'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user