620 Commits

Author SHA1 Message Date
Doug Hellmann
a90958085c Update manual installation instructions
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>
2013-03-07 13:53:04 -05:00
Mehdi Abaakouk
fba1ae00c3 Kwapi pollster silently return no probre if keystone endpoint is not present
Fixes bug 1105404

Change-Id: Ib2673215ca1075d04283492d9e08540f9f786d08
2013-03-05 16:13:35 +01:00
Jenkins
37bc0a7915 Merge "HBase storage driver, initial version." 2013-03-05 10:38:38 +00:00
Stas Maksimov
6f7525755f 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
2013-03-05 10:10:35 +00:00
Jenkins
d9c4de87af Merge "Ensure missing period is treated consistently" 2013-03-05 08:29:06 +00:00
Jenkins
581344b639 Merge "Run some APIv1 tests on different backends" 2013-03-05 02:09:42 +00:00
Doug Hellmann
2d049c1da3 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>
2013-03-04 16:11:05 -05:00
Chuck Short
34cb09d9b2 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
2013-03-04 11:40:42 -06:00
Julien Danjou
c41249e488 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>
2013-03-04 16:45:29 +01:00
Julien Danjou
346c4248e4 Remove old configuration metering_storage_engine
This is useless now.

Change-Id: I195cc626a6ae2d65535362c67f53663551933f9e
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-03-04 13:50:57 +01:00
Jenkins
4125b9e7c6 Merge "Set where=tests" 2013-03-04 01:30:31 +00:00
Jenkins
2fa5e50f3d Merge "send-counter: fix & test" 2013-03-03 23:55:00 +00:00
Julien Danjou
a86cdeba8c 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>
2013-03-01 15:49:32 +01:00
Jenkins
ca064bdbd6 Merge "Decouple the nova notifier from ceilometer code" 2013-03-01 13:51:44 +00:00
Jenkins
a6ba521c8b Merge "compute: fix unknown flavor handling" 2013-02-28 01:32:38 +00:00
Doug Hellmann
7d8bd50d08 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>
2013-02-26 14:22:27 -05:00
Julien Danjou
d066837415 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>
2013-02-26 11:57:52 +01:00
Jenkins
1d44a182cb Merge "Remove nose wrapper script" 2013-02-26 10:02:10 +00:00
Jenkins
59514bf6f2 Merge "Add glossary definitions for additional terms" 2013-02-26 10:00:40 +00:00
Jenkins
f96476dd7a Merge "Allow empty dict as metaquery param for sqlalchemy." 2013-02-25 22:46:53 +00:00
Doug Hellmann
b4cd6f1fab Remove nose wrapper script
Change-Id: I8e244aa892ac66dddd1be96369dfb0e90cc1543d
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-02-25 16:27:52 -05:00
Julien Danjou
f8337b52fc Fix count type in MongoDB
This fixes some API tests ran with CEILOMETER_LIVE_TEST

Change-Id: I3c77ffb3b6287dd4efcf0afd6f437033acb5f2b7
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-02-25 17:26:18 +01:00
Jenkins
0ccc81e1c4 Merge "Remove compat cfg wrapper" 2013-02-25 15:02:14 +00:00
OpenStack Jenkins
2d8f7c157f Merge "Imported Translations from Transifex" 2013-02-25 15:00:52 +00:00
Angus Salkeld
0cdd947579 Make sure that the period is returned as an int as the api expects an int.
bug #1132628

Change-Id: Iccb71232e1fbb53318af231a4966c0d19a83fca5
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2013-02-25 21:49:08 +11:00
OpenStack Jenkins
70003c9226 Imported Translations from Transifex
Change-Id: I83e1eea98f5b10d3358a014a0f3a4dabc67ac57d
2013-02-25 00:02:03 +00:00
Mark McLoughlin
df5ac5b2f2 Remove compat cfg wrapper
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
2013-02-23 09:53:55 +00:00
Julien Danjou
d110715ddf compute: fix unknown flavor handling
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>
2013-02-22 16:05:15 +01:00
Lianhao Lu
84f5e6318c Allow empty dict as metaquery param for sqlalchemy.
Corrected the test of metaquery param in sqlalchemy backend.

