These files really only work for a devstack setup,
but the demonstrate what one would need to do in
a real deployment behind mod_wsgi.
Change-Id: If60ce2aa0b89c055ccc0411aece28042b14ab633
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
- Move bin/ceilometer-api-v2 to bin/ceilometer-api
- use VersionSelectorApplication() as the base application.
bug #1086381
Change-Id: Ia74938eb351fc374450932a91b21c0755afca2e5
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Provide a units value if it's missing in the existing mongodb data. This
is for the backward compatibility issue when the data had been already
stored before the counter_unit field was added in our meter definition.
Fixed bug #1098603.
Change-Id: I1ff3e325dc9b226e4441de6f5f9118fced67cf33
Make all the source and tests HACKING compliant and
enable tox -e hacking on by default.
Relative directory checks not enabled (yet)
Change-Id: I8803f67c49b4d16caebe76ae690092ae5c9a6dd3
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>
Switch to the new oslo.config package which was renamed from
oslo-config.
Use python-keystoneclient master version as a temporary workaround for
bug #1151665.
Temporary workdaround of the bug #1151345 by comment out the test code
to pass the jenkin's gate test.
Change-Id: I7c223f3e98c5d33993b345d93c27f97d3d926d80
This is just so we can use the log impl. for the binary api test (next commit).
Change-Id: I00e40060e12dce417b39d3d0fe35fb264272fd8b
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
The test_by_user_period test is looking for the first
result set to come back with the wrong timestampe, and
not noticing that most of the test isn't even being
run. Be more explicit about the expected results.
Change-Id: I47e7699c877819d98f66d47dc85662f26767abd6
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Make sure we package the sample configuration files
along with the rest of the source files.
Change-Id: I957101fc5fb35f305924d362b94e24323e833c05
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>