[Openstack] [Ceilometer] Problem with nova resize events

2013-07-24 Thread Alessandro Barabesi
Hi everybody,

I have the following problem when resizing an instance. I expected ceilometer 
to generate samples
for the following resize related events:

compute.instance.resize.prep.start/.end
compute.instance.resize.confirm.start/.end

and, maybe, also for:

compute.instance.resize.start/.end
compute.instance.finish_resize.start/.end


but if I query ceilmeter I only find samples with 
event_type=compute.instance.finish_resize.end

Can you tell me if ceilometer is meant to collect only the 
compute.instance.finish_resize.end event?


Many thanks
Alex


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Ceilometer] Problem with nova resize events

2013-07-24 Thread Jay Lau
Hi Alex,

Not sure if it is a bug, but you are right, ceiloemeter did not send the
notification that you required. Perhaps you can log a bug or else you can
patch your cluster directly to enable this.

class ComputeInstanceNotificationBase(ComputeNotificationBase):
Convert compute.instance.* notifications into Counters

@staticmethod
def get_event_types():
return ['compute.instance.create.start',
'compute.instance.create.end',
'compute.instance.exists',
'compute.instance.update',
'compute.instance.delete.start',
'compute.instance.delete.end',
'compute.instance.finish_resize.end',
'compute.instance.resize.revert.end']
Thanks,

Jay


2013/7/24 Alessandro Barabesi abarab...@enter.it

 Hi everybody,

 I have the following problem when resizing an instance. I expected
 ceilometer to generate samples
 for the following resize related events:

 compute.instance.resize.prep.start/.end
 compute.instance.resize.confirm.start/.end

 and, maybe, also for:

 compute.instance.resize.start/.end
 compute.instance.finish_resize.start/.end


 but if I query ceilmeter I only find samples with
 event_type=compute.instance.finish_resize.end

 Can you tell me if ceilometer is meant to collect only the
 compute.instance.finish_resize.end event?


 Many thanks
 Alex


 ___
 Mailing list: https://launchpad.net/~openstack
 Post to : openstack@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~openstack
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Ceilometer] Problem with nova resize events

2013-07-24 Thread Julien Danjou
On Wed, Jul 24 2013, Jay Lau wrote:

 Hi Alex,

 Not sure if it is a bug, but you are right, ceiloemeter did not send the
 notification that you required. Perhaps you can log a bug or else you can
 patch your cluster directly to enable this.

 class ComputeInstanceNotificationBase(ComputeNotificationBase):
 Convert compute.instance.* notifications into Counters
 
 @staticmethod
 def get_event_types():
 return ['compute.instance.create.start',
 'compute.instance.create.end',
 'compute.instance.exists',
 'compute.instance.update',
 'compute.instance.delete.start',
 'compute.instance.delete.end',
 'compute.instance.finish_resize.end',
 'compute.instance.resize.revert.end']
 Thanks,

Not really a bug, but we know we could do better.
I've just cooked a patch that should improve that:

   https://review.openstack.org/38485

-- 
Julien Danjou
# Free Software hacker # freelance consultant
# http://julien.danjou.info


signature.asc
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [Ceilometer] Problem with nova resize events

2013-07-24 Thread Alessandro Barabesi
Hi Jay and Julien

thanks very much for your help. I am not terribly familiar with github and code 
reviews, 
I am not a developer :(, so maybe I am not using the correct terms here.

We are using version 2013.1.2  of ceilometer, so we have no 
ComputeInstanceNotificationBase class in notifications.py, instead we have 

 class _Base(plugin.NotificationBase) , which handles events with

get_event_types():
return ['compute.instance.create.end',
'compute.instance.exists',
'compute.instance.delete.start',
'compute.instance.finish_resize.end',
'compute.instance.resize.revert.end']

like ComputeInstanceNotificationBase does.

What is your suggestion in order to enable handlings of more compute events, 
considering we will go live in 2-3 weeks time?

1- We wait for Julien's patch to be approved and we upgrade to the patched 
version. 
2- We modify ourselves get_event_types() on our installation
3- ?

Thanks
Alex

-Original Message-
From: Julien Danjou [mailto:jul...@danjou.info] 
Sent: mercoledì 24 luglio 2013 17:39
To: Jay Lau
Cc: Alessandro Barabesi; openstack@lists.launchpad.net
Subject: Re: [Openstack] [Ceilometer] Problem with nova resize events

On Wed, Jul 24 2013, Jay Lau wrote:

 Hi Alex,

 Not sure if it is a bug, but you are right, ceiloemeter did not send 
 the notification that you required. Perhaps you can log a bug or else 
 you can patch your cluster directly to enable this.

 class ComputeInstanceNotificationBase(ComputeNotificationBase):
 Convert compute.instance.* notifications into Counters
 
 @staticmethod
 def get_event_types():
 return ['compute.instance.create.start',
 'compute.instance.create.end',
 'compute.instance.exists',
 'compute.instance.update',
 'compute.instance.delete.start',
 'compute.instance.delete.end',
 'compute.instance.finish_resize.end',
 'compute.instance.resize.revert.end']
 Thanks,

Not really a bug, but we know we could do better.
I've just cooked a patch that should improve that:

   https://review.openstack.org/38485

--
Julien Danjou
# Free Software hacker # freelance consultant # http://julien.danjou.info
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp