Create directory JOBS_DIR using the devstack script

The directory JOBS_DIR(Default value is /etc/freezer/scheduler/conf.d)
should be ready before running the test case.

Change-Id: I5aa048292c449e8c265609235fb99c018e001fb7
Closes-Bug: #1633320
This commit is contained in:
Shangzhong Zhu 2016-10-14 15:09:17 +08:00
parent ab47e90f21
commit 96e856a0bd
2 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,8 @@ function configure_freezer_scheduler {
[ ! -d $FREEZER_CONF_DIR ] && sudo mkdir -m 755 -p $FREEZER_CONF_DIR
sudo cp -p $FREEZER_DIR/etc/scheduler.conf.sample $FREEZER_CONF_FILE
sudo chown $STACK_USER $FREEZER_CONF_DIR
[ ! -d $FREEZER_JOBS_DIR ] && sudo mkdir -m 755 -p $FREEZER_JOBS_DIR
sudo chown $STACK_USER $FREEZER_JOBS_DIR
[ ! -d $FREEZER_LOG_DIR ] && sudo mkdir -m 755 -p $FREEZER_LOG_DIR
sudo chown $STACK_USER $FREEZER_LOG_DIR

View File

@ -18,6 +18,7 @@
# Set up default directories
FREEZER_DIR=$DEST/freezer
FREEZER_CONF_DIR=${FREEZER_CONF_DIR:-/etc/freezer}
FREEZER_JOBS_DIR=${FREEZER_JOBS_DIR:-/etc/freezer/scheduler/conf.d}
FREEZER_CONF_FILE=$FREEZER_CONF_DIR/scheduler.conf
FREEZER_LOG_DIR=$DEST/logs