2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 01:53:28 +00:00

Isolate individual node errors in ipmi plugin

If an individual node experiences an unexpected error,
isolate the fallout to that specific node.
This commit is contained in:
Jarrod Johnson 2019-05-13 13:35:03 -04:00
parent 2b86c878a8
commit 0168e46f24

View File

@ -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')