diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index 8d0e610d..d18fb651 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -36,6 +36,8 @@ console = eventlet.import_patched('pyghmi.ipmi.console') ipmicommand = eventlet.import_patched('pyghmi.ipmi.command') import socket import ssl +import traceback + if not hasattr(ssl, 'SSLEOFError'): ssl.SSLEOFError = None @@ -229,7 +231,6 @@ def _ipmi_evtloop(): waiter = _ipmiwaiters.pop() waiter.send() except: # TODO(jbjohnso): log the trace into the log - import traceback traceback.print_exc() @@ -431,8 +432,8 @@ def perform_request(operator, node, element, except pygexc.InvalidParameterValue as e: results.put(msg.ConfluentNodeError(node, str(e))) except Exception as e: - results.put(e) - raise + results.put(msg.ConfluentNodeError(node, 'Unexpected Error')) + traceback.print_exc() finally: results.put('Done')