<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, Miguel.<div class=""><br class=""></div><div class="">As I can see, Manjeet Singh Bhatia already proposed the change on review [1]—this patch adds the invoking a cleanup provided by l3-agent.<br class="">Actually, I like the option 2. And I'm going to implement it and compare to Manjeet's solution.</div><div class="">But can anybody suggest me, how can I manually reproduce the situation where netns-clean is needed to run for cleanup l3 namespaces? In which state should be these namespaces?</div><div class=""><br class=""></div><div class="">[1] <a href="https://review.openstack.org/#/c/383936/" class="">https://review.openstack.org/#/c/383936/</a></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Oct 2016, at 15:38, Miguel Angel Ajo Pelayo <<a href="mailto:majopela@redhat.com" class="">majopela@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Sergey!,<br class=""><br class="">This was my point of view on a possible solution:<br class=""><br class=""><a href="https://bugs.launchpad.net/neutron/+bug/1403455/comments/12" class="">https://bugs.launchpad.net/neutron/+bug/1403455/comments/12</a><br class=""><br class="">"""<br class="">After much thinking (and quite little doing) I believe the option "2"<br class="">I proposed is a rather reasonable one:<br class=""><br class="">2) Before cleaning a namespace blindly in the end, identify any<br class="">network service in the namespace (via netstat), kill those processes,<br class="">so they aren't orphaned, and then, kill the namespace.<br class=""><br class="">Any process should be safely killed that way, and if it's not, we can<br class="">complicate our lifes and code with "1":<br class="">1) Use stevedore HookManager to let out-of-tree repos register netns<br class="">prefixes declaration, and netns cleaners,<br class="">    so every piece of code (in-tree or out-of-tree) declare which<br class="">netns prefixes they use, and provide a netns cleanup<br class="">    hook to be called.<br class=""><br class="">"""<br class=""><br class="">Let me know what you think<br class=""><br class="">On Fri, Oct 7, 2016 at 2:15 PM, Sergey Belous <sbelous@mirantis.com> wrote:<br class=""><blockquote type="cite" class="">Hello everyone.<br class=""><br class="">I’m very interesting in this one<br class="">https://bugs.launchpad.net/neutron/+bug/1403455<br class="">Can anybody tell me, what is the current status of this bug? Is anybody<br class="">working on it now?<br class="">And as I can see, there are some options, that was discussed in comments to<br class="">this bug and… did anybody decide which solution is the best?<br class=""><br class=""><br class="">--<br class="">Best Regards,<br class="">Sergey Belous<br class=""><br class=""><br class="">__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br class=""><br class=""></blockquote><br class="">__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Best Regards,<br class="">Sergey Belous</div></div>

</div>
<br class=""></div></body></html>