logging tweaks for devstack/keystone and cd for keystone db_sync
This commit is contained in:
parent
747ee33efd
commit
708a2ad10d
7
stack.sh
7
stack.sh
@ -1362,11 +1362,12 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
|
||||
|
||||
|
||||
if [ "$SYSLOG" != "False" ]; then
|
||||
cp $KEYSTONE_DIR/etc/logging.conf.sample $KEYSTONE_DIR/etc/logging.conf
|
||||
sed -i -e '/^handlers=devel$/s/=devel/=production/' \
|
||||
$KEYSTONE_DIR/etc/logging.cnf
|
||||
$KEYSTONE_DIR/etc/logging.conf
|
||||
sed -i -e "/^log_file/s/log_file/\#log_file/" \
|
||||
$KEYSTONE_DIR/etc/keystone.conf
|
||||
KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.cnf"
|
||||
KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.conf"
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -1395,8 +1396,10 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
|
||||
" -i $KEYSTONE_DATA
|
||||
|
||||
# initialize keystone with default users/endpoints
|
||||
pushd $KEYSTONE_DIR
|
||||
$KEYSTONE_DIR/bin/keystone-manage db_sync
|
||||
ENABLED_SERVICES=$ENABLED_SERVICES BIN_DIR=$KEYSTONE_DIR/bin bash $KEYSTONE_DATA
|
||||
popd
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user