Stop daemons before cleanup in unstack

The cleanup_ceph_embedded function nukes the ceph
conf directories, so when subsequently trying
to stop services they aren't stopped.  Next stack.sh
run will fail because daemons are still running.

Fix by stopping daemons before running cleanup.

Change-Id: I51cd58eae83171a47aa898b65240b72ea0217af9
Closes-Bug: #1534600
This commit is contained in:
John Spray 2016-01-15 14:14:20 +00:00
parent a25112cd49
commit 3d65ac342f
1 changed files with 1 additions and 1 deletions

View File

@ -82,8 +82,8 @@ if [[ "$1" == "unstack" ]]; then
if [ "$REMOTE_CEPH" = "True" ]; then
cleanup_ceph_remote
else
cleanup_ceph_embedded
stop_ceph
cleanup_ceph_embedded
fi
cleanup_ceph_general
fi