)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"136feb93a9aad12e1c0fcb5316f78c09ed428d20","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used wit the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Example cmd line when unstacking a devstack install:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAALH%2F%2Fr%2B8%3D","line":12,"updated":"2012-08-20 15:46:44.000000000","message":"wit \u003d\u003e with","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used wit the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Example cmd line when unstacking a devstack install:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAALH%2F%2FrHU%3D","line":12,"in_reply_to":"AAAALH%2F%2Fr%2B8%3D","updated":"2012-08-21 17:09:31.000000000","message":"Done","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used with the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAALH%2F%2FiWU%3D","line":11,"updated":"2012-09-03 10:58:39.000000000","message":"Not sure about this... should it be \"an utility?\"","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used with the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAALH%2F%2Fh2g%3D","line":11,"in_reply_to":"AAAALH%2F%2FiWU%3D","updated":"2012-09-04 05:48:19.000000000","message":"Done","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used with the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Example cmd line when unstacking a devstack install:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAALH%2F%2FiWY%3D","line":12,"updated":"2012-09-03 10:58:39.000000000","message":"missing word? perhaps \"Namespace\"","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Fixes bug 1035366"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Adds a utility called quantum-netns-clean that can be used to remove old"},{"line_number":12,"context_line":"namespaces or if used with the --force option can be used to clean-up a"},{"line_number":13,"context_line":"during unstack.sh"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Example cmd line when unstacking a devstack install:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"AAAALH%2F%2Fh2c%3D","line":12,"in_reply_to":"AAAALH%2F%2FiWY%3D","updated":"2012-09-04 05:48:19.000000000","message":"Done","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"}],"quantum/agent/linux/ip_lib.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"136feb93a9aad12e1c0fcb5316f78c09ed428d20","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        \"\"\"Conditionally destroy the namespace if it is empty.\"\"\""},{"line_number":98,"context_line":"        if self.namespace and self.netns.exists(self.namespace):"},{"line_number":99,"context_line":"            devices \u003d [d.name for d in self.get_devices()]"},{"line_number":100,"context_line":"            if devices \u003d\u003d [] or devices \u003d\u003d [\u0027lo\u0027]:"},{"line_number":101,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def add_device_to_namespace(self, device):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2Fr%2Bg%3D","line":100,"updated":"2012-08-20 15:46:44.000000000","message":"Maybe consider having a define for the loopback (\u0027lo\u0027)","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        \"\"\"Conditionally destroy the namespace if it is empty.\"\"\""},{"line_number":98,"context_line":"        if self.namespace and self.netns.exists(self.namespace):"},{"line_number":99,"context_line":"            devices \u003d [d.name for d in self.get_devices()]"},{"line_number":100,"context_line":"            if devices \u003d\u003d [] or devices \u003d\u003d [\u0027lo\u0027]:"},{"line_number":101,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def add_device_to_namespace(self, device):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2FrG8%3D","line":100,"in_reply_to":"AAAALH%2F%2Fr%2Bg%3D","updated":"2012-08-21 17:09:31.000000000","message":"Done","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":102,"context_line":"            devices \u003d [d for d in self.get_devices()"},{"line_number":103,"context_line":"                       if d.name !\u003d LOOPBACK_DEVNAME]"},{"line_number":104,"context_line":"            if devices \u003d\u003d []:"},{"line_number":105,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def add_device_to_namespace(self, device):"},{"line_number":108,"context_line":"        if self.namespace:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FpeA%3D","line":105,"updated":"2012-08-23 09:46:57.000000000","message":"We could return true if the namespace has been actually deleted","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            devices \u003d [d for d in self.get_devices()"},{"line_number":103,"context_line":"                       if d.name !\u003d LOOPBACK_DEVNAME]"},{"line_number":104,"context_line":"            if devices \u003d\u003d []:"},{"line_number":105,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    def add_device_to_namespace(self, device):"},{"line_number":108,"context_line":"        if self.namespace:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fo2I%3D","line":105,"in_reply_to":"AAAALH%2F%2FpeA%3D","updated":"2012-08-24 05:34:16.000000000","message":"Done","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":101,"context_line":"        if self.namespace and self.netns.exists(self.namespace):"},{"line_number":102,"context_line":"            devices \u003d [d for d in self.get_devices()"},{"line_number":103,"context_line":"                       if d.name !\u003d LOOPBACK_DEVNAME]"},{"line_number":104,"context_line":"            if devices \u003d\u003d []:"},{"line_number":105,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":106,"context_line":"                return True"},{"line_number":107,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Foqk%3D","line":104,"updated":"2012-08-24 06:14:33.000000000","message":"python purist would probably say to use len(devices) \u003d\u003d 0 or \u0027not devices\u0027","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        if self.namespace and self.netns.exists(self.namespace):"},{"line_number":102,"context_line":"            devices \u003d [d for d in self.get_devices()"},{"line_number":103,"context_line":"                       if d.name !\u003d LOOPBACK_DEVNAME]"},{"line_number":104,"context_line":"            if devices \u003d\u003d []:"},{"line_number":105,"context_line":"                self.netns.delete(self.namespace)"},{"line_number":106,"context_line":"                return True"},{"line_number":107,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2FlC8%3D","line":104,"in_reply_to":"AAAALH%2F%2Foqk%3D","updated":"2012-08-31 03:45:02.000000000","message":"good catch... fixed","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def get_devices(self, exclude_loopback\u003dFalse):"},{"line_number":69,"context_line":"        retval \u003d []"},{"line_number":70,"context_line":"        output \u003d self._execute(\u0027o\u0027, \u0027link\u0027, (\u0027list\u0027,),"},{"line_number":71,"context_line":"                               self.root_helper, self.namespace)"},{"line_number":72,"context_line":"        for line in output.split(\u0027\\n\u0027):"},{"line_number":73,"context_line":"            if \u0027\u003c\u0027 not in line:"},{"line_number":74,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAALH%2F%2FiWc%3D","line":71,"updated":"2012-09-03 10:58:39.000000000","message":"I have managed to end up in a situation where the namespace is listed but it does not actually exist anymore (I guess because of stale records in /var/run/netns). In this case every command you run on the namespace will fail.\n\nDo we need to take care of this case, and expect failures from ip netns exec? Or shall we treat this case as beyond the scope of the utility?","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    def get_devices(self, exclude_loopback\u003dFalse):"},{"line_number":69,"context_line":"        retval \u003d []"},{"line_number":70,"context_line":"        output \u003d self._execute(\u0027o\u0027, \u0027link\u0027, (\u0027list\u0027,),"},{"line_number":71,"context_line":"                               self.root_helper, self.namespace)"},{"line_number":72,"context_line":"        for line in output.split(\u0027\\n\u0027):"},{"line_number":73,"context_line":"            if \u0027\u003c\u0027 not in line:"},{"line_number":74,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAALH%2F%2Fh2U%3D","line":71,"in_reply_to":"AAAALH%2F%2FiWc%3D","updated":"2012-09-04 05:48:19.000000000","message":"For now, I think that we should treat this as a something outside the scope of the utility.  I\u0027m not sure I like cleaning up another executable\u0027s process state.","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"}],"quantum/agent/netns_cleanup_util.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"136feb93a9aad12e1c0fcb5316f78c09ed428d20","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    retval \u003d force"},{"line_number":82,"context_line":"    ip \u003d ip_lib.IPWrapper(conf.root_helper, namespace)"},{"line_number":83,"context_line":"    devices \u003d [d.link.name for d in ip.get_devices() if d.name !\u003d \u0027lo\u0027]"},{"line_number":84,"context_line":"    if not devices:"},{"line_number":85,"context_line":"        retval \u003d True"},{"line_number":86,"context_line":"    return retval"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2Fr%2BY%3D","line":83,"updated":"2012-08-20 15:46:44.000000000","message":"Ditto for the loopback","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    retval \u003d force"},{"line_number":82,"context_line":"    ip \u003d ip_lib.IPWrapper(conf.root_helper, namespace)"},{"line_number":83,"context_line":"    devices \u003d [d.link.name for d in ip.get_devices() if d.name !\u003d \u0027lo\u0027]"},{"line_number":84,"context_line":"    if not devices:"},{"line_number":85,"context_line":"        retval \u003d True"},{"line_number":86,"context_line":"    return retval"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAALH%2F%2FrGw%3D","line":83,"in_reply_to":"AAAALH%2F%2Fr%2BY%3D","updated":"2012-08-21 17:09:31.000000000","message":"Done","commit_id":"bc46db552777f34154b06c74027925e78420d1dd"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":40,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":41,"context_line":"                    default\u003dFalse,"},{"line_number":42,"context_line":"                    help\u003d\u0027Delete the namespace by removing all devices.\u0027),"},{"line_number":43,"context_line":"        cfg.StrOpt(\u0027ovs_integration_bridge\u0027,"},{"line_number":44,"context_line":"                   default\u003d\u0027br-int\u0027,"},{"line_number":45,"context_line":"                   help\u003d\u0027Name of Open vSwitch bridge to use\u0027),"},{"line_number":46,"context_line":"    ]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fpeo%3D","line":43,"updated":"2012-08-23 09:46:57.000000000","message":"Do we need a distinct option for linux bridge name, or is support for linux bridge still a todo?","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":41,"context_line":"                    default\u003dFalse,"},{"line_number":42,"context_line":"                    help\u003d\u0027Delete the namespace by removing all devices.\u0027),"},{"line_number":43,"context_line":"        cfg.StrOpt(\u0027ovs_integration_bridge\u0027,"},{"line_number":44,"context_line":"                   default\u003d\u0027br-int\u0027,"},{"line_number":45,"context_line":"                   help\u003d\u0027Name of Open vSwitch bridge to use\u0027),"},{"line_number":46,"context_line":"    ]"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FpFo%3D","line":43,"in_reply_to":"AAAALH%2F%2Fpeo%3D","updated":"2012-08-24 05:34:16.000000000","message":"No.  We\u0027re need the OVS bridge name so that we can pass the proper bridge to ovs-vsctl to delete the port since ip link delete won\u0027t work for OVS devices.","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    if candidates:"},{"line_number":133,"context_line":"        # Wait for 1 second so that namespaces being brought up"},{"line_number":134,"context_line":"        # aren\u0027t confused for old/empty ones."},{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fpd4%3D","line":134,"updated":"2012-08-23 09:46:57.000000000","message":"Can you clarify how this wait will ensure that new namespaces will not be confused with ns to be garbage collected?","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    if candidates:"},{"line_number":133,"context_line":"        # Wait for 1 second so that namespaces being brought up"},{"line_number":134,"context_line":"        # aren\u0027t confused for old/empty ones."},{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FosU%3D","line":134,"in_reply_to":"AAAALH%2F%2Fpd4%3D","updated":"2012-08-24 05:34:16.000000000","message":"I\u0027ve added comments.  The sleep just mitigates the a race condition that exists with a concurrent create by an agent the this script identifying candidates for deletion.  We could use lock files for process serialization, but it introduces more complexity than needed for a utility that will primarily be run by unstack.sh.","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":132,"context_line":"    if candidates:"},{"line_number":133,"context_line":"        # Wait for 1 second so that namespaces being brought up"},{"line_number":134,"context_line":"        # aren\u0027t confused for old/empty ones."},{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"},{"line_number":138,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fpes%3D","line":135,"updated":"2012-08-23 09:46:57.000000000","message":"the sleep is actually for 2 seconds, not 1 as stated in the comment","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    if candidates:"},{"line_number":133,"context_line":"        # Wait for 1 second so that namespaces being brought up"},{"line_number":134,"context_line":"        # aren\u0027t confused for old/empty ones."},{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"},{"line_number":138,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FosQ%3D","line":135,"in_reply_to":"AAAALH%2F%2Fpes%3D","updated":"2012-08-24 05:34:16.000000000","message":"Done","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"},{"line_number":138,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2Fpeg%3D","line":138,"updated":"2012-08-23 09:46:57.000000000","message":"Should we warn the user if some of the eligible namespaces were not deleted?","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":135,"context_line":"        eventlet.sleep(2)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        for namespace in candidates:"},{"line_number":138,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FosM%3D","line":138,"in_reply_to":"AAAALH%2F%2Fpeg%3D","updated":"2012-08-24 05:34:16.000000000","message":"They will be warned via the output to syserr that\u0027s generated in delete\u0027s exception handler.","commit_id":"5ade65d60741e18fa2110bf0f3d719851ba73512"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":43,"context_line":"        cfg.StrOpt(\u0027ovs_integration_bridge\u0027,"},{"line_number":44,"context_line":"                   default\u003d\u0027br-int\u0027,"},{"line_number":45,"context_line":"                   help\u003d\u0027Name of Open vSwitch bridge to use\u0027),"},{"line_number":46,"context_line":"    ]"},{"line_number":47,"context_line":"    conf \u003d cfg.CommonConfigOpts()"},{"line_number":48,"context_line":"    conf.register_opts(opts)"},{"line_number":49,"context_line":"    conf.register_opts(dhcp_agent.DhcpAgent.OPTS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2FoqQ%3D","line":46,"updated":"2012-08-24 06:14:33.000000000","message":"should we include a default config file?  seems like we\u0027d need to, as there\u0027s no valid default value for \u0027state_path\u0027.","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        cfg.StrOpt(\u0027ovs_integration_bridge\u0027,"},{"line_number":44,"context_line":"                   default\u003d\u0027br-int\u0027,"},{"line_number":45,"context_line":"                   help\u003d\u0027Name of Open vSwitch bridge to use\u0027),"},{"line_number":46,"context_line":"    ]"},{"line_number":47,"context_line":"    conf \u003d cfg.CommonConfigOpts()"},{"line_number":48,"context_line":"    conf.register_opts(opts)"},{"line_number":49,"context_line":"    conf.register_opts(dhcp_agent.DhcpAgent.OPTS)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2FlCg%3D","line":46,"in_reply_to":"AAAALH%2F%2FoqQ%3D","updated":"2012-08-31 03:45:02.000000000","message":"We could. I\u0027m just worried about config file proliferation.","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":59,"context_line":"    dhcp_driver \u003d importutils.import_object("},{"line_number":60,"context_line":"        conf.dhcp_driver,"},{"line_number":61,"context_line":"        conf,"},{"line_number":62,"context_line":"        FakeNetwork(namespace),"},{"line_number":63,"context_line":"        conf.root_helper,"},{"line_number":64,"context_line":"        null_delegate)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2FoqY%3D","line":62,"updated":"2012-08-24 06:14:33.000000000","message":"not all namespaces are network-ids, in particular, L3 namespaces.  how will this handle that?  In the case of L3, i mangle namespaces so we can easily identify L3-namespaces and leave others alone.","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    dhcp_driver \u003d importutils.import_object("},{"line_number":60,"context_line":"        conf.dhcp_driver,"},{"line_number":61,"context_line":"        conf,"},{"line_number":62,"context_line":"        FakeNetwork(namespace),"},{"line_number":63,"context_line":"        conf.root_helper,"},{"line_number":64,"context_line":"        null_delegate)"},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Fj18%3D","line":62,"in_reply_to":"AAAALH%2F%2FoqY%3D","updated":"2012-08-31 03:45:02.000000000","message":"Done","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":83,"context_line":"    devices \u003d [d.link.name for d in ip.get_devices()"},{"line_number":84,"context_line":"               if d.name !\u003d ip_lib.LOOPBACK_DEVNAME]"},{"line_number":85,"context_line":"    if not devices:"},{"line_number":86,"context_line":"        retval \u003d True"},{"line_number":87,"context_line":"    return retval"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Foqg%3D","line":86,"updated":"2012-08-24 06:14:33.000000000","message":"this check seems to be the same as used in the garbage collect method in ip_lib.py.  Maybe refactor it into a ip_lib method on namespace like is_empty(), or given that logic also seems to be used below, something like get_active_devices()","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    devices \u003d [d.link.name for d in ip.get_devices()"},{"line_number":84,"context_line":"               if d.name !\u003d ip_lib.LOOPBACK_DEVNAME]"},{"line_number":85,"context_line":"    if not devices:"},{"line_number":86,"context_line":"        retval \u003d True"},{"line_number":87,"context_line":"    return retval"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Fj14%3D","line":86,"in_reply_to":"AAAALH%2F%2Foqg%3D","updated":"2012-08-31 03:45:02.000000000","message":"Fixed","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":447,"name":"dan wendlandt","email":"dan@nicira.com","username":"danwent"},"unresolved":false,"context_lines":[{"line_number":146,"context_line":"                  if eligible_for_deletion(conf, ns, conf.force)]"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if candidates:"},{"line_number":149,"context_line":"        eventlet.sleep(2)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        for namespace in candidates:"},{"line_number":152,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Foqc%3D","line":149,"updated":"2012-08-24 06:14:33.000000000","message":"unclear why this is needed.","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":146,"context_line":"                  if eligible_for_deletion(conf, ns, conf.force)]"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    if candidates:"},{"line_number":149,"context_line":"        eventlet.sleep(2)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        for namespace in candidates:"},{"line_number":152,"context_line":"            destroy_namespace(conf, namespace, conf.force)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAALH%2F%2Fj1Y%3D","line":149,"in_reply_to":"AAAALH%2F%2Foqc%3D","updated":"2012-08-31 03:45:02.000000000","message":"Polling namespaces that have just spun up look empty.  I made a note of this in the docstring.","commit_id":"868fe460fd74836f393f88002db84c1c9a442104"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        if force:"},{"line_number":119,"context_line":"            kill_dhcp(conf, namespace)"},{"line_number":120,"context_line":"            # dhcp will destory the namespace if it can be properly clean up"},{"line_number":121,"context_line":"            if ip.netns.exists(namespace):"},{"line_number":122,"context_line":"                for device in ip.get_devices(exclude_loopback\u003dTrue):"},{"line_number":123,"context_line":"                    unplug_device(conf, device)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAALH%2F%2FiWs%3D","line":120,"updated":"2012-09-03 10:58:39.000000000","message":"Seems we have two typos in the comment","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"38851548ca33274ef1269a798a3ac3ca13c959e3","unresolved":false,"context_lines":[{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        if force:"},{"line_number":119,"context_line":"            kill_dhcp(conf, namespace)"},{"line_number":120,"context_line":"            # dhcp will destory the namespace if it can be properly clean up"},{"line_number":121,"context_line":"            if ip.netns.exists(namespace):"},{"line_number":122,"context_line":"                for device in ip.get_devices(exclude_loopback\u003dTrue):"},{"line_number":123,"context_line":"                    unplug_device(conf, device)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAALH%2F%2Fh2M%3D","line":120,"in_reply_to":"AAAALH%2F%2FiWs%3D","updated":"2012-09-04 05:48:19.000000000","message":"Done","commit_id":"80f4d1bfca7251bad76bd17cf52afd5fac584f49"}]}
