replace a value set with utils.TRUE_VALUES

replace a value set with utils.TRUE_VALUES, and fix some pep8 issues

Change-Id: If4db41d0d538afddee0d78449d229ce319c5efba
Only set TCP_KEEPIDLE where supported

Resolves an issue preventing Swift from starting on BSD-based platforms
that do not have this TCP flag (FreeBSD, OSX/Darwin, OpenBSD); identical
to Glance bug 879195, change I2f062a34, Glance commit efcdac36
(originally reported and patched by Brian Waldon).

Change-Id: Ifd696fe1080464d060e608c075ad0c113baab5ab
Gracefully handle stdin flush failure on BSD

Catches an IOError that is thrown when starting Swift on BSD-based
platforms, as the underlying system call to flush returns errno 9 (bad
file descriptor), whereas on Linux it succeeds.

Change-Id: Ic143d2fe6c3e1e0b39794958b40b0f5efdc17c06
Merge ../swift-0
Merge "Gracefully handle stdin flush failure on BSD"
Restore old SIGPIPE handler in a proxy server test.

I think not doing this was setting the SIGPIPE handler to signal.SIG_DFL
instead of the Python default of signal.SIG_IGN.  This could cause other
tests which make a client stop reading before all data "chunks" are read
to fail harder than they should (i.e. the SIGPIPE there is benign and
even expected--the other side of the socket really did get closed
early).

Change-Id: I946a1913714a34ec677b701a2b5724bc8b715f70
Fixed leak on 499s

This fixes an issue where Request objects (and related objects) were
not getting garbage collected when a 499 (client disconnect) occurred
for responses that still would have had more than the proxy server's
client chunk size left to send.

Fixed bug #1055834

Change-Id: Ib7b5fffe970dcdec60b90a9bdcd67c49b68fb914
updated with 1.7.5 version bump and changelog update

Change-Id: I04be779539b2bff76e2f614f50ddba2592fe4a36
Merge "replace a value set with utils.TRUE_VALUES"
base controller GETorHEAD refactor

simplify, reduce the amount of code

Change-Id: I443a43030291f35a0b283cdd036cb09ec2ef9444
Fix errors with fdatasync on BSD platforms

Abstracts fdatasync/fsync/fcntl into an FsyncWrapper to determine, the
first time it is used, which fsync-like call is supported on the host
platform:

 - Linux: use fdatasync(fd) as Swift already does today.
 - Darwin: use fcntl(fd, F_FULLFSYNC), since Darwin provides the
   F_FULLFSYNC flag when you wish to fsync data you care about, ensuring
   that it is written to disk and not simply a buffer.
 - BSD/Other: use fsync for non-Darwin BSDs and as a fallback for other
   platforms.

Change-Id: Ibcfdeef7843b2f10cf8a17a6b989038ea2364376
allow replicator run_once to check specific devices/partitions

Change-Id: If45f77fda269ae6e251579542e70eb71bd11fe2a
Merge "Fix errors with fdatasync on BSD platforms"
Merge "allow replicator run_once to check specific devices/partitions"
local WSGI Request and Response classes

This change replaces WebOb with a mostly compatible local library,
swift.common.swob.  Subtle changes to WebOb's API over the years have been a
huge headache.  Swift doesn't even run on the current version.

There are a few incompatibilities to simplify the implementation/interface:
 * It only implements the header properties we use.  More can be easily added.
 * Casts header values to str on assignment.
 * Response classes ("HTTPNotFound") are no longer subclasses, but partials
   on Response, so things like isinstance no longer work on them.
 * Unlike newer webob versions, will never return unicode objects.

Change-Id: I76617a0903ee2286b25a821b3c935c86ff95233f
Allow underscores in account/user in tempauth via encoding.

This patch introduces a new user format to tempauth which starts with
"user64_" and in which the account and user are base64 encoded (sans
padding equal signs):

user64_<account_b64>_<user_b64> = <key> [group] [group] [...] [storage_url]

This allows unambiguous parsing and adds the ability to have a user or
account name containing underscores.

The handling of tempauth configuration is fully backward compatible and
this only adds new, optional functionality.

Also beefed up unit tests to get full coverage of the user parsing code
in tempauth's __init__().

Change-Id: Id06304934ab8055a28921f2e1aa3c58a2036d8f8
catch no such file in hash_suffix

Change-Id: I70ee55d12b1ca91fdfe4891c3f82ab0f832f15d3
Merge "catch no such file in hash_suffix"
Merge "Allow underscores in account/user in tempauth via encoding."
Warn when killing fails with EPERM

Have swift-init warn when the running user doesn't have permissions to
signal processes.  Fixes bug 1017494.

Change-Id: Icb9048ab36f1ca73bb93b11c9c2aed882d99dfa7