Fixed bug #1131620.

Change-Id: Ief7e78444b99f6e8a46bd634c9be12708e10b212
2013-02-22 21:36:31 +08:00
Dan Florea
a63622a533 Add glossary definitions for additional terms
Add glossary definitions for the following: meter, project, resource, sample, source, user.

Fixes bug 1070382

Change-Id: I56120cafcdb6faa160724e7774c6e54a25e1bf43
2013-02-21 19:59:57 -08:00
Yunhong, Jiang
9335d81316 Support different publisher interval
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>
2013-02-22 00:37:57 +08:00
Mark McLoughlin
d767d2c5f5 Fix message envelope keys.
update.py from oslo-incubator broke the keys used in the rpc message
envelope.  This fixes it.

Change-Id: I2fc89f978e507aa4f54e1b137a69b1601eb9b682
2013-02-21 13:31:48 +00:00
Mark McLoughlin
d05ae3949f Revert recent rpc wire format changes
These changes were reverted in oslo by:

  6f9cef8 Revert "Implement replay detection."
  3b848ae Revert "Fast serialization of RPC envelopes for Kombu"

Change-Id: Iba03fe3961b095173f38bc1ab46df6272d8512fd
2013-02-21 13:31:01 +00:00
Jenkins
dd30fa98e9 Merge "Update common to get new kombu serialization code" 2013-02-21 13:16:14 +00:00
Jenkins
67d280c4f0 Merge "Fix a bug in compute manager test case" 2013-02-21 12:20:22 +00:00
Doug Hellmann
793fcae45b Document the rules for units
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>
2013-02-21 06:49:29 -05:00
Yunhong, Jiang
a4ca3cf5e0 Fix a bug in compute manager test case
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>
2013-02-21 19:25:14 +08:00
Jenkins
bf3bb5ffc6 Merge "plugin: don't use @staticmethod with abc" 2013-02-21 10:51:57 +00:00
Jenkins
ce3dca922f Merge "Support list/tuple as meter message value." 2013-02-21 10:46:31 +00:00
OpenStack Jenkins
1237ad4fde Merge "Imported Translations from Transifex" 2013-02-21 10:39:08 +00:00
Julien Danjou
fba34c9ea4 plugin: don't use @staticmethod with abc
Otherwise that breaks the check

Change-Id: I30d652892d54bb05d45e90eaa97bafc66a584de0
Signed-off-by: Julien Danjou <julien@danjou.info>
2013-02-21 11:29:46 +01:00
Lianhao Lu
1fc532371d Support list/tuple as meter message value.
Support generating meter signatures for meter messages with values of
list/tuple type.

Also fixed bug #1130601.

Change-Id: Iee1951196983c1e4f941fc0c6303c3c1bd3dcc0d
2013-02-21 17:44:02 +08:00
Jenkins
8bca547c0e Merge "pipeline: manager publish multiple counters" 2013-02-21 02:57:43 +00:00
OpenStack Jenkins
25ae7fa33e Imported Translations from Transifex
Change-Id: I77b759e66528e01527ff6a5a780bd77f481a178b
2013-02-21 00:01:54 +00:00
Doug Hellmann
cf84207743 Update common to get new kombu serialization code
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>
2013-02-20 12:57:12 -05:00
Doug Hellmann
22b1e58201 Disable notifier tests
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>
2013-02-20 12:35:54 -05:00
Julien Danjou
21af2e30b3 pipeline: manager publish multiple counters
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>
2013-02-20 11:17:11 +01:00
OpenStack Jenkins
e9a7decae5 Imported Translations from Transifex
Change-Id: I3120da7c8ff4c5a05eb5ffc08ec0c7d436a3997a
2013-02-20 00:02:05 +00:00
Jenkins
93e27b9dc5 Merge "Use oslo-config-2013.1b3" 2013-02-18 15:53:18 +00:00
Jenkins
307505ba8f Merge "Use join_consumer_pool() for notifications" 2013-02-18 15:03:47 +00:00