<div dir="ltr"><div><div><div>Thanks Matt. The link was very useful. However, I couldn't make it work.<br></div><br>The event 'port.delete.end' has the following payload:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">{u'port_id': u'86580146-1772-4e32-8d7b-92bbb9131ae5'}<br></blockquote></div>It only provides the port_id. But without the tenant_id, I cannot get the context associated to the tenant. I've tried with all_tenants:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">context = DesignateContext.get_admin_context(all_tenants=True, edit_managed_records=True)<br></blockquote>but it does not find any record.<br><br></div>Is there any option in get_admin_context that permits me to delete records without knowing the tenant_id (although the records were created assigned to that tenant_id)?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 7:51 PM, Matt Fischer <span dir="ltr"><<a href="mailto:matt@mattfischer.com" target="_blank">matt@mattfischer.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">You can do it like we did for juno Designate as covered in our Vancouver talk start about 21 minutes:<div><br></div><div><a href="https://www.youtube.com/watch?v=N8y51zqtAPA" target="_blank">https://www.youtube.com/watch?v=N8y51zqtAPA</a><br></div><div><br></div><div>We've not ported the code to Kilo or Liberty yet but the approach may still work.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Nov 13, 2015 at 9:49 AM, Jaime Fernández <span dir="ltr"><<a href="mailto:jjjaime@gmail.com" target="_blank">jjjaime@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div>When removing an instance (with one floating address assigned) in Horizon, designate-sink only receives an event for instance removal. As a result, only the instance is removed but the floating addresses records are not removed.<br></div>I'm not sure if it's a bug in openstack (I guess that it should also notify about the unassignment of floating addresses) or it should be considered in the nova notification handler (<a href="https://github.com/openstack/designate/blob/master/designate/notification_handler/nova.py#L72" target="_blank">https://github.com/openstack/designate/blob/master/designate/notification_handler/nova.py#L72</a>).<br></div>However, it is not possible to add metadata in the floating IP records to save the instance_id and remove them easily when an instance is removed.<br></div>What's the best approach to remove the floating address records of an instance that is being removed?<br></div>
<br></div></div>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>