thiell/test — Issue #127: clush: improve signal and exception handling
Author: thiell
Created: 2012-03-03 16:34:11+00:00
State: open
Labels: Scripts

We should improve signal/exception handling in {{{clush}}} script, because in some rare cases, something like the following could happen when the user hits CTRL-C:
{{{
# clush -w inti[1-3] puppet-check
inti2: err: Could not retrieve catalog from remote server: (...)
inti2: notice: Using cached catalog
inti2: err: Could not retrieve catalog; skipping run
inti1: Killed by signal 2.
inti3: Killed by signal 2.
clush: inti1: exited with exit code 255
clush: inti3: exited with exit code 255
Traceback (most recent call last):
File "/usr/bin/clush", line 812, in ?
clush_main(sys.argv)
File "/usr/bin/clush", line 797, in clush_main
config.get_verbosity(), gather_print)
File "/usr/bin/clush", line 401, in ttyloop
except EOFError:
File "/usr/bin/clush", line 321, in signal_handler
raise UpdatePromptException()
__main__.UpdatePromptException
}}}