<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1726373452;
        mso-list-type:hybrid;
        mso-list-template-ids:738081068 -1022986466 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I answer to myself ;)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I’ve added some configuration stuff in keystone.conf :<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#484848'>notification_driver = keystone.openstack.common.notifier.rpc_notifier<o:p></o:p></span></p><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>notification_topics = notifications<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>control_exchange = identity<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'><o:p> </o:p></span></pre><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>And  I’ve added a entry points for a plugin ceilometers.identity.notifications :<o:p></o:p></span></p><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>[ceilometer.collector]<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>project_created = ceilometer.identity.notifications.project:ProjectCreated<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>project_deleted = ceilometer.identity.notifications.project:ProjectDeleted<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>project_updated = ceilometer.identity.notifications.project:ProjectUpdated<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>In ceilometers.conf, subscribe to the newly identity exchange channel<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>http_control_exchanges=identity<o:p></o:p></span></pre><pre style='mso-margin-top-alt:12.0pt;margin-right:12.0pt;margin-bottom:12.0pt;margin-left:19.2pt;background:#FAFAFA'><span lang=EN-US style='font-size:9.0pt;color:#484848'>identity_control_exchange=ceilometer.identity.notifications<o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Voila It works, I received notification for project.* </span><span lang=EN-US style='font-family:Wingdings;color:#1F497D'>J</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span style='color:#1F497D'><o:p> </o:p></span></a></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> MICHON Anthony [mailto:anthony.michon@eurogiciel.fr] <br><b>Envoyé :</b> lundi 10 février 2014 12:44<br><b>À :</b> openstack@lists.openstack.org<br><b>Objet :</b> [Openstack] [Ceilometer/Telemetry] How to receive events fromkeystone/identity component ?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi all<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I need to call custom action on receiving event identity.project.updated sent by keystone.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I began to write a plugin notification agent in ceilometers to listen to it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>But I figured lately in the following diagram <a href="http://docs.openstack.org/developer/ceilometer/_images/1-Collectorandagents.png">http://docs.openstack.org/developer/ceilometer/_images/1-Collectorandagents.png</a> that keystone would not sending event in the notification bus !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Besides there is no configuration variable on exchange channel to listen from keystone, only nova, glance, neutron and cinder :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US># Exchanges name to listen for notifications (multi valued)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>#http_control_exchanges=nova<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>#http_control_exchanges=glance<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>#http_control_exchanges=neutron<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'>#http_control_exchanges=cinder<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal>My environnements : <o:p></o:p></p><p class=MsoNormal><span lang=EN-US>RDO on Centos (qpid based bus)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Devstack on ubuntu (rabbitmq), notice that the process_notification is never called, even for nova events (instance.*), that’s another problem<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US>So my questions :<o:p></o:p></span></b></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span lang=EN-US>Is keystone definitely out of bus notification with ceilometers ?<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span lang=EN-US>Should I use a pollster (and call the identity api) rather ? <o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>          </span></span></span><![endif]><span lang=EN-US>Or should I adopt another strategy to listen keystone events ?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Anthony<o:p></o:p></span></p></div></body></html>