Pin SQLAlchemy to 0.7.x

0.7.10 has been released and is compatible with 0.7.x. Instead
of pinning to 0.7.9, simply pin to 0.7.x to avoid SQLAlchemy 0.8

Also sync the 0.7.x requirements to 0.7.8 (to be in sync with other
OpenStack core components)

Fixes: Bug #1153983

Change-Id: I6f47e7d27fcf0c7271bb2c91a4615ef0bb5e2643
fixes use the fact that empty sequences are false

fixed bug #1133094

Change-Id: Ie0514be1cb0ed6741f96334f7457da331f0eebc9
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
Return 413 when image_size_cap exceeded

HTTP Error 413 (Request entity too large) may be the most appropriate
response when a request to upload an image whose size exceeds
image_size_cap is made.

Addresses bug 1158711.

Change-Id: I4abcb3a8b57c080b5a1b512f9694b2d75a4e5e9d
Add image_size_cap documentation

Add documentation for the 'image_size_cap' parameter.

Addresses bug 1158723.

Change-Id: If6d28a3837dc875b7c8e3e18dd5058eb07b40638
Add tests for image visibility filter in db

Some aspects of visibility filtering in the db api were not being
tested. This patch adds tests to ensure visibility=public|private is
working properly.

Change-Id: I67a4b8e33fab6f4f8f1ed4b05b2b8cac10153105
Fix domain database initialization

To fix bug 1089916, calls to db_api.configure_db() were changed to
setup_db_env(). However, the gateway domain initialization didn't get
the memo. This patch makes sure setup_db_env() is called in all the
relevant places.

Fixes bug 1131705.

Change-Id: Ieec141192b8a5a045dadba6d70abaa25748b85b2
Reformat openstack-common.conf

Use the new 'module' option in openstack-common.conf which is a
multi-string option, allowing each module name to be placed on a
separate line.

This makes it much easier to review changes to the modules list.

Change-Id: I218601a3720287071f05b9f2f624c1de4442d34f
Directly verifying that time and socket are monkey patched

This tests makes sure that thew wsgi object properly monkey patched
two needed modules, socket and time.  In bug 988099 it was noted that
the time module was not being monkey patched.  A test was added that
unfortunately introduced a bug and a patch to revert it is here:
https://review.openstack.org/#/c/25107/ in order to fix bug 1158247.
This patch allows for test_server_monkey_patch.py to be removed
without losing the verification of that functionality.

Fixes bug 1158247
Change-Id: I8da6b04d0cc0dae00ba52e5b7350a5e01a76cadb
Merge "Add tests for image visibility filter in db"
Standardize on newer except syntax

We currently have a mix of 'except X, y:' and 'except X as y:' syntax.
Standardize on the newer 'except as' form.

This patch was generated automatically using:

find * -type f -name 'glance-*' ! -name '*\.conf' ! -name '*\.ini' -o \
 -name '*\.py' | xargs 2to3 -f except | patch -p0

Addresses bug 1160331.

Change-Id: Ica8d1303973af64d0406457267ee75f608e869d0
Merge "Reformat openstack-common.conf"
Merge "Standardize on newer except syntax"
Fallback to inferring image_members unique constraint name

Fixes bug 1160114

The initial version of the 022_image_member_index migration
hardcoded the default naming convention for unqiue constraints
used by PostgreSQL 9.2, which turns out to different to the
convention used by PostgreSQL 8.4. This causes the CI to fail
(non-voting) against RHEL.

We resolve the issue by falling back to inferring the existing
unique constraint name from the image_members indices.

Change-Id: Iad6db033e63cdfd7a77db44bdeaed2284699b469
Merge "fixes use the fact that empty sequences are false"
Merge "Directly verifying that time and socket are monkey patched"
Merge "Fix domain database initialization"
Merge "Fallback to inferring image_members unique constraint name"
Merge "Add image_size_cap documentation"
Merge "Return 413 when image_size_cap exceeded"