summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-09-15 18:10:04 -0700
committerSandy Walsh <sandy.walsh@rackspace.com>2011-09-15 18:10:04 -0700
commit41c642ce4abef72c79cb6443ce575d8398b1f452 (patch)
tree36617d88471f777eaeefa4e2aa791458cfeaeeb5
parent06c4eb3d8570e4f07a6c3012d2dc2ab907c460d8 (diff)
remove debugging
-rw-r--r--nova/api/openstack/servers.py3
-rw-r--r--nova/scheduler/api.py16
2 files changed, 5 insertions, 14 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py
index 80f367199..002535e34 100644
--- a/nova/api/openstack/servers.py
+++ b/nova/api/openstack/servers.py
@@ -60,12 +60,9 @@ def novaclient_exception_converter(f):
"""
def new_f(*args, **kwargs):
try:
- LOG.debug("**** NOVACLIENT EXCEPTION CONVERTER >>>>")
ret = f(*args, **kwargs)
- LOG.debug("**** NOVACLIENT EXCEPTION CONVERTER <<<<")
return ret
except novaclient_exceptions.ClientException, e:
- LOG.debug("**** NOVACLIENT EXCEPTION CONVERTER- RERAISING")
raise ConvertedException(e.code, e.message, e.details)
return new_f
diff --git a/nova/scheduler/api.py b/nova/scheduler/api.py
index 2bf60cc70..7d711aa42 100644
--- a/nova/scheduler/api.py
+++ b/nova/scheduler/api.py
@@ -182,10 +182,8 @@ def child_zone_helper(context, zone_list, func):
else:
try:
answer = func(nova, zone)
- LOG.debug("***** GOT %s FROM CHILD" % answer)
return answer
except Exception, e:
- LOG.debug("***** GOT EXCEPTION %s FROM CHILD" % e)
return e
green_pool = greenpool.GreenPool()
@@ -323,7 +321,6 @@ class reroute_compute(object):
self.replace_uuid_with_id(args, kwargs, item_id)
if attempt_reroute:
- LOG.debug("***** REROUTING TO ASK CHILDREN")
return self._route_to_child_zones(context, collection,
item_uuid)
else:
@@ -369,7 +366,6 @@ class reroute_compute(object):
reduced_response = []
found_exception = None
for zone_response in zone_responses:
- LOG.debug("****** ZONE RESPONSE %s" % zone_response)
if not zone_response:
continue
if isinstance(zone_response, BaseException):
@@ -391,24 +387,22 @@ class reroute_compute(object):
if reduced_response:
return reduced_response[0] # first for now.
elif found_exception:
- LOG.debug("****** FOUND EXCEPTION %s" % found_exception)
return found_exception
- LOG.debug("****** COULD NOT FIND INSTANCE")
- #return exception.InstanceNotFound(instance_id=self.item_uuid)
+
+ # Some operations, like delete(), don't send back any results
+ # on success. We'll do the same.
return None
def redirect_handler(f):
def new_f(*args, **kwargs):
try:
- LOG.debug("****** REDIRECT HANDLER >>>>")
ret = f(*args, **kwargs)
- LOG.debug("****** REDIRECT HANDLER <<<<")
return ret
except RedirectResult, e:
- LOG.debug("****** REDIRECT HANDLER %s" % e.results.__class__)
+ # Remember: exceptions are returned, not thrown, in the decorator.
+ # At this point it's safe to throw it.
if isinstance(e.results, BaseException):
- LOG.debug("****** REDIRECT HANDLER - RAISING %s" % e.results.__class__)
raise e.results
return e.results
return new_f