[openstack-dev] [keystone] Notification When Creating/Deleting a Tenant in openstack

Nader Lahouti nader.lahouti at gmail.com
Tue Feb 25 04:44:46 UTC 2014


Hi Lance,

And I'm doing the same. With the resource ID from the notification, I'm
using the keystoneclient to get the project name.


Regards,
Nader.



On Mon, Feb 24, 2014 at 10:50 AM, Lance D Bragstad <ldbragst at us.ibm.com>wrote:

> Response below.
>
>
> Best Regards,
>
> Lance Bragstad
> ldbragst at us.ibm.com
>
> Nader Lahouti <nader.lahouti at gmail.com> wrote on 02/24/2014 11:31:10 AM:
>
> > From: Nader Lahouti <nader.lahouti at gmail.com>
> > To: "OpenStack Development Mailing List (not for usage questions)"
> > <openstack-dev at lists.openstack.org>,
> > Date: 02/24/2014 11:37 AM
> > Subject: Re: [openstack-dev] [keystone] Notification When Creating/
> > Deleting a Tenant in openstack
>
> >
> > Hi Swann,
> >
> > I was able to listen to keystone notification by setting
> > notifications in the keystone.conf file. I only needed the
> > notification (CURD) for project and handle it in my plugin code so
> > don't need ceilometer to handle them.
> > The other issue is that the notification is only for limited to
> > resource_id  and don't have other information such as project name.
>
> The idea behind this when we originally implemented notifications in
> Keystone was to
> provide the resource being changed, such as 'user', 'project', 'trust' and
> the uuid of that
> resource. From there your plugin and could request more information from
> Keystone by doing a
> GET on that resource. This way would could keep the payload of the
> notification sent minimal
> in case all the information on the resource wasn't required.
>
> >
> > Thanks,
> > Nader.
> >
> >
>
> > On Mon, Feb 24, 2014 at 2:10 AM, Swann Croiset <swannon at gmail.com>
> wrote:
> >
> > Hi Nader,
> >
> > These notifications must be handled by Ceilometer like others [1].
> > it is surprising that it does not already identity meters indeed...
> > probably nobody needs them before you.
> > I guess it remains to open a BP and code them like I recently did for
> Heat [2]
> >
> >
> > http://docs.openstack.org/developer/ceilometer/measurements.html
> >
> https://blueprints.launchpad.net/ceilometer/+spec/handle-heat-notifications
> >
>
> > 2014-02-20 19:10 GMT+01:00 Nader Lahouti <nader.lahouti at gmail.com>:
> >
> > Thanks Dolph for link. The document shows the format of the message
> > and doesn't give any info on how to listen to the notification.
> > Is there any other document showing the detail on how to listen or
> > get these notifications ?
> >
> > Regards,
> > Nader.
> >
> > On Feb 20, 2014, at 9:06 AM, Dolph Mathews <dolph.mathews at gmail.com>
> wrote:
>
> > Yes, see:
> >
> >   http://docs.openstack.org/developer/keystone/event_notifications.html
> >
> > On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti <nader.lahouti at gmail.com
> > > wrote:
> > Hi All,
> >
> > I have a question regarding creating/deleting a tenant in openstack
> > (using horizon or CLI). Is there any notification mechanism in place
> > so that an application get informed of such an event?
> >
> > If not, can it be done using plugin to send create/delete
> > notification to an application?
> >
> > Appreciate your suggestion and help.
> >
> > Regards,
> > Nader.
> >
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > 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
>
> > _______________________________________________
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140224/de928e0d/attachment-0001.html>


More information about the OpenStack-dev mailing list