<p dir="ltr">Why don't use a hook?</p>
<div class="gmail_quote">El 02/03/2015 15:47, "Sandy Walsh" <<a href="mailto:sandy.walsh@rackspace.com">sandy.walsh@rackspace.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:10pt;color:#000000;background-color:#ffffff;font-family:'Courier New',monospace">
<p>Enable notifications on the compute nodes and you'll get compute.instance.create.end and compute.instance.delete.end notifications for these operations. It sounds like you only have them enabled on the scheduler/api nodes currently. <br>
</p>
<p><br>
</p>
<p><a href="https://wiki.openstack.org/wiki/SystemUsageData" target="_blank">https://wiki.openstack.org/wiki/SystemUsageData</a><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Chris <<a href="mailto:contact@progbau.de" target="_blank">contact@progbau.de</a>><br>
<b>Sent:</b> Monday, March 2, 2015 7:29 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] Action notification in nova for delete an instance</font>
<div> </div>
</div>
<div>
<div>
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">We want to execute our own code when an instance gets stared or deleted. So we had a look at the message queue and saw that during the creation of an instance three messages are send:</p>
<p class="MsoNormal">scheduler.run_instance.start</p>
<p class="MsoNormal">scheduler.run_instance.scheduled</p>
<p class="MsoNormal">scheduler.run_instance.end</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">That’s exactly what we need, but unfortunately for the deletion nothing is send.
</p>
<p class="MsoNormal">How we can get the notification for the deletion or is there a different way?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks in advance!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cheers</p>
<p class="MsoNormal">Chris</p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div>