Steps to replicate the issue (include links if applicable):
- install python3-keystoneauth1 and cumin
- run cumin '*' uptime
- suffer the consequences of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093157 without any backtrace to ease debugging
What happens?:
cumin fails with the error Caught AttributeError exception: type object 'GreenSocket' has no attribute 'sendmsg' without any explanation of *where* the error is coming from.
What should have happened instead?:
cumin should provide us a way to show a backtrace so we can figure out what the actual error is.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
found in 4.2.0 and 5.0.0
Other information (browser name/version, screenshots, etc.):
this happens on debian trixie.
i would suggest this patch in gerrit:
@@ -481,9 +481,16 @@ def main(argv=None):
stderr('Execution interrupted by Ctrl+c/SIGINT/Aborted')
exit_code = 98
except Exception as e: # pylint: disable=broad-except
+ exit_code = 99
stderr('Caught {name} exception: {msg}'.format(name=e.__class__.__name__, msg=e))
+ if args.trace:
+ logger.warning('starting debugger, type "c" and enter to continue')
+ import pdb
+ import traceback
+
+ traceback.print_exc()
+ pdb.post_mortem()
logger.exception('Failed to execute')
- exit_code = 99
return exit_codebut (a) the cumin contribution docs say we should open an issue here and (b) i don't remember how do actually send patches in gerrit (but i'll learn if i get a go here).