tests: pass /dev/null as config for mongod

On certain system, such as Darwin, the default mongod binary is a
wrapper adding a default configuration file. Let's specify that there's
no configuration file to read, otherwise a log file is used instead of
stdout.

Change-Id: I56c72cd61399405fd57d6e3f2b1f53ca6a395835
Remove unused imports

Remove unused imports in tools/make_test_data.py

Change-Id: I2ea455aa2d665461ac7e087854f66e8c1c6fc950
Closes-Bug: #1268092
Fix use the fact that empty sequences are false

For sequences(strings, lists, tuples), in order to consistent with
pep8 recommendations, 'if len(seq)' should be replaced with 'if seq',
and 'if not len(seq)' should be replaced with 'if not seq'.

Change-Id: Ie7b6afbde07bb57a05b36d92a079c5355945b262
Closes-Bug: #1265688
Trivial typo

Change-Id: If77c9afd493a2a91a853a3826d7465f21d81d343
Insertion in HBase should be fixed

* All data inserted to HBase should be String or Unicode
* Data stored in HBase is flatten

Fixes bug 1240474

Change-Id: Ic36f5460275de3c829a7b27932bde284d71bd806
Use DEFAULT section for dispatcher in doc

Section of dispatcher is moved to DEFAULT in Icehouse, it is in
collector section in Havana but already deprecated. The
doc/source/install/manual.rst still put it in collector section
which seems not good.

Change-Id: I2c5c16c2ffe0dabd19966fc79ad88e418a43a6fd
Closes-Bug: #1269521
Fix to handle null threshold_rule values

check if threshold_rule and combination_rule values
are None and raise the right error in the validation
method instead of propagating it further causing
unhandled exceptions.

fixes bug #1238453

Change-Id: I70a397c89d974e489fd0ccc4ab28d73aed51443f
Implement the /v2/samples/<sample-id> API

This is a simple implementation of the new sample endpoint in the API.
It provides raw accesses to the samples collected by Ceilometer, without
imposing any kind of filtering on the meter name.

The patch is about retreiving only one sample with the id.

The fields are also correctly named this time.

Change-Id: Ifdd7f024b066407cd42ec0572385f97acd312125
Blueprint: sample-api
Remove dependencies on pep8, pyflakes and flake8

They should be determined by the hacking dependency
implicitely.

Change-Id: Ie61a97d5ed26bb8cab04df686a4a2d1df9976f1d
Update oslo

This updates Oslo to the latest commit
997ab2776c9cad033234e28a92fb7bc0ef5bc4c0

It removes the test_service test file, as the behavior of restarting on
SIGHUP is dependent of openstack.common.service which has changed
recently, is already tested as part of oslo.incubator's tests.

Change-Id: I389c690f4febe9c69c1e2c39cd16961635469c75
Merge "Fix use the fact that empty sequences are false"
Merge "tests: pass /dev/null as config for mongod"
Name and unit mapping for rate_of_change transformer

Precursor-to: BP rates-derived-from-cumulative

Adds support for regex-based name and unit mapping to the
rate_of_change transformer. Regular expression back-references
are key to simplifying potentially repetitive config.

This avoids a explosion of pipelines to apply conversions to
classes of similar meters. For example to allow the following
sample derivations:

  * disk.read.requests (request) -> disk.read.requests.rate (request/s)
  * disk.write.requests (request) -> disk.write.requests.rate (request/s)
  * disk.read.bytes (B) -> disk.read.bytes.rate (B/s)
  * disk.write.bytes (B) -> disk.write.bytes.rate (B/s)

to be mapped via a single transformer config:

    transformers:
        - name: "rate_of_change"
          parameters:
              source:
                  map_from:
                      name: "disk\\.(read|write)\\.(bytes|requests)"
                      unit: "(B|request)"
              target:
                  map_to:
                      name: "disk.\\1.\\2.rate"
                      unit: "\\1/s"
                  type: "gauge"

Change-Id: I94b6bfbef538a8b067c3c5ff65066505a199bc5a
Add new rate-based disk and network pipelines

Addresses: BP rates-derived-from-cumulative

Add new pipeline config to derive rate-based gauge meters
from the current set of cumulative disk and network meters
gathered by the compute agent.

The latter form of meter is not suitable for alarming
against a static threshold, whereas rate-based meters would
allow for example autoscaling actions to be driven off the
observed per-second rates of I/O.

Change-Id: I5764797d4eebb129b66a1524d47c38282c6ef095
Merge "Remove unused imports"
Return trait type from Event api

fixes bug 1268032

Change-Id: I6949c1cdeab4d3b1916d90c02e12da79bda38e35
Merge "Remove dependencies on pep8, pyflakes and flake8"
assertTrue(isinstance) replace by assertIsInstance

some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Change-Id: I7072fef7fe5f76e526fc0ccca7a4894accaae80f
Closes-Bug: #1268480
Added resources support in pollster's interface

1. Change the pollster's interface to support resources:
- Added optional parameter 'resources' to the method get_samples. It
  specifies a list of the endpoints from which the pollster would get
  data.

2. Change the PollingTask to record the resources for each pollster.

3. Pass the resources recorded in PollingTask to the pollsters in
central agent.

This patch only changes the interface of pollsters and PollingTask in
central agent. The existing central agent's pollsters still ignore the
resources passed in by the PollingTask.

Implements: blueprint support-resources-pipeline-item
Change-Id: Ic7a83c63ea291d0527004113bc8d8bb09311d14f
Exit expirer earlier if db-ttl is disabled

Now, the ceilometer-expirer exit without doing the backend db request if
the db-ttl is disabled.

Fixes bug #1270760

Change-Id: I49580be14cd932317ff30070aeec391ef456712e