Fix debug message in multicall of rpc.amqp

Change-Id: Ib5ed65df937e9fe4e36cdf7d0ce92b627f22dbd3
Fix test cases in tests.unit.test_service

Be patient in test_service while waiting service to be spawned or killed,
because:
    * Service spawning has a limit of one process a second.
    * A test server in the cloud might have limited resources, the time there
      might be several times slower.

Change-Id: Idab1d1158ecc7564d0b1f9cdd32496496ff5b3f8
Ensure proxy callback threads exit during tests

On the consumer side, each message is consumed in a separate thread
but we currently have no way of waiting for all these threads to
complete.

In BaseRpcTestCase.test_call_timeout(), we complete the thread while
there is still a message handler running on the other side. This can
mean the consumer attempting to send its reply while other tests
are running, which clearly is a bad thing.

Make the connection close() and reset() methods in the kombu and qpid
drivers wait on proxy object threads before returning to avoid this
situation.

Change-Id: I8fb84b1dc7f31196ef27a5d1f8c4a3346b03e0ae
Optionally add message envelope to notifications.

When message envelopes were added for rpc messages, notifications were
explicitly left out.  This was due to the fact that notifications are
consumed outside of OpenStack.  However, notification consumers will
likely want to eventually start taking advantage of some of the features
that the envelope is a prerequisite for, such as message signing.

This patch adds a new notification driver that produces message based
notifications including the message envelope.

Related to blueprint version-rpc-messages.

Change-Id: Iaa8b437e6b4f64053f4b02bf486516f60bb020e9
Enable millisecond logging by default

Related to Ic28867ae9a436e81c7f2fcf79f40a1ecc251072c

Change-Id: I135213cad3ec21edf8934c1094ee84ac93ed4561
Use basestring instead of str for type check.

Change-Id: I1dbf453cc08bd8aaeb4fee2491a1e8aa74f8bee3 introduced some
checks to is_older_than and is_newer_than functions against str instead
of basestring.

I'm aware that basestring doesn't exist in Python3 but since it isn't
a target right now and there's no "standard" way to support it right now
in openstack.

Change-Id: I8d67d384637dfdde3f5621052d8511e7b6ecab7b
Add a latex command to our sphinx builders.

The libra project added this locally and use it for some docs they make. It
seemed like something we could add what we provide globally.

Change-Id: I219829693568362bbe01354a8f477a10031754c4
Merge "Ensure proxy callback threads exit during tests"
Merge "Fix test cases in tests.unit.test_service"
Merge "Optionally add message envelope to notifications."
Merge "Fix debug message in multicall of rpc.amqp"
Merge "Enable millisecond logging by default"
Eliminate sleep in the lockutils test case (across processes)

Fork many processes and try to lock the same set of files
using flock without blocking and make sure we wait for all the processes
to finish as well.

Fixes LP #1068316

Change-Id: I09964b2c5af63f31b5ddee1f18eaf646f8d8ba58
Merge "Add a latex command to our sphinx builders."