Ask Your Question

FrancoisP's profile - activity

2015-05-19 09:19:49 -0600 received badge  Nice Question (source)
2014-09-16 23:41:32 -0600 received badge  Student (source)
2014-06-22 07:33:50 -0600 received badge  Famous Question (source)
2014-06-21 05:28:53 -0600 received badge  Notable Question (source)
2014-05-30 08:18:55 -0600 received badge  Popular Question (source)
2014-05-18 21:03:39 -0600 asked a question Can new Ceilometer plugins be loaded without reinstalling ?

Hello,

The task I am working on is to measure VMs spawning time on an OpenStack system. For this, I would like Ceilometer to capture compute.instance.update events, and be able to read the timestamp associated to a state change for a specific VM.

I have read OpenStack documentation on writing Ceilometer agent plugins, and came up with the following (please take note that I am using Havana):

1) To make Nova generate compute.instance.update events, I modified nova.conf file as follows on each Compute node:

notification_driver = nova.openstack.common.notifier.rpc_notifier
notification_driver = ceilometer.compute.nova_notifier

notify_on_state_change = vm_and_task_state

2) On Controller node, I inserted plugin code in file ceilometer/compute/notifications.py.

Plugin inherits from class NotificationBase, and contains event_types and process_notification(self, message), as mentioned in OpenStack documentation.

I restarted services and launched VMs, but I don't see that the plugin was loaded (with ceilometer-collector with -v option). Do I absolutely have to specify the plugin in setup.cfg and reinstall Ceilometer ? Or is there a way do do this without reinstalling ? I would prefer not reinstalling if this is feasible.

I am aware that I am missing a few pieces of the puzzle, ramping up on Python and OpenStack at the same time. We are trying to promote the use of OpenStack to potential customers of our product, and benchmarking is very important to us.

Thank you !

François P.