update v3 domains - remove public/private namespace

removed the private namespace options that were lingering in create/update/tests
it should now adhere to the v3 api specs

Change-Id: I853c2b8a13bc657e9cd2a3f24e6eb7deb68a4c5c
Use v2.0 api by default in auth_token middleware

Fixes an issue that crept in with d782a99 where auth_token
started defaulting to the v3.0 API by default when no version
was specified.

Given that bin/keystone still defaults to using the v2.0 API
it seems like auth_token.py should too.

Fixes LP Bug #1154144

Change-Id: Ia5620bccc182bbc73cb60dcccb1f701304450e5a
Retry http_request and json_request failure.

Temporary network outages or keystone server restarts can lead
to a connection refused in auth_token middleware. Rather than
failing immediately, this patch attempts to retry a few times.

Fixes bug 1150299

Change-Id: I2ecf0d7745290976efcb3e3cd6511817a53d3e0a
Doc info and other readability improvements

A few good suggestions were made on the final round of reviews
on the previous patch to add v3 token support, but were not
implemented. This patch applies these, which should not create
any functional change.

Fixes Bug #1154768

Change-Id: Ie5408a5477d176bd28b2c385e49cd29b39c0de39
Make auth_token lazy load the auth_version.

Updates recent changes to the auth_token middleware (this
is a regression in d782a99) so that self.auth_version is
lazy loaded.

This fixes issues where other openstack services would fail
to startup correctly if Keystone is not running. The issue
was auth_token was trying to make a request to '/' to get
versions information on startup to "autodetect" the correct
version to use.

This patch fixes startup issues by moving the version detection
so that it is lazy loaded right before it is actually used.

This issue should fix SmokeStack :)

Fixes LP Bug #1154806.

Change-Id: Ib24f5386fa1ffe0e0365548840f0cfeaae36f548
Make keystone client handle the response code 300.

Keystone discover command currently fails to list
the keystone server. Fix is
made such that client handle the response code
300 from the keystone server.

Fixes Bug #1136476

Change-Id: Iada31f1e274aade90aa4b4be2a136793a0ba64d7
Merge "Make auth_token lazy load the auth_version."
Merge "Use v2.0 api by default in auth_token middleware"
Merge "Retry http_request and json_request failure."
Merge "update v3 domains - remove public/private namespace"
Merge "Doc info and other readability improvements"
Cache tokens using memorycache from oslo.

Verifying tokens accounts for a significant portion of the time taken
by the various api servers. This uses the simple memory cache from
oslo so that there is a simple default cache even if memcached is not
deployed. Also cleans up the tests and removes unnecessary fakes.

DocImpact

Change-Id: I501c14f2f51da058cb574c32d49dd769e6f6ad86
Merge "Cache tokens using memorycache from oslo."
Config value for revocation list timeout

Adds the config option 'revocation_cache_time'
default of 300 seconds, same as token timeout

Bug 1076083

DocImpact

Change-Id: Ifd41c816dd5431f140461d6a1588364d7ecf9a62
Fix v3 with UUID and memcache expiring.

- Regenerate tokens to change expires in expires_at.

Change-Id: Iaa62dca50d34a228e4850b59d263b807c5ee3549