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:
parent
05ca87530b
commit
5d7db80eff
@ -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)
|
||||
|
@ -78,6 +78,4 @@ if [ "${RUN_TEMPEST}" == "yes" ]; then
|
||||
source $(dirname ${0})/run-tempest.sh
|
||||
fi
|
||||
|
||||
ln -s /openstack/log $SYMLINK_DIR
|
||||
|
||||
exit_success
|
||||
|
Loading…
x
Reference in New Issue
Block a user