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

2014-03-01 Thread Dolph Mathews
On Fri, Feb 28, 2014 at 12:48 PM, Nader Lahouti wrote:

>
> 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.
>
>
> The issue is that, notification is send after project is deleted, so no
> additional information can be fetched (i.e. project name,...).  The GET
> request fails. As there is only project ID is in resource_info in the
> notification. In my case I at least need the name of the project.
>

What's the use case for needing the name of a project after it's been
deleted? It's mutable in keystone anyway, so you certainly shouldn't be
keeping references to project names.


>
> Thanks,
> Nader.
>
>
>
>
> On Mon, Feb 24, 2014 at 10:50 AM, Lance D Bragstad wrote:
>
>> Response below.
>>
>>
>> Best Regards,
>>
>> Lance Bragstad
>> ldbra...@us.ibm.com
>>
>> Nader Lahouti  wrote on 02/24/2014 11:31:10 AM:
>>
>> > From: Nader Lahouti 
>> > To: "OpenStack Development Mailing List (not for usage questions)"
>> > ,
>> > 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.
>>
>
> The issue that I'm facing is that GET fails as the project is deleted from
> database, so cannot get any info from the resource_info in the notification
> from
>
>>
>>
>> >
>> > Thanks,
>> > Nader.
>> >
>> >
>>
>> > On Mon, Feb 24, 2014 at 2:10 AM, Swann Croiset 
>> 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 :
>> >
>> > 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 
>> wrote:
>>
>> > Yes, see:
>> >
>> >   http://docs.openstack.org/developer/keystone/event_notifications.html
>> >
>> > On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti <
>> nader.laho...@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?
>> >
>> > Apprec

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

2014-02-28 Thread Nader Lahouti
> 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.


The issue is that, notification is send after project is deleted, so no
additional information can be fetched (i.e. project name,...).  The GET
request fails. As there is only project ID is in resource_info in the
notification. In my case I at least need the name of the project.

Thanks,
Nader.




On Mon, Feb 24, 2014 at 10:50 AM, Lance D Bragstad wrote:

> Response below.
>
>
> Best Regards,
>
> Lance Bragstad
> ldbra...@us.ibm.com
>
> Nader Lahouti  wrote on 02/24/2014 11:31:10 AM:
>
> > From: Nader Lahouti 
> > To: "OpenStack Development Mailing List (not for usage questions)"
> > ,
> > 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.
>

The issue that I'm facing is that GET fails as the project is deleted from
database, so cannot get any info from the resource_info in the notification
from

>
>
> >
> > Thanks,
> > Nader.
> >
> >
>
> > On Mon, Feb 24, 2014 at 2:10 AM, Swann Croiset 
> 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 :
> >
> > 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 
> wrote:
>
> > Yes, see:
> >
> >   http://docs.openstack.org/developer/keystone/event_notifications.html
> >
> > On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti  > > 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@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> >
> >
> > __

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

2014-02-24 Thread Nader Lahouti
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 wrote:

> Response below.
>
>
> Best Regards,
>
> Lance Bragstad
> ldbra...@us.ibm.com
>
> Nader Lahouti  wrote on 02/24/2014 11:31:10 AM:
>
> > From: Nader Lahouti 
> > To: "OpenStack Development Mailing List (not for usage questions)"
> > ,
> > 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 
> 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 :
> >
> > 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 
> wrote:
>
> > Yes, see:
> >
> >   http://docs.openstack.org/developer/keystone/event_notifications.html
> >
> > On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti  > > 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@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> >
> >
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> > ___
> > OpenStack-dev mailing list
> > OpenStack-dev@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Lance D Bragstad

Response below.


Best Regards,

Lance Bragstad
ldbra...@us.ibm.com

Nader Lahouti  wrote on 02/24/2014 11:31:10 AM:

> From: Nader Lahouti 
> To: "OpenStack Development Mailing List (not for usage questions)"
> ,
> 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  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 :
>
> 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 
wrote:

> Yes, see:
>
>   http://docs.openstack.org/developer/keystone/event_notifications.html
>
> On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti  > 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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Nader Lahouti
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.


Thanks,
Nader.




On Mon, Feb 24, 2014 at 2:10 AM, Swann Croiset  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 :
>
> 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 
>> wrote:
>>
>> Yes, see:
>>
>>   http://docs.openstack.org/developer/keystone/event_notifications.html
>>
>> On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti 
>> 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@lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>> ___
>> OpenStack-dev mailing list
>> OpenStack-dev@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-24 Thread Swann Croiset
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 :

> 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 
> wrote:
>
> Yes, see:
>
>   http://docs.openstack.org/developer/keystone/event_notifications.html
>
> On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti 
> 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@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-20 Thread Nader Lahouti
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  wrote:
> 
> Yes, see:
> 
>   http://docs.openstack.org/developer/keystone/event_notifications.html
> 
>> On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti  
>> 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@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-20 Thread Dolph Mathews
Yes, see:

  http://docs.openstack.org/developer/keystone/event_notifications.html

On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti 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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-02-20 Thread Nader Lahouti
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@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev