17 Commits

Author SHA1 Message Date
Mark Gius
2f50a0798e Add more specific error messages to swift-ring-builder
Replace existing Exceptions in ring builder with more specific exceptions.
Abstracted out some behavior in ring-builder that is likely to cause an
exception. Add try/except blocks to swift-ring-builder to catch specific
exceptions and provide the user with some information about how to deal
with the error.

This change begins to address blueprint friendly-error-messages

Change-Id: I8fc9cfa4899421fe04bba23ac52523778e902321
2011-09-27 10:20:51 -07:00
Mark Gius
1ad31af887 Changes swift-ring-builder exit codes
swift-ring-builder will now return zero for successful operations and
non-zero for operations that have errored or need attention.

Fixes bug 836922

Change-Id: I8d18a49fcf239f7cc7bfe4cdb468ac849436122e
2011-09-20 14:53:53 -07:00
gholt
2d3f409190 swift-ring-builder: Updated help for list_parts 2011-05-18 15:11:08 +00:00
gholt
a062abd593 PEP8 fix 2011-05-12 01:07:57 +00:00
gholt
97ba935ec3 Added list_parts command to swift-ring-builder which lists common partitions for a list of devices. 2011-05-12 01:01:38 +00:00
gholt
fc6391ea5c ring: pickles now use only stdlib objects; old and really old pickles can still be read 2011-02-15 18:43:55 -08:00
Michael Barton
c62842bfd1 update all ring-builder grammars 2011-02-03 19:50:16 +00:00
Michael Barton
67de0c88f4 ipv6 support 2011-01-16 09:52:08 +00:00
Russ Nelson
954dcf7c99 At least in theory, the code is not functionally different. It's just physically restructured internally so that the help strings are now docstrings within each command/function. There are other improvements possible, such as including test code in the docstring. I love Python! 2011-01-07 17:07:34 +00:00
Anne Gentle
8823427161 Changed copyright notices on py files and the single rst file with a copyright notice 2011-01-04 17:34:43 -06:00
gholt
68cc8fba9d Fix a couple bugs; rework the rework a bit more; PEP8 2011-01-04 12:04:18 -08:00
Russ Nelson
c97e7b6054 Refactor the command and help structure so it uses Python's docstrings. Also put the commands into a
class so they can be listed and their docstrings automatically printed.
2010-12-31 12:34:22 -05:00
gholt
57970bdeb5 Cleaned up the bins; patched the broken test (when run standalone) 2010-12-29 12:00:08 -08:00
Michael Barton
f432269013 add gettext to all binaries 2010-12-22 17:18:30 +00:00
Caleb Tennis
db90da2763 Remove the exception from the unit test, since we don't bomb out anymore. Also, add a warning to swift-ring-builder if you're building an empty ring, or do a write_ring and you aren't rebalanced 2010-08-21 18:21:59 +00:00
Cory Wright
f2b694b7ab Fixed a few typos in the deployment guide (s/ring_builder/ring-builder/g) 2010-08-13 11:19:43 -04:00
Monty Taylor
76e6c6ea6c Renamed bin files in the tree so that setup.py install does the same thing
as a deb install.
2010-07-14 09:58:38 -05:00