Bump version to 2012.2.4

Change-Id: I9dab1dc62e41cdb4143a3c8083e65c4b13a22eb4
Avoid dangling partial image on size/checksum mismatch

Fixes bug 1122299

Previously, when the supplied image size or checksum didn't match
the calculated values, partial image image data was left dangling
in the backend store.

Now, we clean up when the mismatch is detected.

Change-Id: I916d78ef3b2065e87df31ec4fb405915417d68aa
Clean dangling image fragments in filesystem store

Fixes bug LP 1104924

Previously when a PUT or POST of image content was terminated
prematurely by the client, the partially saved image file was
left behind in the data directory.

Change-Id: Id601816735e4138cd7623dad4d90be67448292c8
Swallow UserWarning from glance-cache-manage

Fixes bug 1129445

Previously, we exposed internal technical debt as an apparent
user-facing warning.

Now the warning is swallowed in the internal case, but continues
to be seen by external users of this library.

Note that this fix is not relevant on master, as that the warning
no longer occurs in that case.

Change-Id: I30a835e0024acac8841b4746968abe7cae9e14cb
Wait in TestBinGlance.test_update_copying_from until image is active

Test randomly fails on slow machines, the updated image is still
in 'Status: saving' while 'Status: active' is expected. So loop around
the "glance show" command until the image leaves the 'saving' state
(bug 1107768).

Change-Id: I908069b35079dcc8ccd25acb3ebc74fe43f9d524
Fix broken JSON schemas in v2 tests

* The required attribute is not allowed in draft 4 of JSON schema
* The dependency on jsonschema can be relaxed back to all versions

Change-Id: Id0767cfe2fe46d73999563896f851ffb01aa9489
Prints list-cached dates in isoformat

Converts dates printed by list-cached to a human readable format
(isoformat). It now checks whether the image last_access time is == 0.0
and prints "Not Accessed Yet" if so.

* Updates openstack.common.timeutils
* Fixes bug 1102334

Change-Id: I6f60525d8419d45e6962b936a2661825b606cba2
Merge "Swallow UserWarning from glance-cache-manage" into stable/folsom
Merge "Avoid dangling partial image on size/checksum mismatch" into stable/folsom
Merge "Clean dangling image fragments in filesystem store" into stable/folsom
Merge "Wait in TestBinGlance.test_update_copying_from until image is active" into stable/folsom
Fixes deletion of invalid image member

This fixes the 500 error on deleting an invalid/non-member tenant of an image.

Fixes LP: #1060868

Change-Id: I5a2dc56690d7525127be1a8843004d075a3fe5bb
Do not return location in headers

In some cases credentials were being leaked when downloading a cached
v1 image.

Fixes bug 1135541, CVE-2013-1840

Change-Id: I3ec0a8f484fe1bdc32c3c56fce810fcef347a7f6
Ensure repeated member deletion fails with 404

Fixes bug 1157427

If an image membership is deleted more than once, the second and
subsequent deletions would be expected to return a 404 Not Found
response code, as opposed to 204 No Content.

Previously, the can_show_deleted logic got in the way, such that
for an admin caller the previously deleted membership was considered
still extant.

We now override the show_deleted logic for deletion, as it makes no
sense to consider the existence of previously deleted database rows
when another deletion request is issued.

Note that there is no corresponding proposal to master as this logic
has been refactored and this no longer affects master.

Change-Id: If8200bbb74e46c814c9f8fa6b4c636e7b022ab6c
Check if creds are present and not None

Currently, KeystoneStrategy checks whether the required credentials are
present in the creds dict but it doesn't check whether they are valid or
not.

This patch checks whether the required creds are present and not None
otherwise a MissingCredentials exception will be raised.

Note: No need for checking parameters' values types since they'll be
instances of basestring once set otherwise they'll be None.

Fixes bug 1157765

Change-Id: I664a604c3cbf2fca60a88c4d887cd9a4b678c8a5
Merge "Ensure repeated member deletion fails with 404" into stable/folsom
Merge remote-tracking branch 'upstream/stable/folsom' into folsom