ironic-inspector/devstack/upgrade/shutdown.sh
dparalen 99c81d9c60 Introduce upgrade testing with Grenade
This change makes it possible to run Grenade jobs on ironic-inspector.
The only thing tested in this patch is that ironic-inspector actually
comes up after upgrade from a previous version. We will make it run
actual introspection tests in the next patch.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: I79e7ecaa89936144b63a72baf8460ae6ad139890
2016-07-01 10:11:48 +02:00

30 lines
715 B
Bash
Executable File

#!/bin/bash
#
# based on Ironic/devstack/upgrade/shutdown.sh
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/apache
# Inspector relies on a couple of Ironic variables
source $TARGET_RELEASE_DIR/ironic/devstack/lib/ironic
# Keep track of the DevStack directory
INSPECTOR_DEVSTACK_DIR=$(cd $(dirname "$0")/.. && pwd)
source $INSPECTOR_DEVSTACK_DIR/plugin.sh
set -o xtrace
stop_inspector
if [[ "$IRONIC_INSPECTOR_MANAGE_FIREWALL" == "True" ]]; then
stop_inspector_dhcp
fi