Implements import_group

Created import_group method in cfg.py
Added testcases

Fixes bug #1107843

Change-Id: I427d4069dacbb6e586687370adbb08b5d50f7b63
timeutils: considers that now is soon

This is a follow-up to Doug suggestion at

     https://review.openstack.org/#/c/20323/2/openstack/common/timeutils.py

Change-Id: Ic318202234202e56054df1b5cc7f82a404c307bc
Signed-off-by: Julien Danjou <julien@danjou.info>
Use bytes instead of str

Clarifies that str is the wrong datatype
for passing messages over ZeroMQ. This
distinction will be more important with
the eventual migration to Python 3.0,
but (I hope) this also helps clarify WHY
typecasting is performed before sending messages.

Change-Id: I4dd4661a5730a24ba7b514520b0429b721b05e9c
Only unpack replies on caller.

Opening the messages is unnecessary
in ZmqProxy, given that the msg_id
is already in the (zmq-specific)
message envelope. Additionally,
by not opening the messages, we
save a bit of complexity.

This avoids having to deserialize and
reserialize messages in ZmqProxy,
a necessary improvement for trusted-messaging
and should also have a markable performance
benefit.

Also cleans up msg_id handling a bit.

Change-Id: I31f365b9e1040503206b1d8320a0266a8121c821
Exchanges should return directed topics.

Exchanges in the matchmaker are supposed
to return a directed topic as the first
element in returned tuples.

Adds a test to ensure this is so.

Change-Id: I6c62f325914faa19216d5362c6d8ed0288942110
Update HACKING.rst per recent changes

Added "is not" usage with examples
Fixed "not in" usage description

https://review.openstack.org/#/c/20576/
and
https://review.openstack.org/#/c/20879/

Fixes a previous "not X in Y" grep corner case

Change-Id: I92ae642887de734a8562a528003d8092f5ff27d4
Mark password config options with secret

Config object supports masking values when writing out if the secret
flag is set on the option definition.  This change flags all
oslo-incubator options containing a password.

Change-Id: I78451c4fdfdb3d6e28a7bd5f35d1c4c9a1b2be99
Import sqlalchemy session/models/utils

Bring in session, base model, utilities, and tests for sqlalchemy
from Nova.

Add sqlalchemy to pip-requires and and python-mysql to test-requires.

Partially implements blueprint common-db

Change-Id: I3e0065cdac87e10c4e0742d66c293c72bb3acbb2
Eliminate gratuitous DB difference vs Nova

Looks like this was an abritrary cleanup done as part of the import. It
conflicts with a more recent change in Nova.

We can move to using try_import() once we've killed the Nova copy
of this code.

Change-Id: I5c67d3fbd846a262feb724e26b14447a76561ae6
Remove duplicate DB options

sql_dbpool_enable and sql_connection_trace are declared twice.

Looks like this was a merge conflict when sql_dbpool_enable changed
from int to bool.

Change-Id: I553c5beea916e0ee296648342324fd53167c073a
Be explicit about set_default() parameters

We probably only want to support people using set_defaults() for a
limited set of config options, so explicitly list those as parameters
to the method. This is what we do for rpc and log options too.

Change-Id: I3bfc5355e82eec17480b9547662e847dc0d74138
Merge "Use bytes instead of str"
Merge "Only unpack replies on caller."
Merge "Mark password config options with secret"
Allow tools/install_venv_common.py to be run from within the
source directory.

Not doing this raised exceptions when it tried importing modules
that didn't exist in the path.

Change-Id: I10e02cd9ce6beb8fdf822dd397688450ac6981a1
Merge "Allow tools/install_venv_common.py to be run from within the source directory."
Emit a warning if RPC calls made with lock.

This patch will log a warning every time a RPC call is made while
a lock is held if the caller has requested it. This should help us
track down performance problems such as the security group refresh
problem recently found in nova.

RPC calls can emit a warning if called with check_for_lock=True
and debugging is turned on.

Sneaks up on bug 1063222.

Change-Id: Ice94093efb3cb95dd58b31d6ba817c7d505c15af
Merge "Import sqlalchemy session/models/utils"
Merge "Eliminate gratuitous DB difference vs Nova"
Merge "Remove duplicate DB options"