From 23d8ed14819a5aa44026141415e3832a3397c9eb Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 17 Feb 2012 15:03:57 -0800 Subject: [PATCH] More logging around image creation token fetching (for debug). --- devstack/image/creator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devstack/image/creator.py b/devstack/image/creator.py index f3703f39..54c027c0 100644 --- a/devstack/image/creator.py +++ b/devstack/image/creator.py @@ -247,6 +247,7 @@ class ImageCreationService: # make the request LOG.info("Getting your token from url [%s], please wait..." % (keystone_token_url)) + LOG.debug("With post json data %s" % (data)) response = urllib2.urlopen(request) token = json.loads(response.read()) @@ -257,7 +258,10 @@ class ImageCreationService: msg = "Response from url [%s] did not match expected json format." % (keystone_token_url) raise IOError(msg) - return token['access']['token']['id'] + #basic checks passed, extract it! + tok = token['access']['token']['id'] + LOG.debug("Got token %s" % (tok)) + return tok def install(self): urls = list()