
* change BASE_RELEASE and TARGET_RELEASE in grenaderc * remove work-arounds from devstack.localrc.target * remove upgrade steps from the upgrade-* scripts * change references to release names in variables to BASE_ and TARGET_ * remove Javelin check from check-sanity, will return in verify-javelin in https://review.openstack.org/#/c/26257/ Fixes bug 1175340 Change-Id: If1523c73ebefeaf3d3e3efdfbc053f47365d123a
47 lines
1.3 KiB
Bash
Executable File
47 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# ``upgrade-sanity``
|
|
|
|
# this is a set of sanity checks that should be run after upgrade to make sure
|
|
# the environment actually looks like we expect, if not, die horribly
|
|
|
|
echo "*********************************************************************"
|
|
echo "Begin $0"
|
|
echo "*********************************************************************"
|
|
|
|
# Keep track of the devstack directory
|
|
GRENADE_DIR=$(cd $(dirname "$0") && pwd)
|
|
|
|
# Import common functions
|
|
source $GRENADE_DIR/functions
|
|
|
|
# Determine what system we are running on. This provides ``os_VENDOR``,
|
|
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
|
|
# and ``DISTRO``
|
|
GetDistro
|
|
|
|
# Source params
|
|
source $GRENADE_DIR/grenaderc
|
|
|
|
# We need the OS_ credentials
|
|
source $TARGET_DEVSTACK_DIR/openrc
|
|
|
|
# all the services should actually be running that we expect
|
|
NOT_RUNNING=""
|
|
for name in ${TARGET_SERVICES}; do
|
|
if ! is_running ${name}; then
|
|
NOT_RUNNING="$NOT_RUNNING $name"
|
|
fi
|
|
done
|
|
|
|
if [[ -n "$NOT_RUNNING" ]]; then
|
|
echo "The following services are not running after upgrade: $NOT_RUNNING"
|
|
# do a process dump at the end, just to see how bad things really are
|
|
ps auxw
|
|
exit 1
|
|
fi
|
|
|
|
echo "*********************************************************************"
|
|
echo "SUCCESS: End $0"
|
|
echo "*********************************************************************"
|