grenade/projects/40_glance/shutdown.sh
Sean Dague 35968c9945 modularize shutdown
This breaks the content out of stop-base into a set of modular
shutdown.sh scripts so that every service can control it's own
shutdown. Services are shut down in reverse order under the theory
that will prevent services from calling services they depend on and
blocking their shutdown. Keystone had a habit of not going down if it
was first in the list.

We also need to manage TOP_DIR because many devstack scripts source
other devstack scripts by TOP_DIR. In the base case we make it
TARGET_DEVSTACK_DIR, however when we run shutdown we reference the
BASE_DEVSTACK_DIR instead.

This also moves all the stop-base service checks into the modular
shutdown scripts.

Depends-On: I9138a8370be06e6c9d2dacbec1b0ffd4928e603d

... as apparently stop_neutron does do anything useful in juno, and
the neutron project was relying on global pkills to make their
services actually shut down.

Change-Id: I02599b95bde61ade34220251e896f6d4c4122c22
2015-04-11 13:13:33 -04:00

22 lines
419 B
Bash
Executable File

#!/bin/bash
#
#
set -o errexit
source $GRENADE_DIR/grenaderc
source $GRENADE_DIR/functions
# We need base DevStack functions for this
source $BASE_DEVSTACK_DIR/functions
source $BASE_DEVSTACK_DIR/stackrc # needed for status directory
source $BASE_DEVSTACK_DIR/lib/tls
source $BASE_DEVSTACK_DIR/lib/glance
set -o xtrace
stop_glance
# sanity check that services are actually down
ensure_services_stopped glance-api