Merge lp:~javier.collado/utah/bug1160247 into lp:utah
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Max Brustkern | ||||
Approved revision: | 856 | ||||
Merged at revision: | 853 | ||||
Proposed branch: | lp:~javier.collado/utah/bug1160247 | ||||
Merge into: | lp:utah | ||||
Diff against target: |
127 lines (+14/-10) 8 files modified
debian/changelog (+1/-0) examples/run_install_test.py (+1/-1) examples/run_test_bamboo_feeder.py (+1/-1) examples/run_test_cobbler.py (+1/-1) examples/run_test_vm.py (+1/-1) examples/run_utah_tests.py (+1/-1) utah/cleanup.py (+1/-1) utah/run.py (+7/-4) |
||||
To merge this branch: | bzr merge lp:~javier.collado/utah/bug1160247 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Approve | ||
Andy Doan (community) | Approve | ||
Review via email:
|
Description of the change
I haven't been able to reproduce the problem, but I've seen that the SIGTERM
handler was raising a UTAHException and that there are lots of places in which
`UTAHException`s might be caught. Hence, the handler has been updated to call
`sys.exit` which raises `SystemExit`.
In addition to this, to make sure that `SystemExit` isn't caught anywhere in
the code, the catch all except clauses like this:
except:
have been replaced with:
except Exception:
this ensures that all exception except `SystemExit` are caught, that is, when
SIGTERM is received the server process exits as soon as possible running any
cleanup code in the `finally` clauses that might be around.
Looks good to me.