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
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
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
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
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"
Separate alarm storage models from other models

This change isolate storage models used for alarm into a separate file.

This a preparation work to have all alarms related storage API inside
the alarm namespace and then be able to have a different database for
alarming and metering.

Partial implements blueprint dedicated-alarm-database

Change-Id: Iab6b70c6a48301164016823bd0f8e9781ca21abd
Splits mongo storage code base

Move methods and classes that just helper around pymongo into
mongo/utils.py

This a preparation work to have mongo helper method that can be shared
between alarm and metering storage driver.

Partial implements blueprint dedicated-alarm-database

Change-Id: Ib359ce4c69b1310577e0481a380d5438f08ed597
Splits hbase storage code base

The hbase storage file have three different kind of things
* The Connection class
* The In-Memory implementation of HBase
* The a list of helper methods

This change splits this three things into separate files

Partial implements blueprint dedicated-alarm-database
Co-Authored-By: Ala Rezmerita <ala.rezmerita@cloudwatt.com>

Change-Id: I6453dc7795fb24d8ea773b129874e7936befae47
Merge "Iterates swift response earlier to get the correct status"
Merge "Separate alarm storage models from other models"