Use ServiceCatalog.factory, the object has no __init__

Fixes LP bug #1199281

Change-Id: Iba4b3fd8ad2e6fe054ed705d8990c13dc5a13430
Raise key length defaults

Extend RSA keylength to 2048 bits by default,
as the previous default of 1024 bit is considered
weak since 12/31/2010.

Also unify the message_md to the openssl builtin
default.

Fixes bug 1103002

Change-Id: I619fc32b62beab4458ee6f21bf8dc7499fe400d7
Merge " Cleanup docstrings " from keystone/common/cms.py

In an attempt to unify both implementations in order to
be able to remove one of the duplicated ones, merge the
changes from this commit in keystone:

    Author: Dolph Mathews <dolph.mathews@gmail.com>
    Date:   Fri May 24 11:36:44 2013 -0500

    Cleanup docstrings (flake8 H401, H402, H403, H404)

Change-Id: Ib23c9ab5066cfdcdda4e07cd30fa8f6ff47949bd
Update openstack-common.conf format

Change-Id: I78528bf7055b6975a642e1f2f3264e94f5a4885b
rm improper assert syntax

assert only raise AssertionError when runing python without '-O', so if
we except an Assertionerror in codes, just raise it instead of using
assert syntax instead of different result with or without '-O' flag

Change-Id: I8c1bc2c6849996f0d3f7a4b791671871d79dd939
Add discover to test-requirements.

Apparently this was always supposed to be required for py26 tests with
testresources however only recently does a newer version actually fail
without it.

Change-Id: I9c7bc83d75a964152ad5772554f9693706a2a2d4
Merge "Update openstack-common.conf format"
Merge "Merge " Cleanup docstrings " from keystone/common/cms.py"
Merge "Raise key length defaults"
Merge "Use ServiceCatalog.factory, the object has no __init__"
Client V3 shouldn't inherit V2

Client V3 is a completely different implementation of the API, if we
want to intermix the V2 and V3 APIs then we don't need to version our
client at all.

Change-Id: I80579cd41df73ccfc6c8feb76843772829afac4e
no logging on cms failure

Don't log in the keystoneclient.common.cms as there are some errors
that are expected.  Instead, log in the middleware

bug 1189539

Change-Id: I1e80e2ab35e073d9b8d25fd16b31c64c34cd001d
Drop webob from auth_token.py

This came up as a packaging problem in Fedora. Now that Swift does
not need python-webob RPM, some sites install a proxy node without.
We add the proper webob dependency to the python-keystoneclient.
Still, in the face of parallel installs, and we end patching
setup.py and diverge from upstream, and we do not like it.

It may be better just stick to WSGI protocol by small amount of
hand-rolled code and drop WebOb altogether.

Note that we keep WebOb in the testing code. The fix is purely
about the stuff that runs inside a WSGI server. Therefore,
requirements.txt continues having no WebOb (apparently, was
forgotten before), but test-requirements.txt keeps WebOb in,
and this patch changes nothing.

Initial version of this patch produced an inexplicable drop in
testing coverage and Chmouel put his foot down on it. We were
unable to figure out why the drop happened. Most likely coverage
simply lied about the previous percentages and getting rid of
import webob permitted it a better analysis. So, we add some
unrelated tests to bump coverage percentages up.

Of course we add a targeted test for the new code too. For that
one to work, we change how set_middleware() treats its fake_http
argument.

This version also adds comments rather than docstrings, because
they need to source as context.

Change-Id: Iba33b11e77b9910211983aa725c69d3886e1c7a7
Merge "rm improper assert syntax"
Merge "Client V3 shouldn't inherit V2"
Add -u option in run_tests.sh

-u option used for update venv packages.

Fixes bug #1205551

Change-Id: I2ef6e11c556bd90154a286eada6d37750caf5e19
Reorganize url creation.

Make build_url extract used parameters from keyword arguments so they
are not sent as the body to create, or as query parameters.
Allow specifying a class level base_url that is used unless one is
specifically provided.
Break filtering function into a decorator as it seems the perfect
usecase and it prevents a dictionary copy.

Fixes: bug 1198772
Change-Id: I6d370ed504c300b9997199f351322e3083650c69
Merge "no logging on cms failure"
Correct mis-spell in comments

In tests/v3/utils.py, parameterize()

Fixes bug #1206895

Change-Id: I36e3d49209eb6896cb0e053bba9e4c966efea5db
Ec2Signer : Allow signature verification for older boto versions

Since the fix for bug #1197553, verification for older clients (which strip the
port when formatting the request) fails.

This conditionally reverts to the original behavior, by detecting the boto
version via the User-Agent header, the default behavior will be the new
behavior (which doesn't strip the port), but this will allow a less painful
transition for clients/distros to the new boto version.

Fixes bug #1205281

Change-Id: I54ac9c5ba91e697004f1346a8f2d685da488992a