diff --git a/zun/api/controllers/v1/containers.py b/zun/api/controllers/v1/containers.py index 65b7bba0c..02aebf621 100644 --- a/zun/api/controllers/v1/containers.py +++ b/zun/api/controllers/v1/containers.py @@ -234,8 +234,8 @@ class ContainersController(base.Controller): compute_api = pecan.request.compute_api try: container = compute_api.container_show(context, container) - except exception.ContainerHostNotUp: - raise exception.ServerNotUsable + except exception.ContainerHostNotUp as e: + LOG.error("Failed to get container details: %s", str(e)) return view.format_container(context, pecan.request.host_url, container) diff --git a/zun/common/exception.py b/zun/common/exception.py index 5ce8efe38..847d92722 100644 --- a/zun/common/exception.py +++ b/zun/common/exception.py @@ -713,11 +713,6 @@ class ContainerActionEventNotFound(ZunException): message = _("Event %(event)s not found for action id %(action_id)s") -class ServerNotUsable(ZunException): - message = _("Zun server not usable") - code = 404 - - class OverQuota(ZunException): message = _("Quota exceeded for resources: %(overs)s") code = 403