<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 12:48 PM, Nader Lahouti <span dir="ltr"><<a href="mailto:nader.lahouti@gmail.com" target="_blank">nader.lahouti@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<tt><font>The idea behind this when we originally implemented notifications in Keystone was to </font></tt><br>
<tt><font>provide the resource being changed, such as 'user', 'project', 'trust' and the uuid of that</font></tt><br><tt><font>resource. From there your plugin and could request more information from Keystone by doing a</font></tt><br>


<tt><font>GET on that resource. This way would could keep the payload of the notification sent minimal</font></tt><br><tt><font>in case all the information on the resource wasn't required.</font></tt></blockquote><div>


<br></div></div><div>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.</div>

</div></div></blockquote><div><br></div><div>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.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>
</div><div><br></div><div>Thanks,</div><div>Nader.</div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Mon, Feb 24, 2014 at 10:50 AM, Lance D Bragstad <span dir="ltr"><<a href="mailto:ldbragst@us.ibm.com" target="_blank">ldbragst@us.ibm.com</a>></span> wrote:<br>


</div><div class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
<p><font face="sans-serif">Response below.</font><br>
<font face="sans-serif"><br>
<br>
Best Regards, <br>
<br>
Lance Bragstad <br>
<a href="mailto:ldbragst@us.ibm.com" target="_blank">ldbragst@us.ibm.com</a></font><br>
<br>
<tt><font>Nader Lahouti <<a href="mailto:nader.lahouti@gmail.com" target="_blank">nader.lahouti@gmail.com</a>> wrote on 02/24/2014 11:31:10 AM:<br>
<br>
> From: Nader Lahouti <<a href="mailto:nader.lahouti@gmail.com" target="_blank">nader.lahouti@gmail.com</a>></font></tt><br>
<tt><font>> To: "OpenStack Development Mailing List (not for usage questions)" <br>
> <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>>, </font></tt><br>
<tt><font>> Date: 02/24/2014 11:37 AM</font></tt><br>
<tt><font>> Subject: Re: [openstack-dev] [keystone] Notification When Creating/<br>
> Deleting a Tenant in openstack</font></tt></p><div><br>
<tt><font>> <br>
> Hi Swann,</font></tt><br>
<tt><font>> <br>
> I was able to listen to keystone notification by setting <br>
> notifications in the keystone.conf file. I only needed the <br>
> notification (CURD) for project and handle it in my plugin code so <br>
> don't need ceilometer to handle them. </font></tt><br>
<tt><font>> The other issue is that the notification is only for limited to <br>
> resource_id  and don't have other information such as project name.</font></tt><br>
<br>
</div><tt><font>The idea behind this when we originally implemented notifications in Keystone was to </font></tt><br>
<tt><font>provide the resource being changed, such as 'user', 'project', 'trust' and the uuid of that</font></tt><br>
<tt><font>resource. From there your plugin and could request more information from Keystone by doing a</font></tt><br>
<tt><font>GET on that resource. This way would could keep the payload of the notification sent minimal</font></tt><br>
<tt><font>in case all the information on the resource wasn't required. </font></tt></div></blockquote><div><br></div></div><div>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  </div>

<div><div class="h5">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br><div><div>
<br>
<tt><font>> <br>
> Thanks,</font></tt><br>
<tt><font>> Nader.</font></tt><br>
<tt><font>> <br>
> <br>
</font></tt><br>
<tt><font>> On Mon, Feb 24, 2014 at 2:10 AM, Swann Croiset <<a href="mailto:swannon@gmail.com" target="_blank">swannon@gmail.com</a>> wrote:</font></tt><br>
<tt><font>> <br>
> Hi Nader,<br>
> <br>
> These notifications must be handled by Ceilometer like others [1].<br>
> it is surprising that it does not already identity meters indeed... <br>
> probably nobody needs them before you.</font></tt><br>
<tt><font>> I guess it remains to open a BP and code them like I recently did for Heat [2]</font></tt><br>
<tt><font>> <br>
> <br>
> <a href="http://docs.openstack.org/developer/ceilometer/measurements.html" target="_blank">http://docs.openstack.org/developer/ceilometer/measurements.html</a><br>
> <a href="https://blueprints.launchpad.net/ceilometer/+spec/handle-heat-notifications" target="_blank">https://blueprints.launchpad.net/ceilometer/+spec/handle-heat-notifications</a></font></tt><br>
<tt><font>> <br>
</font></tt><br>
<tt><font>> 2014-02-20 19:10 GMT+01:00 Nader Lahouti <<a href="mailto:nader.lahouti@gmail.com" target="_blank">nader.lahouti@gmail.com</a>>:</font></tt><br>
<tt><font>> <br>
> Thanks Dolph for link. The document shows the format of the message <br>
> and doesn't give any info on how to listen to the notification. </font></tt><br>
<tt><font>> Is there any other document showing the detail on how to listen or <br>
> get these notifications ?</font></tt><br>
<tt><font>> <br>
> Regards,</font></tt><br>
<tt><font>> Nader.</font></tt><br>
<tt><font>> <br>
> On Feb 20, 2014, at 9:06 AM, Dolph Mathews <<a href="mailto:dolph.mathews@gmail.com" target="_blank">dolph.mathews@gmail.com</a>> wrote:<br>
</font></tt><br>
<tt><font>> Yes, see:</font></tt><br>
<tt><font>> <br>
>   <a href="http://docs.openstack.org/developer/keystone/event_notifications.html" target="_blank">http://docs.openstack.org/developer/keystone/event_notifications.html</a></font></tt><br>
<tt><font>> <br>
> On Thu, Feb 20, 2014 at 10:54 AM, Nader Lahouti <<a href="mailto:nader.lahouti@gmail.com" target="_blank">nader.lahouti@gmail.com</a><br>
> > wrote:</font></tt><br>
<tt><font>> Hi All,</font></tt><br>
<tt><font>> <br>
> I have a question regarding creating/deleting a tenant in openstack <br>
> (using horizon or CLI). Is there any notification mechanism in place<br>
> so that an application get informed of such an event?</font></tt><br>
<tt><font>> <br>
> If not, can it be done using plugin to send create/delete <br>
> notification to an application?</font></tt><br>
<tt><font>> <br>
> Appreciate your suggestion and help.</font></tt><br>
<tt><font>> <br>
> Regards,</font></tt><br>
<tt><font>> Nader.</font></tt><br>
<tt><font>> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt><br>
<tt><font>> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><br>
<tt><font>> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt><br>
<tt><font>> <br>
> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt><br>
<tt><font>> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt></div></div><p></p></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>