Today oslo.messaging fails on localcontext.clear_local_context() with totally useless message which makes me guess how is that possible that following code succeeded on set_local_context() but failed on clear_local_context(). Remember that as a user I didn't choose to use eventlet executor (its a default values) and localcontext is used internally by oslo.messaging in that case:
All I am saying is that you can't break the flow on clear_local_context(), its a bad user experience. Clear must be safe operation, definitely it can't raise an AttributeError!
Mehdi,
Today oslo.messaging fails on localcontext. clear_local_ context( ) with totally useless message which makes me guess how is that possible that following code succeeded on set_local_context() but failed on clear_local_ context( ). Remember that as a user I didn't choose to use eventlet executor (its a default values) and localcontext is used internally by oslo.messaging in that case:
if hasattr(endpoint, method):
localcontext. set_local_ context( ctxt)
try:
return self._do_ dispatch( endpoint, method, ctxt, args)
finally:
localcont ext.clear_ local_context( )
All I am saying is that you can't break the flow on clear_local_ context( ), its a bad user experience. Clear must be safe operation, definitely it can't raise an AttributeError!