tried to make some of the error conditions a little better too. It has
some new features, but overall it's behavior is mostly compatible with
the old swift-init (input, return codes) - but if someone had some weird
greps on the output they're hozed.
swift-init --help is a good place to start
some highlights might be:
$swift-init start main --wait # wait for all "main" services to start,
printing any errors to console
$swift-init rest wait # same as above but for replicators, updaters & auditors
$swift-init stop object -c1 # kill the first object-server "node"
$swift-init object-server status # make sure it's dead - yay status!
$swift-init proxy auth reload # devauth? srsly?
$swift-init *-replicator once -n # run the object, container,
and account replicators in "once mode" and watch them log to console
until they're finished
... probably some other stuff too. Looking forward to feedback...
To make sure that node lookups match what the servers return the generated
hashes need to match. All the utils that use the ring should validate their
HASH_PATH_SUFFIX.
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.
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.