From 708a2ad10d1cab4a928b38c7455e0b853faae73e Mon Sep 17 00:00:00 2001 From: Joe Heck Date: Wed, 18 Jan 2012 10:19:15 -0800 Subject: [PATCH] logging tweaks for devstack/keystone and cd for keystone db_sync --- stack.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stack.sh b/stack.sh index c7eb2aa2c4..33665e21d7 100755 --- a/stack.sh +++ b/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