Set defaultbranch in .gitreview to stable/folsom

This allows people run git-review without any arguments.

Change-Id: I2b2488ffffd783b64e5c760324e7d4a00d5a39db
Pass empty args to test config parser.

This fixes bug 1056420, which allows users to pass nosetests options
through run_tests.sh again.

Change-Id: I03e84488a24e2552b61aa0cab842d8325e8e856f
(cherry picked from commit ef641597dbfc0fcb856c143b213be493ab44cc65)
Add noseopts and replace noseargs where needed to run_test.sh

Add of noseopts to the run_tests script so users can be
able to run tests adding extra options to be passed to
nosetests.
This option is currently in keystone but not in glance.
Fixes bug 1065758

Change-Id: I7c78749adb90b126da5bd9580da6bfd7c9e1bf54
pin sqlalchemy to the 0.7.x series

sqlalchemy 0.8beta is now out and has internal changes
which mean it's not an in place seemless upgrade. This pins
sqlalchemy to the 0.7.x series to avoid those breaks.

Fixes bug #1073569

Change-Id: Ia8976843a7e0a132fe38e80f2bcb01a16e12b8de
Disallow updating deleted images.

1. Return a 403 Forbidden error when an admin user tries to update a deleted
image.
2. Also added unit test coverage.

Fixes LP: #1060930

Change-Id: I8290c8c9f1bcbbfbff7d54f141bdcfa1c40aab6f
Return HTTP 404 for deleted images in v2

For admin contexts, the db api will return deleted images. This patch
manually checks for deleted images in the v2 controller code to treat
these cases as if the images didn't exist.

Fixes bug 1071446

Change-Id: I33075f94e9d560a279085e2afd18c8052f57d60b
Pull in a versioning fix from openstack-common.

Fixes bug 1059634. Related to I6cff4ee7f6c1dc970397b66fd2d15fa22b0a63a3

(Cherry-picked from 68253587f0d5a5b5f0dde63dd6036c7977e4f3d6)

Change-Id: I4c8daa8bf4a57849bd8d1e512a388d982f79b7d5
FakeAuth not always admin

The FakeAuthMiddleware was defaulting to admin=True for request
contexts. This creates a situation where it is impossible to test
non-admin requests in some situations.

Change-Id: I949f708efed9f07a43b8506870c5b38fce4b3752
Delete from store after registry delete.

Because we rely on the registry to determine authorization in the glance
v1 api, we must attempt a registry delete before deleting an image from
the image store.

This patch includes the test for the bug, which was posted separately
on the bug.

Fixes bug 1065187.

Change-Id: I1a06b7c7421524066c684539e2f3516c4ed2c475
Ensure authorization before deleting from store

This fixes bug 1076506.

Change-Id: I3794c14fe523a9a27e943d73dd0248489d2b91f6
Merge "Pull in a versioning fix from openstack-common." into stable/folsom
Merge "Add noseopts and replace noseargs where needed to run_test.sh" into stable/folsom
Merge "Return HTTP 404 for deleted images in v2" into stable/folsom
Merge "Disallow updating deleted images." into stable/folsom
Return 403 when admin deletes a deleted image

1. Returned a 403 Forbidden error when an admin user tries to delete a deleted
image.
2. Added unit test coverage.

Fixes LP: #1060944

Change-Id: I1a5c4ca18e2e70d8a614b3132bfcea1f56c5f59c
Make cooperative reader always support read()

glance.common.utils.CooperativeReader provides eventlet-friendly
cooperation on top of backends that support either read() or __iter__().
However, in the case of backends that only support __iter__(), such as
images returned by store.get(...), read() is not defined. This patch
adds read() in all cases.

Fixes bug 1057322.

Change-Id: I67d9b3e4d93fbefd7eeaf7cfc947ab635fe09534
Ensure strings passed to librbd are not unicode

librbd rejects unicode by throwing an exception. If the location uri
was unicode, this would result in deletes failing. Convert all rbd
StoreLocation properties to ascii strings to avoid this problem.

Fixes bug #1075580
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>

Change-Id: I445902bb1b72b8c814585f1481e6bf9e758b4e07
(cherry picked from commit 3aea9320d20d0291c5b4b027a585370d8e658a95)
Merge "Ensure strings passed to librbd are not unicode" into stable/folsom
Bump next version to 2012.2.2

Change-Id: I3375a323b0c9fb3f9b6350b9a6163a08beb0f083
wsgi.Middleware forward-compatibility with webob 1.2b1 or later

Response.request is None by default
(http://docs.webob.org/en/latest/news.html#b1), but is used in the
CacheFilter WSGI middleware.

Backport of https://review.openstack.org/#/c/17794/

Change-Id: I28f5ca92fe517f4f56af934799db32650e079ba7