Remove lazy loading of database backend

A single DBAPI instance is created globally in target projects at module
import time. As those projects are mostly API services (i.e. DB
oriented), there is no much sense in lazy loading of a DB backend. On
the other hand, if we initialize the DB backend as soon as a DBAPI
instance is created, we simplify code a lot, get rid of the lock and
remove the overhead of checking if the backend has been initialized from
every __getattr__() call.

Change-Id: I9fdf3eab32ee0f078d64fbde35df81c2d1123ae2
Remove sqlalchemy-migrate 0.7.3 patching

Now that sqlalchemy-migrate 0.8.x is available, remove the 0.7.3
patching. This allows environments to pick up 0.8.1 automatically,
while avoiding the version string error. Once an update to
global-requirements is made, another patch will pin our
sqlalchemy-migrate version >= 0.8.2.

This is copied from change I646a5a8f427095e20b09fbf2db796d2644def6fc

Closes-bug: 1251700
Change-Id: I51178d5b4dff56b92d2de08a73924bba56e975b6
Use six.moves.configparser instead of ConfigParser

The ConfigParser module has been renamed to configparser in Python 3.
See http://docs.python.org/2/library/configparser.html

Implements: blueprint make-python3-compatible
Change-Id: I13cfd5e90f1b5d342b2f3ef6dd0d246c4fda6156
Avoid TypeError in is_older_than, is_newer_than

datetime doesn't like to subtract offset-naive and
offset-aware datetimes. To fix this we convert all
datetimes that are passed in to offset-naive objects.

Change-Id: Ib01568c9d287e319750b6bef3656fdcfc992a1b1
Closes-Bug: #1259383
Notifier Proxy

Proxy for making notification calls in manner safe for conversion to
oslo.messaging.

Change-Id: I046f0f5383ecec7d95e1a253d5abc125350fed95
wsgi: remove

This module isn't used by anything now, and has been deprecated and
orphaned for a long time. It's time to end its suffering.

Good bye!

Change-Id: Id86f96b9286e6e98e94541b90bd5fe39e7279ca1
Fixing misspelled encryption key in QemuImgInfo

This modification fixes Bug #1257829, specifically addressing the use
of a misspelled 'encryption' key to retrieve image encryption
information returned by calls to the 'qemu-img' command. In addition
to fixing the key ('encryption' -> 'encrypted'), the QemuImgInfo class
attribute has been renamed to reflect the change and the encryption
information added to the string representation of the class. Test
cases verifying the parsing of the encryption information are also
included.

Change-Id: Ice087d95c52506dec735921c6e9477caf082bf7e
Closes-Bug: #1257829
Sort the output of config/generator.py by group name

Sort the output of config/generator.py by group name(except the DEFAULT
group) to avoid huge changes in the output when adding new oslo.cfg
option group.

Closes-Bug: 1258363
Change-Id: I28d767e13a7b0fce4dafa1dd051779e1b1cbba86
Change IgnoreAttemptedHostFilter to expect 'retry' key

The newly added IgnoreAttemptedHostFilter is renamed from RetryFilter, but
there's also a change in the key it expected in filter_properties ('retry'->
'attempted').  This change actually breaks backwards compatibility if it's
been used in an environment where old/new scheduler worked together and old
scheduler processed the request prior new scheduler (old scheduler that uses
RetryFilter will add 'retry' key to filter_properties).  This kind of
situation can happen in a rolling upgrade in a multi-scheduler deployment and
should be fixed.

Change-Id: I0da5092833190f7e6dadfaaacfa4545e85d45a15
Merge "Use six.moves.configparser instead of ConfigParser"
Merge "Remove sqlalchemy-migrate 0.7.3 patching"
Remove keystone from default_log_levels default

"keystone=INFO" was in the default_log_levels. This made it
more difficult than necessary to debug the Keystone server,
since you can set debug=True but then the keystone logging
level is overridden and you get no debug output for keystone.

"keystone=INFO" may have been in the default_log_levels because
of the auth_token middleware, but this has been moved to
python-keystoneclient now and the logging config for the
python APIs is done differently.

Closes-Bug: 1245629

Change-Id: Ifc4187188f2be2fc876893e9b75e062f0dfcce97
Fix a bug in safe_encode where it returns a bytes object in py3

Used the six module to dynamically determine python version
and decode the returned bytes object to a string if python3 is
being used

Change-Id: I9e46199e86cba63f530eaef47e53f0de170bdd94
Closes-Bug: #1249995
Correct invalid docstrings

Several warnings and errors are reported when the Keystone
documentation is built because the docstrings are not valid
reStructuredText. This makes it more difficult than necessary
for developers to validate that new changes are correct.

This change corrects the docstrings so that there are fewer
warnings and errors.

Change-Id: I2000a02d5d374749b2c611e63743d542b74e7fa0
Remove unused import

Remove unused import in openstack/common/db/sqlalchemy/session.py

Change-Id: Ia89d749f698a9bee71f70fbb7e723a0131bfccfe
Merge "Avoid TypeError in is_older_than, is_newer_than"
Merge "Correct invalid docstrings"
Merge "Remove lazy loading of database backend"
Merge "Sort the output of config/generator.py by group name"
Merge "Remove keystone from default_log_levels default"