Update the instructions for installing ceilometer by hand
instead of using devstack.
bug 1070404
bug 1071494
Change-Id: I617e0467b40f218e5811da7b39db76c6eb466da6
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
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
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>
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
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>
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>
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>
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>
This fixes some API tests ran with CEILOMETER_LIVE_TEST
Change-Id: I3c77ffb3b6287dd4efcf0afd6f437033acb5f2b7
Signed-off-by: Julien Danjou <julien@danjou.info>
This wrapper was there to allow oslo-config changes through the gate
while keystoneclient hadn't been updated.
Also update to 2013.1b4.
Change-Id: I3d48673af58ae379e8e4d2c7fb4b4d81f3ed67dd
In real life, it happens that old VM run with flavors that have been
deleted. This wasn't handled properly.
This fixes bug #1131751
Change-Id: I11f32946394f0245f1696f29ff625b53a1a1cdb8
Signed-off-by: Julien Danjou <julien@danjou.info>
Changes the agent manager to poll based on pipeline configuration, to
support different interval requirement from different publishers.
This patch clean up the test case for agent managers. It makes the changes
a bit bigger, however, it's not so easy to seprate this cleanup patch
with different interval part.
For bp publisher-counters-frequency
Change-Id: I3c1163e37de6a17261d2c570843845696ebff58f
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
These changes were reverted in oslo by:
6f9cef8 Revert "Implement replay detection."
3b848ae Revert "Fast serialization of RPC envelopes for Kombu"
Change-Id: Iba03fe3961b095173f38bc1ab46df6272d8512fd
Incorporate the rules for specifying sample units based on
https://wiki.openstack.org/wiki/Ceilometer/Units
Change-Id: I8ce2275b0c844393b8f03dd6909f29a96c6f1b80
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Currently the compute manager test case use dictionary for instance,
however, this is not that correct because getattr() is not for dictionary.
As a result, the checking for OS-EXT-STS:vm_state in compute manager failed.
Change-Id: I7ce6ea09055c29affc13ecdbbfbe3d8c43a0408f
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Support generating meter signatures for meter messages with values of
list/tuple type.
Also fixed bug #1130601.
Change-Id: Iee1951196983c1e4f941fc0c6303c3c1bd3dcc0d
There are some changes in the serialization format for
messages sent with the kombu driver under some situations,
so bring in the new version of the driver to ensure we
can communicate with other components also using the new
format.
Change-Id: Iffd102cb780d13a40e93047a59917dc56c4d56ea
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Temporarily disable the nova notifier tests so we can work on
decoupling the notifier from the rest of ceilometer to fix
the issue with oslo.config.
Change-Id: Ib5c33a37a8eed464a36724e9bb8af162af44fc5c
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This makes the polling agent publish all counters in a row.
This fixes bug #1126990 and bug #1130475.
This moves the publisher() method to the *manager*. No agent/middleware
interacts with only one pipeline, this one an implementation mistake.
Change-Id: I45246849830066e39491f762b457adbdfa8d0e2e
Signed-off-by: Julien Danjou <julien@danjou.info>