swift/bin
Matthew Vernon 89ee843080 swift-ring-builder: exit ERROR (2) on uncaught exceptions
swift-ring-builder has three exit statuses: 0 (OK), 1 (WARNING),
2 (ERROR). Uncaught exceptions in python result in an exit code of 1,
so for example problems writing a builder file to disk will result in
an exit of 1 (warning) rather than 2 (error).

This addresses that by overriding sys.excepthook to produce the usual
backtrace and then exit 2 (error); excepthook is called when an
exception is unhandled, unless that is SystemExit.

Closes-Bug: 1960657
Change-Id: I7cfeff4f436ade319cf21d0d29853931aef6d20f
2022-02-15 14:29:14 +00:00
..
swift-account-audit swift-account-audit: Log the bad status 2021-04-08 17:34:49 -07:00
swift-account-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-info Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-account-reaper Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-replicator Support -d <devs> and -p <partitions> in DB replicators. 2018-03-05 16:26:19 -08:00
swift-account-server make the bind_port config setting required 2014-09-08 07:28:43 -07:00
swift-config Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-container-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-container-info Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-container-reconciler Add container-reconciler daemon 2014-06-18 17:31:39 -07:00
swift-container-replicator Support -d <devs> and -p <partitions> in DB replicators. 2018-03-05 16:26:19 -08:00
swift-container-server make the bind_port config setting required 2014-09-08 07:28:43 -07:00
swift-container-sharder Populate shrinking shards with shard ranges learnt from root 2020-12-18 11:33:48 +00:00
swift-container-sync Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-container-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-dispersion-populate py3: Fix swift-dispersion-populate 2020-09-11 19:35:32 +00:00
swift-dispersion-report Add bin/swift-dispersion-report 2017-09-13 05:57:30 +00:00
swift-drive-audit Adjust initial month value from int to str 2021-01-23 05:31:33 +00:00
swift-form-signature Make swift-form-signature testable 2014-07-24 14:38:53 -07:00
swift-get-nodes swift-get-nodes: Allow users to specify either quoted or unquoted paths 2020-06-08 12:03:56 -07:00
swift-init Merge "Add description of server options (all, main, rest) for swift-init help" 2016-07-08 23:31:20 +00:00
swift-object-auditor Allow specification of object devices for audit 2014-03-11 14:17:08 +00:00
swift-object-expirer Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-info Merge "Optionally drop common prefixes in swift-*-info output" 2018-03-13 03:39:02 +00:00
swift-object-reconstructor Clarify usage of replicator and reconstructor override options 2017-07-26 12:53:46 +01:00
swift-object-relinker relinker: Pull arg parsing into module 2021-02-08 13:46:28 -08:00
swift-object-replicator Clarify usage of replicator and reconstructor override options 2017-07-26 12:53:46 +01:00
swift-object-server make the bind_port config setting required 2014-09-08 07:28:43 -07:00
swift-object-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-oldies Run flake8 on bin/ files 2021-02-01 13:26:53 -08:00
swift-orphans Find .d pid files with swift-orphans 2019-08-30 11:54:47 -07:00
swift-proxy-server make the bind_port config setting required 2014-09-08 07:28:43 -07:00
swift-recon Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-recon-cron recon: refactor common recon names into a common location 2021-06-29 15:22:57 -07:00
swift-reconciler-enqueue Another amendment with missing parenthesis 2016-07-07 20:15:14 +03:00
swift-ring-builder swift-ring-builder: exit ERROR (2) on uncaught exceptions 2022-02-15 14:29:14 +00:00
swift-ring-builder-analyzer Fix shebang of commands 2015-08-06 11:02:40 +09:00
swift-ring-composer Experimental swift-ring-composer CLI to build composite rings 2018-06-14 09:50:55 +01:00