Add a load function wrapper to jsonutils

Fixes bug #1008065

Change-Id: I72aba29eea4637643cb7742f2fd4b1f05d15667f
Fix pep8 errors.

Fixes a couple of pep8 errors that appeared due to a pep8 tool update.

Change-Id: Ida70b1fb962529d3a157f44dcf2e71af773a4431
Common-ize policies.

Both Glance and Nova make use of (almost) the same policy system,
defined in glance/common/policy.py and nova/common/policy.py,
respectively.  They also have independent glue code
(glance/api/policy.py and nova/policy.py), so that the common
policy system is substantially similar.  This makes policies a
perfect candidate for incorporation into openstack-common,
particularly given that this same code will soon be used by
Quantum.

This change adds the common policy module (along with some minor
interface changes and bug fixes) to openstack-common, along with
a test suite.

Change-Id: I0022a91f16ded28f9dc6b4975ef1b6e4cc8460ac
Create testutils with skip decorators.

This patch creates openstack.common.testutils which includes some
decorators used to conditionally skip tests.  This is needed for the
rpc unit tests.

Change-Id: Ic6bc8d58f7dfcd9eb3acd2749c475b9d760b9578
Merge "Create testutils with skip decorators."
Replace datetime.utcnow with timeutils.utcnow

Fixes bug #1008064

Replaced datetime.utcnow usage with timeutils.utcnow

Change-Id: I8bfdc1abefc3891497554335a3078d4028ef8ac9
Add nova time util functions to timeutils

Fixes bug #1009410

1. Add the following functions from nova/utils.py
- strtime
- parse_strtime
- is_older_than
- utcnow_ts
- advance_time_delta
- advance_time_seconds

2. Write unittests in tests/unit/test_timeutils.py

Change-Id: Ie0bba90833e2ed31bb5ab867a7c1a76a9901cacb
Add gettext support.

This patch adds gettext support for openstack-common modules.  In the
process of pulling in the rpc code, I didn't want to remove the usage of
_() that was already in there.  This allows it to stay in a way that
doesn't conflict with gettext usage in the project using
openstack-common.

Change-Id: I9cad006f81244f0cce7b7f28659fa1daa5a4268a
Revert "Add a load function wrapper to jsonutils"

This reverts commit 72840edc736b7f4d2366b5049f6516d8f5b901ff.

This change breaks kombu, so revert it since there is no specific need
for it.

Fixes bug 1009127.

Change-Id: Id0ef8b3948b63d0151289cb7ce8e617d9816bb4b
Add rpc to openstack-common.

Implements blueprint common-rpc.

This patch imports nova.rpc to openstack-common.  All of the necessary
changes to the core code to make it compatible with openstack-common
have been done in nova, so the only changes made here are to imports.

There are more changes made to the tests, but nothing that changes the
core functionality of the tests.

Change-Id: I17330aa4adfd0f22c449a2376833c7fe9dfd0cf1
Add support to include config aliases

Implements blueprint config-aliases

* Supports loading deprecated aliased options from a config file
* Supports using deprecated aliased CLI options
* For MultiStrOpt Can use mix of name and alias

Change-Id: I04678880bc8ee1f85335f5656367bd1437245c6e
Adds support for bol and eol spaces to ini files

  * Fixes bug 1009639
  * Adds tests

Change-Id: Id00563dfcc6f143c3e86ec380d66cffc967b8c48
Move testing dependencies to test-requires.

Change-Id: If0402077cc95811936c55182d90f15ccb37a6ad2
Merge "Adds support for bol and eol spaces to ini files"
Fix a pep8 error.

Change-Id: Iab7e703254a354764a5667425ef887b0afc89115
Merge "Add rpc to openstack-common."
Merge "Fix a pep8 error."
Fix RPC tests to not use assertIn

* Fixes Bug #1010244

Change-Id: Idac365a1719c49846ef105b90683e631310fbf6c
Handle xmlrpclib.DateTime types when serializing to JSON

Fixes bug 1010124

Convert xmlrpclib.DateTime types to datetime so they can be serialized
without creating an exception.

Change-Id: Ifcab69ad81d39d7f4066df5c71c6ab6734fb1fab
Merge "Add support to include config aliases"