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 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
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
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"
Merge "Respect $TMPDIR environment variable to run tests"
Merge "Remove unused logging in tests"
Merge "Fix LBaaS connection meter docs"
Use hacking from test-requirements

Just like all other OpenStack projects use the hacking version from
test-requirements. Also install all dependencies before running flake8
so we can do import analysis such has H302. Turn off H302 until the
existing are resolved.

Change-Id: I6c5a983025406c1ebd4b537b95c6e8ce97849898
Clean up oslo.middleware.{audit,notifier}

After migrating to oslo.messaging, the oslo.middleware.notifier and
oslo.middleware.audit can no longer work, we should remove these code.

Change-Id: Ie848d9f356eec670bbeeafc83f9e704212b1d2e4
Closes-Bug: #1327084
Merge "Splits mongo storage code base"
Reenables the testr per test timeout

This change reenables the testr per test timeout, but set the value to
10 minutes, a gate job take 5-8 minutes, so test should not take more
than 10 minutes.

Change-Id: Ifccef9040529ec1a0b21076ed17d91a4f9737096
Merge "Fix method mocked in a test"
Merge "Reenables the testr per test timeout"
Merge "Use hacking from test-requirements"