Add delay in swift-bench

With enable write affinity, it's necessary to wait until
replication has moved things to their proper homes before
running delete request. With write affinity turned on, only
nodes in local region will get the object right after PUT request.

Fix bug #1198926

Change-Id: I3aa8933d45c47a010ae05561e12176479e7c9bcc
remove unused reference to resellers_conf

Change-Id: I956f25f44b20f65c72beddb2cd49225bdecc8430
Refactor DiskFile init logic into multiple methods

The DiskFile constructor needs to grow a bit in the future it is was
already considered "large" by some. This breaks the logic up into
three main parts:

  1. Determine if the object exists, fetching the on-disk file(s) to
     use
  2. Finish the object construction when we have a tombstone file
  3. Finish the object construction when we have a regular data file,
     and optionally a fast-POST metadata file

We added a number of assertions as a way of documenting the expected
behavior of the loop that figures out the on-disk file to use, and a
set of unit tests to verify the loop works as expected.

Change-Id: I1503b7561e280ded3222a09514edc59ac26dbc65
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Merge "Add delay in swift-bench"
Merge "remove unused reference to resellers_conf"
Merge "Refactor DiskFile init logic into multiple methods"
Defer computation of available methods until needed.

In practice this data is almost only ever needed if we're throwing an
HTTPMethodNotAllowed error, so we can avoid computing on every single
request to the proxy server.

Change-Id: I2abafa3aeb63ca6974dfcf6f31c864c049681f37
Small test cleanups from b63089d.

There was nothing there worth holding up the review over, but there
were a couple little things in the test that confused me.

Change-Id: I85c9c1bdb12de210c198d0d38404a1cf9f73adbb
Only set PYTHON_EGG_CACHE if it isn't already set

Change-Id: I6503c80a236a1720562377d04313ee2688336c85
Fix changes in XML that broke old clients

Certain old clients that shall not be named do not like some of the
recent changes to the xml output for container listings.  This fixes
those changes.  If we want to change any of the xml output, then we
should do it in another API version.  I'm not sure if any of these
changes in the XML were put in any documentation, but if they were, they
should be changed back.

DocImpact

Change-Id: I983332ca9d620a9a539be26bc6655df9b2ef87ed
Two small performance improvements to header generation

These both apply to the proxy servers:

First, instead of consturction a dict just to use with `.update()` simply set a
set of keys in the headers dict.

Second, generating the headers for proxy requests once, no matter how many
backend servers are accessed (instead of once per backend server), they all get
the same headers.

Change-Id: Ib42bf7750e175a6ad9b777fa35655380feeafb93
Merge "Small test cleanups from b63089d."
Merge "Two small performance improvements to header generation"
Allow users to extract tars to containers with ACLs set

This fixes bug: https://bugs.launchpad.net/swift/+bug/1203182 (well
it should :) I don't have keystone installed but the same issue
existed with tempauth).

Change-Id: I6f4045f484b27c0153a9244e0dbf2641cbc9e84e
Fix string format error in DiskFile close

Add a 'get_lines_for_level' method to FakeLogger in order to actually
validate the log line format string is valid for the given args.

Change-Id: Ib2559ddf5c9d89e17c6ac08d26cc46a4193a2df2
Always format messages sent to FakeLogger

Change-Id: I0268587cce0d47b69470b7c4f9224e180fb98f77
Pep8 the probe tests (1 of 12)

Change-Id: I20571816d9838e125a60a2775219b2f3cbb36ddd
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Pep8 the functional tests (2 of 12)

Change-Id: Id8a9ae0c82052baccf8bdacd6aaeb76a76ad2ce1
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Pep8 the functionalnosetests tests (3 of 12)

Change-Id: Ia88356d6d36d1c4914f706652aaac5c840a79f13
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Pep8 unit test modules for hacking and one liners (4 of 12)

Address all the "hacking" lines that are flagged, and all the modules
that just have one item flagged.

Change-Id: I372a4bdf9c7748f73e38c4fd55e5954f1afade5b
Signed-off-by: Peter Portante <peter.portante@redhat.com>