[openstack-dev] Adding notifications to Horizon

Lance D Bragstad ldbragst at us.ibm.com
Mon Nov 25 17:21:55 UTC 2013




Sandy Walsh <sandy.walsh at rackspace.com> wrote on 11/25/2013 10:30:05 AM:

> From: Sandy Walsh <sandy.walsh at rackspace.com>
> To: <openstack-dev at lists.openstack.org>,
> Date: 11/25/2013 10:34 AM
> Subject: Re: [openstack-dev] Adding notifications to Horizon
>
> +1 on the inline method. It makes it clear when a notification should be
> emitted and, as you say, handles the exception handling better.

This might be a good opportunity to add the decorator from Keystone's
notification module to Oslo-incubator, and recycle some of that code.

https://github.com/openstack/keystone/blob/master/keystone/notifications.py#L26


I know some projects may require more information to be sent in the event
payload:
https://github.com/openstack/nova/blob/master/nova/compute/api.py#L783

but a general case (like Keystone) that requires only a UUID of the
resource
and the type of action being created, the current decorator does this
pretty well.
https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L66


If this is the direction of event notifications in Horizon, it would be
nice to
settle on one implementation.

>
> Also, if it makes sense for Horizon, consider bracketing long-running
> operations in .start/.end pairs. This will help with performance tuning
> and early error detection.
>
> More info on "well behaved notifications" in here:
>
http://www.sandywalsh.com/2013/09/notification-usage-in-openstack-report.html

>
> Great to see!
>
> -S
>
>
> On 11/25/2013 11:58 AM, Florent Flament wrote:
> > Hi,
> >
> > I am interested in adding AMQP notifications to the Horizon dashboard,
> > as described in the following blueprint:
> > https://blueprints.launchpad.net/horizon/+spec/horizon-notifications
> >
> > There are currently several implementations in Openstack. While
> > Nova and Cinder define `notify_about_*` methods that are called
> > whenever a notification has to be sent, Keystone uses decorators,
> > which send appropriate notifications when decorated methods are
> > called.
> >
> > I fed the blueprint's whiteboard with an implementation proposal,
> > based on Nova and Cinder implementation. I would be interested in
> > having your opinion about which method would fit best, and whether
> > these notifications make sense at all.
> >
> > Cheers,
> > Florent Flament
> >
> > _______________________________________________
> > OpenStack-dev mailing list
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



Best Regards,

Lance Bragstad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131125/b3686fe2/attachment.html>


More information about the OpenStack-dev mailing list