From 14a918844082585ae76f6fa9b16b9e9334584320 Mon Sep 17 00:00:00 2001 From: "Simental Magana, Marcos" Date: Wed, 27 Jan 2016 15:58:48 -0600 Subject: [PATCH] Improve debug messages for the Identity service (Keystone) setup Signed-off-by: Simental Magana, Marcos --- clearstack/modules/keystone.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clearstack/modules/keystone.py b/clearstack/modules/keystone.py index 931fe53..24cf07d 100644 --- a/clearstack/modules/keystone.py +++ b/clearstack/modules/keystone.py @@ -50,17 +50,18 @@ class Keystone(OpenStackService): "OS_IDENTITY_API_VERSION": "3"} def sync_database(self): - LOG.debug("syncing database") + LOG.debug("populating keystone database") util.run_command("su -s /bin/sh -c" " \"keystone-manage db_sync\" keystone") def create_project(self, project, description): - LOG.debug("setting up %s project" % project) try: """ test if project already exists """ + LOG.debug("checking if project '{0}' exists".format(project)) util.run_command("openstack project show %s" % project, environ=self._env) except: + LOG.debug("setting up project '{0}'".format(project)) util.run_command("openstack project create --domain default" " --description \"%s\" %s" % (description, project), environ=self._env)