Improve debug messages for the Identity service (Keystone) setup

Signed-off-by: Simental Magana, Marcos <marcos.simental.magana@intel.com>
This commit is contained in:
Simental Magana, Marcos
2016-01-29 16:32:09 -06:00
parent 9c042befc1
commit 14a9188440
+3 -2
View File
@@ -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)