matchmaker_redis compatibility with redis-py 2.4

From the redis documentation: "In addition to the changes above,
the Redis class, a subclass of StrictRedis, overrides several other
commands to provide backwards compatibility with older versions
of redis-py"

Change-Id: I76ca0d9660b086dfed74733f63450fecb89decb7
Closes-Bug: 1245447
Use log.warning() instead of log.warn() in oslo.db

Method warn() is provided by ContextAdapter from openstack common log
module. It is the same as logging.LoggerAdapter.warning(), so we can
easily replece it to warning().

It allows us drop dependency on log module from oslo db code.

Change-Id: I31fe047a8c71b2818c81dd6aa9cef96026c9b649
fix typo in db session docstring

Fixes a minor typo in the sqlalchemy/session.py doc text

Change-Id: I33f1566d4cf375dd11eaf8986f935bf8761a2ab6
Use six.iteritems for python 3.3 support in apiclient module

In python 3, dict type does not have iteritems method. So use
six.iteritems for compatibility in apiclient module.

Part of blueprint make-python3-compatible

Change-Id: I5dd0ea8f38f775d89be9b5f8743a273bf2a7520f
Drop dependency on fileutils from oslo db tests

Module fileutils from openstack common requres common log.
We should avoid of use openstack common log module, because it
registers a few oslo.config options, so can possibly lead to
unpleasant issues (DuplicateOptError).

We used only fileutils.write_to_tempfile() function, from fileutils,
so it can be replaced to similar create_tempfiles() method from
BaseTestCase() class.

Related to blueprint oslo-db-lib

Change-Id: I25d97c877687a8b5e4343f5376e92ba269bca98a
Typos fix in db and periodic_task module

Fix several typos in db/sqlalchemy/models.py and periodic_task.py

Change-Id: I7a4e72ee379f650192e656fe260d858fecea4637
Remove authutils

As discussed during the Icehouse summit, this library is not used
anymore by any project. Let's get rid of it.

Reference:
  https://etherpad.openstack.org/p/icehouse-oslo-status

Change-Id: I937cacb5de07faebabb79f2a9c1a6fa29ac9a357
Remove the context middleware

As per discussion during the Icehouse summit, we decided to remove this
obsolete piece of code. This patch is doing just that.

Reference:
  https://etherpad.openstack.org/p/icehouse-oslo-status

Change-Id: Ied4515d661e6d7a0eb9c4881d358bf16794ce000
Incorporating MIT licensed code

This patch attempts to clarify the licensing position
held by the db.sqlalchemy.migration module. According to
https://wiki.openstack.org/wiki/LegalIssuesFAQ when we have MIT licensed
code in the project we have to update the toplevel LICENSE file to include
the details of the license + a brief explanation of which code is under
that license.

This patch also fixes the license header on that module which was
incomplete.

Change-Id: I5675f3f6f63ac6432736a98e94fbe2cb3e32714f
Run coverage tests with --concurrency=1 too

Due to various race conditions we've been running unit tests with
--concurrency=1 for a long time now. The same must be done to coverage
tests too.

Change-Id: Ie402ee005043e250ee5778a00efc16db588ed811
Closes-Bug: #1252743
Adding domain to context and log

Add support for upcoming "domain" concept in Keystone V3 API in
both logging and context.

Closes-Bug: #1248936
Implements: blueprint add-domain-info-to-context
Change-Id: Ic2cf3e52cfcc0b8adccdf9c59afaa4014708a303
Mark rootwrap as graduating

The rootwrap code is moving to openstack/oslo.rootwrap.

Change-Id: Ibec41420d23f8c91b437ec097667922b4ece42c3
Merge "fix typo in db session docstring"
Merge "Mark rootwrap as graduating"
Merge "Run coverage tests with --concurrency=1 too"
Merge "Use log.warning() instead of log.warn() in oslo.db"
Merge "Typos fix in db and periodic_task module"
Merge "Drop dependency on fileutils from oslo db tests"
Merge "Incorporating MIT licensed code"
Fix locking in migration tests

The migration test code included an external lock with a hard-coded
relative path that breaks when run in Jenkins.  It wasn't being hit
in Oslo because it was only locking for the postgres code path,
which isn't currently tested in Oslo.

This change moves the lock so that it applies to all db types and
removes the relative path.  For the locks to work properly it was
also necessary to add the lockutils wrapper to the Oslo tox.ini.

Closes-Bug: 1255608
Change-Id: I333b833022f208e48e3b7e82e8cfad2764be5ea0