Catch the socket exception and log it.

Closes-Bug: #1186394
Change-Id: I8aefe54deaa44427c6bb92cf439545e94902fb52
Remove unused config option auth_admin_prefix

The auth_admin_prefix was registered but never used. This change
removes it.

Change-Id: I22dd8454f10b79c57819e64bf0a274ce25b66d18
Remove unused DEFAULT_DOMAIN variable

The keystone.identity.backends.ldap.DEFAULT_DOMAIN
variable wasn't used.

The keystone.assignment.backends.ldap.DEFAULT_DOMAIN
was used, but should not have been, because we've
got a keystone.assignment.core.DEFAULT_DOMAIN.

Change-Id: I0f4bb0bd953a9ced8c3dfc46ea44ff0e377db082
remove 8888 port in sample_data.sh

Swift now doesn't use 8888 port as any default service. And the origin
sample_data.sh always let new users to fail and modify swift bind port.
So switching 8888 port here to 8080 could generate sample data without
any change for building swift + keystone environment.

Closes-Bug: #1244304
Change-Id: If58f9f025f57565733aa25efc2fdf06865781391
Update my mailmap

Using new email adress.

Change-Id: Ib1b1be0fe7bba90a9cb2d401a82417b5008add44
Document tox instead of run_tests.sh

Change-Id: Ib4619240c27b0dfe861c9297b64e6d52cdde8944
Closes-Bug: 1244605
Use abstract base class for token driver

Use the abc module for managing abstract base classes in the driver
layer and add missing methods to concrete classes.

bp abstract-base-class-drivers
fixes bug: 1227507

Change-Id: Ie8ebef10d1d0363813a07766433e18793fe448da
Use abstract base class for policy driver

Use the abc module for managing abstract base classes in the driver
layer.

bp abstract-base-class-drivers

Change-Id: I33da50d35c932399aaec8e005215a0f8e7e2acdc
Use abstract base class for oauth driver

Use the abc module for managing abstract base classes in the driver
layer.

bp abstract-base-class-drivers

Change-Id: I8c9b095ee012a4faca90ed026cea846b7d178dc2
Use abstract base class for endpoint_filter driver

Use the abc module for managing abstract base classes in the driver
layer.

bp abstract-base-class-drivers

Change-Id: I0222f062adde75cdb53015f6b908a15f9f438b98
Add WWW-Authenticate header in 401 responses.

This review come from https://review.openstack.org/#/c/41707/, due to the
inactive in that.

Add the WWW-Authenticate in header when Keystone responds with 401 status
code. The format of the header is

WWW-Authenticate: Keystone uri="http://localhost:5000/"

as indicated in

http://docs.openstack.org/developer/keystone/middlewarearchitecture.html#exchanging-user-information .

Closes-Bug: #1153719
Change-Id: Iaa2291c66a9b126982b8aad0ddbfa9468dfc5d3e
Update mailmap for Joe Gordon

Update mailmap to reflect that I am committing from a new email address.

Change-Id: Id87601ce73ada6b6ac9763f381bdc28853818428
Fixes tox coverage command

Change-Id: Id1816cca49989f5d38be285d9b2acca9ca6a2f56
Closes-Bug: #1245539
Merge "Remove unused config option auth_admin_prefix"
Removes NoModule from the base testcase

Only test_keystoneclient actually uses NoModule so there is no reason
for all testcases to inherit it's functionality.

Change-Id: I4415ef32e89bb82242bb6b1fba24a7f2c0dc67e1
Merge "remove 8888 port in sample_data.sh"
Merge "Fixes tox coverage command"
Remove duplicated code on test_v3_auth

Try to be a bit more DRYer in the external authentication testing part.

Change-Id: I295a952fabf923d084daee14a154cb6ac5b7838b
Fix issue deleting ec2-credentials as non-admin user

The ec2tokens controller incorrectly uses the access id, not the
hashed credential id in _assert_owner, which means that non-admin
users can't delete their ec2-credentials.  Adding the hashing, as
in _get_credentials fixes the problem.  Test added demonstrating
the issue.

Change-Id: Ifb6e3e10a50541cf21d25880bd74e9aeb6df4f26
Closes-Bug: #1245435
Enhance tests for delete_grant no user/group

There were no tests to show that when delete a grant and the
target user or group doesn't exist then it fails with NotFound.

Part of bp use-common-oslo-db-code

Change-Id: I4b927bc234621ef164d0e2ebb594b47406699975