From 1577663f4a7d50542e1c729a3f975af627f6c47b Mon Sep 17 00:00:00 2001 From: Anand Shanmugam Date: Sat, 14 Mar 2015 19:24:10 +0530 Subject: [PATCH] Fix Traceback exceptions in g-api and g-reg The log_context format specified in glance-api and glance-reistry are causing tracebacks. This fix changes the project_id and user_id to tenant and user which are supported in oslo-context. This is the format used by other projects Change-Id: Ifbf268e9765039a0085c9af930dabf8a5cc681b8 Closes-Bug: #1431784 --- lib/glance | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/glance b/lib/glance index eb1df2e8ae..26d7960143 100755 --- a/lib/glance +++ b/lib/glance @@ -185,8 +185,8 @@ function configure_glance { # Format logging if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then - setup_colorized_logging $GLANCE_API_CONF DEFAULT "project_id" "user_id" - setup_colorized_logging $GLANCE_REGISTRY_CONF DEFAULT "project_id" "user_id" + setup_colorized_logging $GLANCE_API_CONF DEFAULT tenant user + setup_colorized_logging $GLANCE_REGISTRY_CONF DEFAULT tenant user fi cp -p $GLANCE_DIR/etc/glance-registry-paste.ini $GLANCE_REGISTRY_PASTE_INI