The main requirements.txt and the one for documentation
had different specification for anyjson.
This change also makes explicit the fact that we
do not require anything other than what is listed
in pip-requires to install. The library function
looks at requirements.txt, too, which we don't have
and should not use.
Change-Id: I8e79ad0803e3a9ebeb2a1dae30b2e5abdbbe8276
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
implements bug #1021767
To sync db migration, for now use temporary
script tools/dbsync. Modify it to point
to your db url (example 'sqlite:///ceilometer.db'
or 'mysql://user:mypass@localhost/ceilometer').
Also ensure the database_connection= in conf
files point to same db url.
Change-Id: I1c72b0a6b860738e94cf19666cb47db88ac9b251
Addresses bug 1004462
This patch requires https://review.openstack.org/13666 to
have landed in glance, so that queue durability matches up
in order to avoid precondition failures from rabbitmq.
Change-Id: I18ba7d58625ef89e75d4e6b8896505ed11a1afb4
We are now able to listen to multiple topics, we don't use Nova RPC anymore
and we have a single namespace for all collector plugins.
Change-Id: I23603601cb285e9bd71beabfd9558fe903c24308
Signed-off-by: Julien Danjou <julien@danjou.info>
This adds a pollster for Glance, polling for all images present via the
Glance registry. Using the registry is obligatory because the Glance API
would not let a user see all images.
This fixes #1051335
Change-Id: I0c5afba8e3f1caf314b8dd95875fbe60b4c07f82
Signed-off-by: Julien Danjou <julien@danjou.info>
This is a bit more obvious than running the module.
I have basically just moved api/__main__.py into bin/ceilometer-api.
Change-Id: I50d614ea98b278563b576e0b3b9df03b391e2152
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Standard way of generating tarballs across
the openstack project.
Change-Id: I9aede3008df212ff6b0191c2152137d131e96e4b
Signed-off-by: Chuck Short <chuck.short@canonical.com>
This notification handler records a meter event with the
instance flavor included, making it easier to query
for the amount of time an instance existed as a specific
flavor.
Change-Id: Ic162ac021f864c2a98c47127288867e940469ceb
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
We want to be able to enable and disable the handlers
for notification events individually. This change
splits them up so they are registered with separate
names to allow that.
This change also adds python-glanceclient as a test
dependency so we can import the test code from nova.
Change-Id: Icc07baba3f00294d8ee505a2cc82f65c0c7f4fc9
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This changeset is phase one of changing the pollster API to support
polling individual instance resources. In this change, the single
compute agent is divided into two separate daemons.
The compute agent, for polling instance data, is still meant to
run on the compute server. The new "central" agent, for polling
resources not tied to a compute node, is meant to run on a management
server (probably the same place the collector runs). The configuration
of the pollsters is updated so that they are loaded by the
appropriate agent.
New base classes are introduced for each of the types of pollsters.
For now, the APIs remain the same.
The code implementing the agent and plugins has been moved around
to reflect the new logical relationships, and the documentation
is updated (including new installation instructions).
Change-Id: Ica6e947b2e457f7db6672147af1369a24066037d
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This change implements the first storage backend for
ceilometer using MongoDB and makes it the default
(instead of 'log').
- require pymongo and ming for tests
- clean up entry point registration using textwrap
- sketch in a simple data dump tool (tools/show_data.py)
Change-Id: I0e3763749e88a71bc57b263ea79fff8d065c03ce
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This patch includes several separate sets of changes which
have been reviewed individually but must be submitted
together to get past the newly updated version of pep8
and changes to the nova code base.
1. Replace our CONF object with the one from openstack.common.cfg.
There's no need to use our own, especially since some option
are already registered on it for us.
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2. Instead of importing the RPC code from nova, use
the openstack.common.rpc package. This change
copies that code in from openstack-common, changes
the imports throughout ceilometer, and fixes the
way the configuration settings are initialized.
3. Resolve PEP-8 issues introduced by an even more
pedantic version of pep8 (1.3.1). Some of the
changes are fixed, and some warnings/errors are
suppressed.
4. Ignore import errors in impl_qpid because the qpid
package is not installed on the stackforge test server.
5. Fix missing imports from gettextutils in openstack.common.
Change-Id: I0ee7d4b3278d8ff1951ca27592e3be8a87fe4854
Move user_id and project_id into the Counter
since the polling code has to pull those
values from the instance object.
Convert the libvirt polling code to plugins.
Have the agent manager load the plugins and run
them as part of its periodic task step.
Change-Id: Id59a696beb33c7c9a232460ce52e272f5408e70d
Implement a Counter class for use by notification plugins.
Define a base class for Notification plugins.
Define a dispatcher class for notification events to be passed to the plugins.
Add a notification plugin for instance creation and "instance" counters.
Add a reusable function for turning a Counter into a metering event dictionary.
Change-Id: Iaa626b98e1a661ed31cc8b8e95263c111df20888