Make and symlink log directory in aio bootstrap

This patch creates the /openstack/log directory within the AIO bootstrap
script to prevent 'unstable' results in openstack-infra's jenkins.

It also moves the symlink to that directory to much earlier in the
gate-check script for the same purpose.

Co-Authored-By: Ian Cordasco <ian.cordasco@rackspace.com>
Closes-Bug: #1428744
Partial-Bug: #1425482
Change-Id: Ib74b5fd216d43e74ca264c14818cfef6e2dc0c70
This commit is contained in:
Jesse Pretorius 2015-03-05 10:17:58 +00:00 committed by Ian Cordasco
parent 05ca87530b
commit 5d7db80eff
2 changed files with 14 additions and 2 deletions

View File

@ -35,6 +35,20 @@ info_block "Checking for required libraries." 2> /dev/null || source $(dirname $
## Main ----------------------------------------------------------------------
# Make the /openstack/log directory for openstack-infra gate check log publishing
mkdir -p /openstack/log
# Implement the log directory link for openstack-infra log publishing
ln -s /openstack/log $SYMLINK_DIR
# Check that the link creation was successful
[[ -d $SYMLINK_DIR ]] || exit_fail
if ! [ -d $SYMLINK_DIR ] ; then
echo "Could not create a link from /openstack/log to ${SYMLINK_DIR}"
exit_fail
fi
# Ensure that the current kernel can support vxlan
if ! modprobe vxlan; then
MINIMUM_KERNEL_VERSION=$(awk '/openstack_host_required_kernel/ {print $2}' playbooks/inventory/group_vars/all.yml)

View File

@ -78,6 +78,4 @@ if [ "${RUN_TEMPEST}" == "yes" ]; then
source $(dirname ${0})/run-tempest.sh
fi
ln -s /openstack/log $SYMLINK_DIR
exit_success