launch_instance.sh: return error if nova-compute fails

If the nova-compute service is up but remains offline (XXX) in
nova-manage service list, the script gives up, returning 0 (success) as
the exit code.
This patch makes this case return 1 (error) instead which is consistent
with similar cases in the script.
Change-Id: Ia6945569255a7cd9796930edff21ffcfc333cc1d
This commit is contained in:
Roger Luethi
2015年08月02日 10:40:26 +02:00
parent 18830c3b45
commit 14f806dee6

View File

@@ -127,9 +127,9 @@ function wait_for_nova_compute {
grep -q "start/running"; then
if [ $cnt -eq 300 ]; then
# This should never happen.
echo "SUM ERROR nova-compute remains XXX while up."
echo "SUM ABORT nova-compute remains XXX while up."
echo "Aborting."
exit
exit 1
fi
echo -n .
else
Reference in New Issue
openstack/training-guides
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.