This is the same trick used in nova test suite.
Change-Id: I280dc6b3881d4a1d6503b9a0b313ec395b97e238
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
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
Also adds a nova prefix to the logger for now so messages from this module make it into the log file.
Change-Id: I57dc7e74a16955bcf42e9360e7de6e2f26ca09b0
This script is used to grab notifications from existing hosts
Change-Id: I45826fd6941d7bd93464bf945903b6b41223745c
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>