Comment 1 for bug 1167668

Revision history for this message
Tal Kain (talkain) wrote :

Hey,

I had the same issue and I just found out how to fix it.

First:
afc29fe5f210a8e78bafaafe7e8b3b5de733971c "Deprecate DATABASE_TYPE and use_database" - changed the way devstack configures the database you use. If you look at the current "ENABLED_SERVICES" you will see "mysql" is configured in it. When you re-configured it as http://devstack.org/guides/multinode-lab.html suggest, you will disable the compute node's database.
So just add mysql to the end of your ENABLED_SERVICES line.

Second:
As far as I can see 7e79d9139f931e45f732de9a39cc54bedd95bd6f's changes created a bug.

This patch fixes it:

From 4a9eb2582d704f5f4ebb6532eb0436285d3de0fe Mon Sep 17 00:00:00 2001
From: Tal Kain <email address hidden>
Date: Mon, 22 Apr 2013 17:50:27 +0300
Subject: [PATCH] lib/database: Fixed a bug in database_connection_url that
 was created by d95bd6f's changes

7e79d9139f931e45f732de9a39cc54bedd95bd6f's changes simplified the usage of database_connection_url_mysql and database_connection_url_postgresql without making the proper changes to database_connection_url.

Signed-off-by: Tal Kain <email address hidden>
---
 lib/database | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/database b/lib/database
index e63d5e2..08e360f 100644
--- a/lib/database
+++ b/lib/database
@@ -110,13 +110,11 @@ function configure_database {
     configure_database_$DATABASE_TYPE
 }

-# Generate an SQLAlchemy connection URL and store it in a variable
-# $1 The variable name in which to store the connection URL
-# $2 The name of the database
+# Generate an SQLAlchemy connection URL and output it using echo
+# $1 The name of the database
 function database_connection_url {
- local var=$1
- local db=$2
- database_connection_url_$DATABASE_TYPE $var $db
+ local db=$1
+ database_connection_url_$DATABASE_TYPE $db
 }

--
1.7.9.5

Good luck!
Tal Kain.