Move flake8 option from run_tests.sh to tox.ini

flake8 will read the section [flake8] of tox.ini to guide the behavior.
In run_tests.sh, there is no need to add flake8 option in run_flake8()
function.

Bug #1214175

Change-Id: If3b84a0a3eecc1a9800fed6be9b24e648c161280
Use hashed token for invalid PKI token cache key

Invalid PKI tokens are cached in memcache using the entire token as
key. This triggers the familiar memcache key length error since a
PKI token is much longer than 250 characters.

This change hashes the token before using it as a key, and also changes
instances of "token" to "token_id" where appropriate so it's clear
that we're passing around a hashed token rather than the token data
itself.

Change-Id: I765b209578d60266da706094f61d8d9b15cfb6de
Closes-bug: 1206347
Synchronize code from oslo

Use commit 376d1aaef9928a0cacb6ff8361b7b5003cad1e0a
'Merge "Update DB maintainers"'
by jenkins
on Tue Aug 20 12:08:26 2013 +0000

Changes:
- Ibf3c56e4baa6ad83e2b95a948787e9d02cf074d4 BaseException.message is deprecated since Python 2.6
- I24ffad9ab7852be44e5d6c8805aa0a47647e21cc Don't attempt to patch eventlet without the patch
- I838559f6f308e4a0c255af7bc27cdc669c5cf5f3 Ensure install_venv works behind firewalls

Change-Id: I70182bd4e6611ee6da58d2772767888608c0f80c
clearer error when authenticate called without auth_url

Fixes bug #1212729

Change-Id: Icd55b77fcd58db182e5c0fe0c230e7fc9d8a57ff
Merge "Move flake8 option from run_tests.sh to tox.ini"
Support older token formats for projects in accessinfo

Older token formats get decoded as a v2 token so we should support
reading project information from these tokens.

Change-Id: I31473a00b294bd0d7b535cfab8d2eaf09db97ff5
Add domain attributes to accessinfo

user_domain_id and project_domain_id are already available, so simply
add an equivalent user_domain_name and project_domain_name if available.

The use of 'default' for v2 tokens is inspired from the default behaviour of
similar functions and what is used in auth_token middleware.

Change-Id: Ia9b345529072ab893d04c7a38fb7ba3acdc28227
Merge "clearer error when authenticate called without auth_url"
Merge "Support older token formats for projects in accessinfo"
Merge "Use hashed token for invalid PKI token cache key"
Merge "Add domain attributes to accessinfo"
remove the UUID check for userids

Change-Id: I548d8ea292f737a6b5b0dddd8271a0cf690392a0
Fixes: bug #1189933
Remove duplicate method in AccessInfo

Closes-Bug: #1217777

Method has_service_catalog is duplicate in AccessInfo, remove the
first one because this class is used as a base class.

Change-Id: Id5f6f0cfe223bd4f31b7c01a6bc1e750ad5a7cd8
Merge "Synchronize code from oslo"
Merge "Remove duplicate method in AccessInfo"