Corrects a flaw in the treatment of swift endpoints

When keystone has a registered swift endpoint of which the url does not start
with '/v1', the object-store pollster is not able to use it correctly.
This commit fixes it's behaviour to provide more flexibility in endpoint urls.

Change-Id: I579b1cf450f16853ac49f1d248a64a179e6443d9
Closes-Bug: #1325591
Fix ceilometer.alarm.notifier.trust import

Import ceilometer.alarm.notifier.rest instead of
ceilometer.alarm.notifier to be able to use the rest module.

Change-Id: I82eea5c2f3ec0a8c5f33307d41df45111788c50f
Closes-Bug: #1327818
Respect $TMPDIR environment variable to run tests

On Fedora 20, /tmp now uses the tmpfs file system which means that all
files are stored in memory. Running Ceilometer tests write 1.2 GB in
/tmp.

This patch allows to set the TMPDIR environment variable to run tests in
a different temporary directoy. So I can use a directory on disk to not
use all my memory.

Change-Id: Ib87a988a4acb3cb568d3f3dda641f5a824f986da
Fix LBaaS connection meter docs

Change-Id: Ib775093929ab3ac076a498e7f3413a3d21c96e42
Closes-Bug: 1328590
Remove unused logging in tests

For now, there are some logging objects defined in tests module, but
they are never used, this patch removes them.

Change-Id: Icb6666c377c34ca69d512aff8cba09f76a2e2057
[HBase] get_resource optimization

In this change only Resource table is scanned during get_resources().

It becomes possible because of the following:
1. Store all meters for each resource.
2. QualifierFilter is used when timestamp filter is needed.
3. To make metadata up-to date in case of unusual order (old comes earlier then new)
   we use versioning. So during 'put' it's possible to set timestamp and the newest data will be
   automatically 'on the top'

Implements blueprint hbase-resource-rowkey-enhancement

Change-Id: Ie189531e6425af3acfeae5636d8b93b102f319d1
Merge "[HBase] get_resource optimization"
Fix list of modules not included in auto-gen docs

The variable for excluding modules should be a sequence of strings.
Turn the current value from a string to a tuple so documentation
for our source is generated.

The errors and warnings were fixed in the docstrings in the source code
otherwise the doc generation would fail.

The following files were excluded from the doc build because of
non-existing imports:

 'ceilometer.compute.nova_notifier'
    http://bit.ly/remove-nova-notifier-bp
 'ceilometer.openstack.common.db.sqlalchemy.session'
    https://review.openstack.org/#/c/97850/
 'ceilometer.openstack.common.middleware.audit'
 'ceilometer.openstack.common.middleware.notifier'
    https://bugs.launchpad.net/ceilometer/+bug/1327084
 'ceilometer.openstack.common.log_handler'
    https://bugs.launchpad.net/ceilometer/+bug/1327076

These failed imports are registered in one blueprint and two bug reports.

Change-Id: If0bc1c8fc96ba513bbeb90d5257e40b7621a8473
Fix Sphinx directive name in session.py

In openstack/common/db/sqlalchemy/session.py a wrong directive name was
used for formattion code snippets. The directive '.. code::' was changed
to '.. code-block::' in oslo-incubator in this commit:
  I222a11d8a2101600e7cbb96f587515a32f697c2e
As this file now does not contain more formatting errors, it was removed
from the exclude list of Sphinx in conf.py.

Change-Id: I2fc7a8b8216d4bfc5232027f0beb11a036bf257c
Clean up .gitignore

Several files were removed from the doc sources and config, so there are a
few folders in .gitignore, which are not needed anymore. Also there was a
build directory referenced and the only build directory is under the doc
folder, so this was corrected also.

Change-Id: I60f25d282caa813b3bfc790988578b9882ba95ab
Don't keep a single global TRANSPORT object

To keep the global state of messaging like the old olso-incubator
library does, we have created a global TRANSPORT object.

But since the test use the fake:// driver of oslo.messaging in tests,
this transport is shared between tests, but some tests use 'fake://',
other the default one, and someother disable the transport.

This change ensures that a different transport is used for
code tests.

Change-Id: I22317527cc4fb44ea1fb9642586e8cdcbc97030b
Fix method mocked in a test

Mock `api_client.alarms.list` instead of `api_client.alarms` in the
tests/alarm/partition/test_coordination.py:TestCoordinate.test_assigned_alarms
method.

Change-Id: Id33f9854de4604b47b2a453c91a58f2dcd15e682
Closes-Bug: #1329701
Merge "Fix ceilometer.alarm.notifier.trust import"
Fix messaging.get_transport caching

If some case get_transport can return a cached transport
even cache=False

This change fixes it and also adds some unit tests for this method

Change-Id: If87cf60d0a25a84dd05f1b84c35f1bcbfeb69b75
Merge "Fix list of modules not included in auto-gen docs"
Merge "Corrects a flaw in the treatment of swift endpoints"
Merge "Fix messaging.get_transport caching"
Iterates swift response earlier to get the correct status

We must iterate the next middleware app until we get a response
before asking for the headers and status.

Closes-bug: #1326250

Change-Id: I8947bc88754db93e3ebe01ea864c4b489d1bd870
Merge "Fix Sphinx directive name in session.py"
Merge "Clean up .gitignore"