[Hbase] Add column for source filter in _get_meter_samples

Earlier column for source was not created and "get_samples"
method with source query worked incorrect. In this change
it is fixed.

Fixes: bug #1330989

Change-Id: Ie8be408d6b54471322e2f585ddf27c50219b8fd3
Improve api_paste_config file searching

Currently, if the file defined by api_paste_config is not found under
working directory, it will use etc/ceilometer/api_paste.ini instead,
this is because at that time, devstack doesn't support the new config
file. After patch I57165d588da35f13b2d22629b48dc087502598a7 is merged,
this workaround is no longer needed, and we should use advanced
find_file() provided by oslo.config to search config file.

Meanwhile, if the file is found under working directory, we should use
absolute/relative path instead of bare base name, otherwise, the
deploy.loadapp will not work.

Change-Id: I9bcb7b69a0159d548401de1c36f773a1965722b6
Closes-Bug: #1329126
Use a FakeRequest object to test middleware

swift was being imported to provide a blank Request
object but very little of the functionality in that
object was being used. FakeRequest provides the
bare minimum funcionality required:

* REQUEST_METHOD
* PATH_INFO
* wsgi.input based on cStringIO
* custom header manipulation

Other functionality from swift has either been
duplicated or replaced:

* InputProxy (which counts bytes of request bodies)
  has been duplicated.
* logging uses common log functionality
* path_split does straight string splits for the desired results

Note that these changes do nothing to change functionality nor
anything to address the performance concerns being evaluated
and discussed elsewhere.

Closes bug: 1285388

Change-Id: If0fbb8f00765ac915e5b426a3661492f4b4df9f4
Triple double-quoted strings should be used for docstrings

Change-Id: Ie854ca1a468a0e71b7fa96e6606ead36d1c5d1d2
Rewrite dictionary creation as a dictionary literal

Do that if it makes sense

Change-Id: I4c53ca90c082faa62d8584f75d5bb0a31bb5131f
Rewrite list creation as a list literal

Do that if it makes sense

Change-Id: Ib59e2482985c6b7bd2018648b74d829e67c76a99
Merge "Triple double-quoted strings should be used for docstrings"
Handle sqlalchemy connection strings with drivers

SqlAlchemy connection strings may specify a driver using the +foo suffix
syntax in the url scheme. Ceilometer should accomodate this type of
schema when looking up sqlalchemy drivers with the stevedore driver
manager.

Fix this by splitting connection string schemes on '+' and retrieving
only the first element in the resulting list. Doing the entrypoint
lookup on this element will preserve the existing behavior in loading
sqlalchemy drivers and should be a noop for other backend types.

Change-Id: Ieec5a4c47e8498a533d4e6954682a9bbe10bd4d9
Fixes-bug: 1359049
Merge "Use a FakeRequest object to test middleware"
Switch to oslotest

Change-Id: I8fb8755f289521b928b1dee2605d310e788f73c7
Merge "Rewrite dictionary creation as a dictionary literal"
Merge "Rewrite list creation as a list literal"
Merge "Handle sqlalchemy connection strings with drivers"
Merge "Switch to oslotest"
Switch to oslo.utils

Change-Id: Iacfcbf49864198915f8c229bc552afb412b83b79
re-add hashseed to avoid gate error

there seems to be sporadic behaviour in docs tests due to WSME. this
patch adds back the hashseed to stabilise results until then.

Change-Id: I9039d7f253b94e215e8f60a2d5e380bcf41a9d75
skip polls if service is not registered

currently, when any pollster runs against a service that is not
registered in Keystone, it will throw an exception. we should
catch and skip these polls

Change-Id: I2b582b22a44182ab31d44ce459cc6d642cc3719d
Closes-Bug: #1337293
Remove redundant parentheses

Change-Id: I3b0917e6941e5e86301728361ab9afe5e9ecf012
In-code comments should start with `#`, not with `"""`

Change-Id: I0415c26418743eb8b40590d48e5ecbb719686685
Simplify chained comparisons

Change-Id: Ie4a840bf4b587c72ab9bdfb0ec539829fe380595