154 Commits

Author SHA1 Message Date
gholt
24a624345d Make swift-auth-to-swauth work with really old devauth dbs.
Update swauth to accept non-alnum chars in account and user names.
2011-02-17 21:57:04 +00:00
gholt
ff4691c5ad ring: pickles now use only stdlib objects; old and really old pickles can still be read 2011-02-17 20:54:05 +00:00
Clay Gerrard
97e218fd52 mermged upstream changes 2011-02-16 15:00:35 -06:00
Clay Gerrard
092608b1c9 added [options] to command usage 2011-02-16 14:47:31 -06: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
Clay Gerrard
6766bd371a wait is on by default 2011-02-15 10:48:22 -06:00
Clay Gerrard
1f78fae2fc more tests and cleanup 2011-02-12 14:50:24 -06:00
Clay Gerrard
bfae3625ef fixed license dates 2011-02-12 02:22:01 -06:00
Clay Gerrard
6554c16e0a merged trunk 2011-02-12 01:55:57 -06:00
gholt
da27b3b750 Make swift-auth-to-swauth work with really old devauth dbs; update swauth to accept non-alnum chars in account and user names. 2011-02-11 17:39:44 -08:00
Clay Gerrard
1095f27590 Prepare for trunk merge.
Refactored some of the swift_init classes into a new module in
swift.common, changed some names.  Removed the bin test stuff.  Fixed
some bugs, added some features.
2011-02-11 13:18:19 -06:00
Michael Barton
b2e0b926a4 Changes to support deployment on IPv6 2011-02-11 17:27:05 +00:00
gholt
88ae726f9b Merge from trunk 2011-02-10 14:29:08 -08:00
Clay Gerrard
5d0bc6b9c7 logging refactor to support proxy access logs
New log level "notice" set to python log level 25 maps to syslog priority
LOG_NOTICE.  Used for some messages in the proxy server, but will be available
to all apps using the LogAdapter returned from get_logger.  Cleaned up some
code in get_logger so that console logging works with log_routes and removed
some unneeded bits.  NamedFormatter functionality was split between LogAdapter
(which now inherits from logging.LoggerAdapter) and TxnFormatter (which now is
only responsible for adding the log records txn_id).

The proxy server app now configures a separate logger for access line logging.
By default it will use the same settings as the regular proxy logger.
2011-02-10 14:59:52 -06:00
Clay Gerrard
8193e517af slightly more consistant stats process log names
Also a quick fix to the auditor tests xattr mock
2011-02-10 11:57:51 -06:00
gholt
bb57e753b0 Fix drive-audit's default log_name 2011-02-10 00:01:07 -08:00
gholt
0a840504d4 Merge from trunk 2011-02-09 11:50:41 -08:00
Clay Gerrard
0f0e093972 fix st command help hangs
Before running the command function global the main func would start the
print and error queues.  Inside the command function the the option
parser would see the the help option, print the help text, and raise
SystemExit, which wasn't getting caught.
2011-02-04 20:58:31 -06:00
Michael Barton
c62842bfd1 update all ring-builder grammars 2011-02-03 19:50:16 +00:00
gholt
cb58430321 logging: use routes to separate logging configurations 2011-02-02 13:39:08 -08:00
Michael Barton
a4b6ae6e57 merge trunk 2011-01-29 03:00:01 +00:00
Jay Payne
c3c5e5a397 Commit out the both calls 2011-01-27 20:23:14 +00:00
David Goetz
3ea09dd0e6 merge to trunk 2011-01-26 14:38:13 -08:00
David Goetz
86cb12036b removing blank excepts 2011-01-26 14:31:33 -08:00
Chris Wedgwood
615d90b80d Show account names in output strings.
This helps when the output comes from concurrent workers doing the
checking as it's not strictly ordered.
2011-01-24 13:56:39 -08:00
Chris Wedgwood
e724580e60 Fixes to get audit to run cleanly over datasets where people have i18n strings (ie. bit 7 set utf-8 bytes) in container and object names.
Arguably these fixes aren't the most elegant or complete, but for now it suffices to get things working until we re-factor things later.


Also tweak output from  foo... to "foo" (so cut & paste works a little better).
2011-01-21 20:46:51 +00:00
Chris Wedgwood
4b4f07a039 Additional utf-8 encoding fixes to deal with containers. 2011-01-20 16:11:23 -08:00
Chris Wedgwood
92e3364622 Make sure we pass strings correctly to functions that will behave
badly otherwise (fix suggested by Chuck Thier).

Tweak account & container name output slightly (makes cut & paste
easier).
2011-01-20 14:57:06 -08:00
Clay Gerrard
37ca9e569a more tests, still slow going 2011-01-19 23:43:23 -06:00
gholt
9dd1e2ae84 Updates to remove _ usage that is not i18n related 2011-01-19 15:21:57 -08:00
Chris Wedgwood
8a5f21b3ac Fix output formatting (missing tuple).
Fix to be robust when container and object counts are None (this
happens if accounts can't be located).
2011-01-18 12:08:22 -08:00
Michael Barton
67de0c88f4 ipv6 support 2011-01-16 09:52:08 +00:00
Chris Wedgwood
e618dd567f Don't unnecessarily quote account, container or object values.
This fixed the problem where containers or objects with characters
that need quoting can't be audited because they aren't found.
2011-01-13 23:17:36 -08:00
gholt
01c5fec12e Merge from trunk 2011-01-07 16:39:08 -08:00
Clay Gerrard
ff0e62d914 reworked tnx logging 2011-01-07 21:17:29 +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
Clay Gerrard
6c1bf02a62 pep8 fo' realz 2011-01-05 09:32:19 -06:00
gholt
1665568458 Merge from trunk 2011-01-05 07:17:36 -08: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
Clay Gerrard
68a9acf9b8 pep8 2011-01-04 16:12:56 -06:00
Clay Gerrard
97028e0b9c fixed missing NamedLogger import in bin/swift-bench, refactored
LogAdapter.tnx_id so that it works with multiple calls to get_logger, fixed
common.middleware.catch_errors to only call get_logger if it needs too, renamed
x-cf-trans-id to x-swift-tnx-id
2011-01-04 16:00:01 -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
1e34f1afe8 Merge from trunk 2010-12-30 08:47:52 -08:00
gholt
57970bdeb5 Cleaned up the bins; patched the broken test (when run standalone) 2010-12-29 12:00:08 -08:00
Clay Gerrard
ef487c65ef good start on TestSwiftInitClass 2010-12-29 00:01:30 -06:00
gholt
a7edf44b16 Merge from trunk (i18n) 2010-12-22 12:33:06 -08:00
Michael Barton
f432269013 add gettext to all binaries 2010-12-22 17:18:30 +00:00
Michael Barton
8ad87f634c fix fancy txnid logging 2010-12-22 16:48:25 +00:00
gholt
e398717b73 Merge from trunk 2010-12-20 08:54:01 -08:00