send-counter: fix & test

This fixes the bin/ceilometer-send-counter program that has been broken
after the implementation of multi-publisher.
We also add a test to see if it runs!

This fixes bug #1133226

Change-Id: I922c7a000e942ee28d840f4cd65d13898d6d23a8
Signed-off-by: Julien Danjou <julien@danjou.info>
Decouple the nova notifier from ceilometer code

The move to oslo.config introduced a conflict in the nova notifier
because both nova and ceilometer have copies of the
openstack.common.rpc library and define an option for the AMQP
exchange name for the project. This changeset decouples the notifier
plugin in ceilometer from most of the ceilometer code, to remove that
conflict.

The nova notifier is rewritten to emit a new notification message with
event type `compute.instance.delete.samples` instead of making the old
RPC calls directly to the ceilometer collector, and a notification
listener plugin is provided to convert those messages to sample data.

The notifier implementations are split between the one that worked
in folsom and the one that works in grizzly to maintain backwards
compatibility.

get_hypervisor_inspector() is moved to a location where it can be
imported both by the compute agent manager and the notifier
plugin. The definition of `disabled_compute_pollsters` option is also
moved for the same reason.

The tox configuration is changed to run the nova notifier tests
separately from the other tests, since nose cannot import nova and
ceilometer code in the same process.

bug 1130952

Change-Id: I39ba4564c9c14f09dbdd768d7a83f6940e3942ad
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Decouple the nova notifier from ceilometer code"
Set where=tests

Many tests assumed to be run from tests, and fails without that if simply
run with 'nosetests', which is handy.

Change-Id: Ief9dba564f809012b38df8533dd5a09e90668517
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "send-counter: fix & test"
Merge "Set where=tests"
Remove old configuration metering_storage_engine

This is useless now.

Change-Id: I195cc626a6ae2d65535362c67f53663551933f9e
Signed-off-by: Julien Danjou <julien@danjou.info>
Run some APIv1 tests on different backends

This is a first change towards implementing bug #1131638. It clears a lot of
stuff in the various DB mocking stuff, and I plan to do more after.

In the same process, this implements a unit test and a fix for bug #1138137

Change-Id: I36a6741393455c764913e0388d73d834db06da8c
Signed-off-by: Julien Danjou <julien@danjou.info>
Exclude tests when installing ceilometer

Dont include the tests directory when installing
ceilometer as they might conflict with other
poorly installed packages on the users systems.

Fixes LP: #1102110

Signed-off-by Chuck Short <chuck.short@canonical.com>

Change-Id: Ia8b0477af72b30dcf54b4751a51bbb460a7a90f4
Ensure missing period is treated consistently

Add a new test to ensure that all of the storage drivers
return a consistent value for the period.

Fix the SQLAlchemy driver so it returns 0 for the period
if no period is provided in the input to the query.

Change-Id: I3bc272aea1fd1ce29953d2080b58d75f5373513a
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Run some APIv1 tests on different backends"
Merge "Ensure missing period is treated consistently"
Exclude tests directory from installation.

This fixed bug #1146340 by excluding tests packages.

Change-Id: Id892c0a2e521a199a9ac42ed8d3729e17fffb5bd
HBase storage driver, initial version.

This is a new storage driver that supports storing of Ceilometer
data in an HBase backend. This version does not have metaquery
support yet.

Implements: blueprint hbase-storage-backend
Change-Id: Id3e7ec01434b1be30cce4f91b39461fc389a000f
Merge "HBase storage driver, initial version."
Kwapi pollster silently return no probre if keystone endpoint is not present

Fixes bug 1105404

Change-Id: Ib2673215ca1075d04283492d9e08540f9f786d08
api: run list meters tests against SQL backend too

Change-Id: Ide08d0e92aa29a0d79333d1e02e8184a2f6d132d
Signed-off-by: Julien Danjou <julien@danjou.info>
api: run list users test against SQL backend too

Change-Id: I89a0d970ac124c6ff51c8e8f9389b7dda7403462
Signed-off-by: Julien Danjou <julien@danjou.info>
api: run list_projects tests against SQL backend too

Change-Id: Id656537f74ebb636147fb8e6762a65652ad5c151
Signed-off-by: Julien Danjou <julien@danjou.info>
api: run compute duration by resource on SQL backend

Change-Id: Id5aa0bc2b24bb7d3e521d51b2b7777b99ea418e5
Signed-off-by: Julien Danjou <julien@danjou.info>