<div dir="ltr">Hi Will,<div><br></div><div>What about notification events? I'm not sure what the best source of documentation is for events, but googling "OpenStack Notification Events" yields a bunch of information that should lead you in the right direction.</div><div><br></div><div>With events, you would write a custom scripts / daemon that polls rabbit for the latest events and acts upon certain ones (instance create, instance destroy).</div><div><br></div><div>Thanks,</div><div>Joe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 15, 2016 at 8:08 AM, William Josefsson <span dir="ltr"><<a href="mailto:william.josefson@gmail.com" target="_blank">william.josefson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes thanks Tomas. I thought of the nova boot --user-data myscript.sh<br>
option, but I'm not sure how that would manage a deprovisioning. nova<br>
delete myvm, at this point I also wanna run a delete script than to<br>
delete the A-record, or is that possible? thx! Will<br>
<br>
On Mon, Aug 15, 2016 at 7:59 PM, Tomáš  Vondra <<a href="mailto:vondra@homeatcloud.cz">vondra@homeatcloud.cz</a>> wrote:<br>
> Hi Will!<br>
> You may want one of two things:<br>
> a) OpenStack Designate, which is a DNS as a Service system integrated with Nova. It will add a record for every instance in a zone you delegate to it.<br>
> b) Cloud-init. It runs in nearly every OpenStack Linux OS image and is configured by /etc/cloud/cloud.cfg. There you will see a module that does a curl call at the end of the boot process. You don't have to modify the image, it takes configuration as a user-data script.<br>
> Tomas<br>
><br>
><br>
> -------- Původní zpráva --------<br>
> Odesílatel: William Josefsson <<a href="mailto:william.josefson@gmail.com">william.josefson@gmail.com</a>><br>
> Odesláno: 14. srpna 2016 17:54:45 SELČ<br>
> Komu: <a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.<wbr>openstack.org</a><br>
> Předmět: [Openstack-operators] cURL call at the end of provisioning and deprovisioning<br>
<div class="HOEnZb"><div class="h5">><br>
> Hi list,<br>
><br>
> I wanted to make a cURL call once an instance provisioning finished,<br>
> and also when an instance gets deprovisioned. I will make a http call<br>
> to PowerDNS for registration and deregistration of A record.<br>
><br>
> Is there any way to run a common for a instance once it is finished<br>
> provisioning and when it gets deprovisioned?<br>
><br>
> thx, will<br>
><br>
> ______________________________<wbr>_________________<br>
> OpenStack-operators mailing list<br>
> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
</div></div></blockquote></div><br></div>