Browse code

logging tweaks for devstack/keystone and cd for keystone db_sync

Joe Heck authored on 2012/01/19 03:19:15
Showing 1 changed files
... ...
@@ -1362,11 +1362,12 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
1362 1362
 
1363 1363
 
1364 1364
     if [ "$SYSLOG" != "False" ]; then
1365
+        cp $KEYSTONE_DIR/etc/logging.conf.sample $KEYSTONE_DIR/etc/logging.conf
1365 1366
         sed -i -e '/^handlers=devel$/s/=devel/=production/' \
1366
-            $KEYSTONE_DIR/etc/logging.cnf
1367
+            $KEYSTONE_DIR/etc/logging.conf
1367 1368
         sed -i -e "/^log_file/s/log_file/\#log_file/" \
1368 1369
             $KEYSTONE_DIR/etc/keystone.conf
1369
-        KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.cnf"
1370
+        KEYSTONE_LOG_CONFIG="--log-config $KEYSTONE_DIR/etc/logging.conf"
1370 1371
     fi
1371 1372
 fi
1372 1373
 
... ...
@@ -1395,8 +1396,10 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
1395 1395
     " -i $KEYSTONE_DATA
1396 1396
 
1397 1397
     # initialize keystone with default users/endpoints
1398
+    pushd $KEYSTONE_DIR
1398 1399
     $KEYSTONE_DIR/bin/keystone-manage db_sync
1399 1400
     ENABLED_SERVICES=$ENABLED_SERVICES BIN_DIR=$KEYSTONE_DIR/bin bash $KEYSTONE_DATA
1401
+    popd
1400 1402
 fi
1401 1403
 
1402 1404