Check that all po/pot files are valid

Perform minimal checks on po and pot files so that no broken files can
get imported.

Add msgfmt to list of requirements in doc/source/setup.rst.

Change-Id: Ifa9fe2fc1ca9a41621ff3039c249700cdb1cd0ac
Related-Bug: #1299349
Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
Sync with oslo-incubator 28fba9c

This syncs Keystone with oslo-incubator commit hash
28fba9c262943e3f6b0b10321680fc08cf6b8387 .

In keystone:

$ rm -r keystone/openstack/common

In oslo-incubator:

$ python update.py ../keystone

Commits
-------
0f495ee Emit a log statement when releasing internal lock
9912e5d Add API for creating translation functions

Change-Id: If8c8f6aa96408d7d15e17a0e70e18d7d25df2285
Set proper DB_INIT_VERSION on db_version command

When db_version argument to keystone-manage is used before db_sync
the versioning API incorrectly versioned the DB to 0. The code now
properly references the DB_INIT_VERSION allowing for db_version
to be run on an unversioned database prior to sync.

Change-Id: Idca5c8a3f4822ade8a5566181960085862ec2429
Closes-Bug: 1314340
More random values for oAuth1 verifier

The oAuth1 verifier was generated as a random number ranging from
1000 to 9999. This small range of numbers is vulnerable to
brute-force attacks as described in CWE-330. The verifier is now
a 8-character long alphanumerical string, a good compromise between
security against guessing and ease of use.

SecurityImpact
Change-Id: Ibe4a2e57a02c261d85ba6c0d61696f134c54443e
Closes-Bug: #1236675
Allow 'description' in V3 Regions to be optional

Currently, description is required for POST requests to regions when
using the SQL backend. According to the Identity V3 API spec,
description is not required. If a user creates a region without
specifying a description for the region in the request, we can make sure
it is sent to the database as an empty string.

Change-Id: Ia6fb1a2eee6b471c0c44a66590f53d061bcd8643
Related-Bug: 1284972
Fixed some typos throughout the codebase

Change-Id: I66e421b1743f7b3e3e7ecd34e64f67b6e0a53f2c
Ensure token is a string

Token is passed as a header from wsgi to HTTPD
If that token is unicode, it triggers an exception in mod_wsgi

Closes-Bug: 1312971

Change-Id: I4bb6ef6c98fbcd35435956d701f1ee3281e9935a
Merge "Allow 'description' in V3 Regions to be optional"
Remove the configure portion of extension docs

The docs themselves have little to do with configuration,
and mostly describe how to enable the extension.
Suggest removing the configuration part of the file rename.
Also motivating this change, is the fact that we are including
a doc that helps to configure the federation extension
(https://review.openstack.org/#/c/89220/).

Change-Id: I0fe845ac9bdfede330a7eb56fee6f971290789b3
Merge "More random values for oAuth1 verifier"
Merge "Ensure token is a string"
Merge "Check that all po/pot files are valid"
Merge "Remove the configure portion of extension docs"
Merge "Fixed some typos throughout the codebase"
Merge "Sync with oslo-incubator 28fba9c"
Merge "Set proper DB_INIT_VERSION on db_version command"