)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Isaku Yamahata \u003cyamahata@valinux.co.jp\u003e"},{"line_number":5,"context_line":"CommitDate: 2013-02-08 16:12:56 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"netsn-cleanup: kill metadata proxy server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When cleaning up netns, stop metadata proxies properly which was spawned"},{"line_number":10,"context_line":"by l3-agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"AAAAM3%2F%2FBOs%3D","line":7,"updated":"2013-02-11 15:38:30.000000000","message":"netsn -\u003e netns","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Isaku Yamahata \u003cyamahata@valinux.co.jp\u003e"},{"line_number":5,"context_line":"CommitDate: 2013-02-08 16:12:56 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"netsn-cleanup: kill metadata proxy server"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When cleaning up netns, stop metadata proxies properly which was spawned"},{"line_number":10,"context_line":"by l3-agent."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"AAAAM3%2F%2B%2FV0%3D","line":7,"in_reply_to":"AAAAM3%2F%2FBOs%3D","updated":"2013-02-12 10:41:02.000000000","message":"Done","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"}],"quantum/agent/dhcp_agent.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                {\u0027port_num\u0027: len(router_ports),"},{"line_number":283,"context_line":"                                 \u0027port_id\u0027: router_ports[0].id,"},{"line_number":284,"context_line":"                                 \u0027router_id\u0027: router_ports[0].device_id})"},{"line_number":285,"context_line":"                network_id \u003d None"},{"line_number":286,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F09w%3D","line":285,"updated":"2013-03-11 08:42:20.000000000","message":"why is this set as None? This may be problematic with line 290","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                {\u0027port_num\u0027: len(router_ports),"},{"line_number":283,"context_line":"                                 \u0027port_id\u0027: router_ports[0].id,"},{"line_number":284,"context_line":"                                 \u0027router_id\u0027: router_ports[0].device_id})"},{"line_number":285,"context_line":"                network_id \u003d None"},{"line_number":286,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F01A%3D","line":285,"in_reply_to":"AAAAN3%2F%2F080%3D","updated":"2013-03-11 10:25:09.000000000","message":"I\u0027ll introduce uuid_ \u003d network.id to clarify it.","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                {\u0027port_num\u0027: len(router_ports),"},{"line_number":283,"context_line":"                                 \u0027port_id\u0027: router_ports[0].id,"},{"line_number":284,"context_line":"                                 \u0027router_id\u0027: router_ports[0].device_id})"},{"line_number":285,"context_line":"                network_id \u003d None"},{"line_number":286,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F080%3D","line":285,"in_reply_to":"AAAAN3%2F%2F09Y%3D","updated":"2013-03-11 09:47:32.000000000","message":"Yeah, it is a very tricky point. It may help developers understand the code if we have some comment here :-)\n\nThe second parameter is used for the process manager to identify the process. On the other hand, network_id and router_id (in 5th and 6th parameters) are used to construct  the arguments passed to a metadata-proxy process.\n\nI am still looking for a better approach but I haven\u0027t. Any idea?","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":282,"context_line":"                                {\u0027port_num\u0027: len(router_ports),"},{"line_number":283,"context_line":"                                 \u0027port_id\u0027: router_ports[0].id,"},{"line_number":284,"context_line":"                                 \u0027router_id\u0027: router_ports[0].device_id})"},{"line_number":285,"context_line":"                network_id \u003d None"},{"line_number":286,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F09Y%3D","line":285,"in_reply_to":"AAAAN3%2F%2F09w%3D","updated":"2013-03-11 08:56:42.000000000","message":"No it doesn\u0027t harm. LIne 290 uses network.id (\".\" not \"_\")\nThis is for to pass None for network_id argument.(5th argument)\nnetwork.id is used for uuid.(2nd argument)\nMark requested this.","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":308,"context_line":"                network_id \u003d None"},{"line_number":309,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"},{"line_number":312,"context_line":"        params.extend(config.get_log_args("},{"line_number":313,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid_))"},{"line_number":314,"context_line":"        metadata_lib.spawn_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAN3%2F%2FuTI%3D","line":311,"updated":"2013-03-21 01:22:28.000000000","message":"Instead of passing flags, why not pass the port you want here and let the spawn_metadata_proxy construct the command line arguments?","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":308,"context_line":"                network_id \u003d None"},{"line_number":309,"context_line":"                router_id \u003d router_ports[0].device_id"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"},{"line_number":312,"context_line":"        params.extend(config.get_log_args("},{"line_number":313,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid_))"},{"line_number":314,"context_line":"        metadata_lib.spawn_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F4x4%3D","line":311,"in_reply_to":"AAAAN3%2F%2FuTI%3D","updated":"2013-03-22 02:09:33.000000000","message":"Done","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"},{"line_number":312,"context_line":"        params.extend(config.get_log_args("},{"line_number":313,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid_))"},{"line_number":314,"context_line":"        metadata_lib.spawn_metadata_proxy("},{"line_number":315,"context_line":"            self.conf, uuid_, self.conf.root_helper,"},{"line_number":316,"context_line":"            self._ns_name(network), network_id, router_id, params)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAN3%2F%2FuSs%3D","line":313,"updated":"2013-03-21 01:22:28.000000000","message":"The logging code should be in the spawn_metadata_proxy method.","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        params \u003d [\u0027--metadata_port\u003d%d\u0027 % METADATA_PORT]"},{"line_number":312,"context_line":"        params.extend(config.get_log_args("},{"line_number":313,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid_))"},{"line_number":314,"context_line":"        metadata_lib.spawn_metadata_proxy("},{"line_number":315,"context_line":"            self.conf, uuid_, self.conf.root_helper,"},{"line_number":316,"context_line":"            self._ns_name(network), network_id, router_id, params)"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F40s%3D","line":313,"in_reply_to":"AAAAN3%2F%2FuSs%3D","updated":"2013-03-22 02:09:33.000000000","message":"Done","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"}],"quantum/agent/l3_agent.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":261,"context_line":"        pm.enable(callback)"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"    @staticmethod"},{"line_number":264,"context_line":"    def destroy_metadata_proxy(conf, router_id, root_helper, ns_name):"},{"line_number":265,"context_line":"        pm \u003d external_process.ProcessManager("},{"line_number":266,"context_line":"            conf, router_id, root_helper, ns_name)"},{"line_number":267,"context_line":"        pm.disable()"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2Bsm4%3D","line":264,"updated":"2013-02-21 10:28:24.000000000","message":"Consider having this method in some shared library (or even in the metadata proxy module)\n\nPlease also have a look at dhcp_agent where there\u0027s a similar function (disable_isolated_metadata_proxy). There\u0027s a chance that with some simple refactoring we might avoid code duplication.","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":261,"context_line":"        pm.enable(callback)"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"    @staticmethod"},{"line_number":264,"context_line":"    def destroy_metadata_proxy(conf, router_id, root_helper, ns_name):"},{"line_number":265,"context_line":"        pm \u003d external_process.ProcessManager("},{"line_number":266,"context_line":"            conf, router_id, root_helper, ns_name)"},{"line_number":267,"context_line":"        pm.disable()"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2Bj4g%3D","line":264,"in_reply_to":"AAAAM3%2F%2Bsm4%3D","updated":"2013-02-27 10:34:17.000000000","message":"Done","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":237,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":238,"context_line":"        ri.iptables_manager.apply()"},{"line_number":239,"context_line":"        metadata_lib.spawn_metadata_proxy("},{"line_number":240,"context_line":"            self.conf, ri.router_id, self.root_helper, ri.ns_name(),"},{"line_number":241,"context_line":"            [\u0027--router_id\u003d%s\u0027 % router_id])"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def _router_removed(self, router_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5eE%3D","line":240,"updated":"2013-03-07 05:33:41.000000000","message":"router_id\u003dri.router_id","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":237,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":238,"context_line":"        ri.iptables_manager.apply()"},{"line_number":239,"context_line":"        metadata_lib.spawn_metadata_proxy("},{"line_number":240,"context_line":"            self.conf, ri.router_id, self.root_helper, ri.ns_name(),"},{"line_number":241,"context_line":"            [\u0027--router_id\u003d%s\u0027 % router_id])"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"    def _router_removed(self, router_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3f0%3D","line":240,"in_reply_to":"AAAAN3%2F%2F5eE%3D","updated":"2013-03-08 11:16:06.000000000","message":"Done","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":252,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].remove_rule(c, r)"},{"line_number":253,"context_line":"        ri.iptables_manager.apply()"},{"line_number":254,"context_line":"        metadata_lib.destroy_metadata_proxy("},{"line_number":255,"context_line":"            self.conf, ri.router_id, self.root_helper, ri.ns_name())"},{"line_number":256,"context_line":"        del self.router_info[router_id]"},{"line_number":257,"context_line":"        self._destroy_router_namespace(ri.ns_name())"},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5eI%3D","line":255,"updated":"2013-03-07 05:33:41.000000000","message":"router_id\u003dri.router_id","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":252,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].remove_rule(c, r)"},{"line_number":253,"context_line":"        ri.iptables_manager.apply()"},{"line_number":254,"context_line":"        metadata_lib.destroy_metadata_proxy("},{"line_number":255,"context_line":"            self.conf, ri.router_id, self.root_helper, ri.ns_name())"},{"line_number":256,"context_line":"        del self.router_info[router_id]"},{"line_number":257,"context_line":"        self._destroy_router_namespace(ri.ns_name())"},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3fw%3D","line":255,"in_reply_to":"AAAAN3%2F%2F5eI%3D","updated":"2013-03-08 11:16:06.000000000","message":"Done","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":236,"context_line":"        for c, r in self.metadata_nat_rules():"},{"line_number":237,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":238,"context_line":"        ri.iptables_manager.apply()"},{"line_number":239,"context_line":"        log_args \u003d config.get_log_args("},{"line_number":240,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % ri.router_id)"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        metadata_lib.spawn_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAN3%2F%2FuSQ%3D","line":239,"updated":"2013-03-21 01:22:28.000000000","message":"This should be done within spawn_metadata_proxy().","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":236,"context_line":"        for c, r in self.metadata_nat_rules():"},{"line_number":237,"context_line":"            ri.iptables_manager.ipv4[\u0027nat\u0027].add_rule(c, r)"},{"line_number":238,"context_line":"        ri.iptables_manager.apply()"},{"line_number":239,"context_line":"        log_args \u003d config.get_log_args("},{"line_number":240,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % ri.router_id)"},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"        metadata_lib.spawn_metadata_proxy("}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F40o%3D","line":239,"in_reply_to":"AAAAN3%2F%2FuSQ%3D","updated":"2013-03-22 02:09:33.000000000","message":"Done","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"}],"quantum/agent/linux/external_process.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":56,"context_line":"            else:"},{"line_number":57,"context_line":"                # For normal sudo prepend the env vars before command"},{"line_number":58,"context_line":"                utils.execute(cmd, self.root_helper)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def disable(self):"},{"line_number":61,"context_line":"        pid \u003d self.pid"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAN3%2F%2FuTw%3D","line":59,"updated":"2013-03-21 01:22:28.000000000","message":"Consider adding an optional kwarg here:\n\ndef disable(self, wait_inactive_timeout\u003dNone):\n\nIf defined then it will wait up to the timeout, otherwise it will not wait.","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":56,"context_line":"            else:"},{"line_number":57,"context_line":"                # For normal sudo prepend the env vars before command"},{"line_number":58,"context_line":"                utils.execute(cmd, self.root_helper)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def disable(self):"},{"line_number":61,"context_line":"        pid \u003d self.pid"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F4yQ%3D","line":59,"in_reply_to":"AAAAN3%2F%2FuTw%3D","updated":"2013-03-22 02:09:33.000000000","message":"Done","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":56,"context_line":"            else:"},{"line_number":57,"context_line":"                # For normal sudo prepend the env vars before command"},{"line_number":58,"context_line":"                utils.execute(cmd, self.root_helper)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def disable(self):"},{"line_number":61,"context_line":"        pid \u003d self.pid"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F4rk%3D","line":59,"in_reply_to":"AAAAOH%2F%2F4yQ%3D","updated":"2013-03-22 03:49:40.000000000","message":"I added the optional timeout paramater.\nBut I don\u0027t see why we\u0027d like to not to wait.","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":69,"context_line":"        while self.active:"},{"line_number":70,"context_line":"            if timeout:"},{"line_number":71,"context_line":"                if time.time() \u003e timeout:"},{"line_number":72,"context_line":"                    LOG.warn(_(\"Process %s doesn\u0027t exit in %s sec.\"),"},{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Ok%3D","line":72,"updated":"2013-04-08 02:03:39.000000000","message":"I think the text should be: Process %s still exits in %s sec(s).\nAm  I wrong?","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":69,"context_line":"        while self.active:"},{"line_number":70,"context_line":"            if timeout:"},{"line_number":71,"context_line":"                if time.time() \u003e timeout:"},{"line_number":72,"context_line":"                    LOG.warn(_(\"Process %s doesn\u0027t exit in %s sec.\"),"},{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAPX%2F%2FzoQ%3D","line":72,"in_reply_to":"AAAAOX%2F%2F6Ok%3D","updated":"2013-06-10 10:00:34.000000000","message":"Done","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"unresolved":false,"context_lines":[{"line_number":69,"context_line":"        while self.active:"},{"line_number":70,"context_line":"            if timeout:"},{"line_number":71,"context_line":"                if time.time() \u003e timeout:"},{"line_number":72,"context_line":"                    LOG.warn(_(\"Process %s doesn\u0027t exit in %s sec.\"),"},{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Ms%3D","line":72,"in_reply_to":"AAAAOX%2F%2F6Ok%3D","updated":"2013-04-08 02:49:59.000000000","message":"I would suggest:\n\"Process \u0027%s\u0027 still active after %s seconds.\"","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"},{"line_number":76,"context_line":"                LOG.warn(_(\"Process %s doesn\u0027t exit.\"), self.pid)"},{"line_number":77,"context_line":"                break"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"            eventlet.sleep(min(SLEEP_UNIT * count, SLEEP_MAX))"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Og%3D","line":76,"updated":"2013-04-08 02:03:39.000000000","message":"same as above","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"},{"line_number":76,"context_line":"                LOG.warn(_(\"Process %s doesn\u0027t exit.\"), self.pid)"},{"line_number":77,"context_line":"                break"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"            eventlet.sleep(min(SLEEP_UNIT * count, SLEEP_MAX))"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAPX%2F%2FzoM%3D","line":76,"in_reply_to":"AAAAOX%2F%2F6MU%3D","updated":"2013-06-10 10:00:34.000000000","message":"Done","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"},{"line_number":76,"context_line":"                LOG.warn(_(\"Process %s doesn\u0027t exit.\"), self.pid)"},{"line_number":77,"context_line":"                break"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"            eventlet.sleep(min(SLEEP_UNIT * count, SLEEP_MAX))"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6MU%3D","line":76,"in_reply_to":"AAAAOX%2F%2F6Mk%3D","updated":"2013-04-08 02:58:11.000000000","message":"It is better to add \"in *** sec\" for message consistency if you change the message.","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"unresolved":false,"context_lines":[{"line_number":73,"context_line":"                             self.pid, timeout_in_sec)"},{"line_number":74,"context_line":"                    break"},{"line_number":75,"context_line":"            elif count \u003e LOOP_MAX:"},{"line_number":76,"context_line":"                LOG.warn(_(\"Process %s doesn\u0027t exit.\"), self.pid)"},{"line_number":77,"context_line":"                break"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"            eventlet.sleep(min(SLEEP_UNIT * count, SLEEP_MAX))"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Mk%3D","line":76,"in_reply_to":"AAAAOX%2F%2F6Og%3D","updated":"2013-04-08 02:49:59.000000000","message":"I would suggest: \"Process \u0027%s\u0027 still active.\"","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"unresolved":false,"context_lines":[{"line_number":111,"context_line":"        if self.active:"},{"line_number":112,"context_line":"            cmd \u003d [\u0027kill\u0027, \u0027-9\u0027, pid]"},{"line_number":113,"context_line":"            utils.execute(cmd, self.root_helper)"},{"line_number":114,"context_line":"            self.wait_for_inactive(timeout_in_sec)"},{"line_number":115,"context_line":"        elif pid:"},{"line_number":116,"context_line":"            LOG.debug(_(\u0027Process for %(uuid)s pid %(pid)d is stale, ignoring \u0027"},{"line_number":117,"context_line":"                        \u0027command\u0027), {\u0027uuid\u0027: self.uuid, \u0027pid\u0027: pid})"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAP3%2F%2Fiuw%3D","line":114,"updated":"2013-07-16 19:40:10.000000000","message":"not sure I get why we are waiting. It looks like we take no action if the process is unable to become inactive.","commit_id":"81ec007de873070ce5aaac5c1840acca3e1d89c3"}],"quantum/agent/linux/ip_lib.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"unresolved":false,"context_lines":[{"line_number":181,"context_line":"            not self.namespace_is_empty()):"},{"line_number":182,"context_line":"            return False"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        LOOP_MAX \u003d 10"},{"line_number":185,"context_line":"        SLEEP_MAX \u003d 0.1"},{"line_number":186,"context_line":"        SLEEP_UNIT \u003d 0.01"},{"line_number":187,"context_line":"        for count in xrange(LOOP_MAX):"}],"source_content_type":"text/x-python","patch_set":14,"id":"AAAAP3%2F%2Fiu8%3D","line":184,"updated":"2013-07-16 19:40:10.000000000","message":"instead of adding a retry logic here and in ProcessManagerBase what about adding an utils.execute_with_retry and reusing it? It would be good if args for the method would let us specify whether what exception to raise if the command fails rather than succeed","commit_id":"81ec007de873070ce5aaac5c1840acca3e1d89c3"}],"quantum/agent/linux/utils.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"unresolved":false,"context_lines":[{"line_number":72,"context_line":"        greenthread.sleep(min(0.01 * count, MAX_SLEEP))"},{"line_number":73,"context_line":"        count +\u003d 1"},{"line_number":74,"context_line":"        if count \u003e MAX_LOOP:"},{"line_number":75,"context_line":"            LOG.warn(_(\"Process %(pid)s didn\u0027t exit.\"), {\u0027pid\u0027: process.pid})"},{"line_number":76,"context_line":"            break"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F09o%3D","line":75,"updated":"2013-03-11 08:42:20.000000000","message":"didn\u0027t \u003d\u003e doesn\u0027t","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":72,"context_line":"        greenthread.sleep(min(0.01 * count, MAX_SLEEP))"},{"line_number":73,"context_line":"        count +\u003d 1"},{"line_number":74,"context_line":"        if count \u003e MAX_LOOP:"},{"line_number":75,"context_line":"            LOG.warn(_(\"Process %(pid)s didn\u0027t exit.\"), {\u0027pid\u0027: process.pid})"},{"line_number":76,"context_line":"            break"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F09Q%3D","line":75,"in_reply_to":"AAAAN3%2F%2F09o%3D","updated":"2013-03-11 08:56:42.000000000","message":"Done","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":64,"context_line":"    return return_stderr and (_stdout, _stderr) or _stdout"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def wait_for_inactive(process):"},{"line_number":68,"context_line":"    LOOP_MAX \u003d 10"},{"line_number":69,"context_line":"    SLEEP_MAX \u003d 0.1"},{"line_number":70,"context_line":"    SLEEP_UNIT \u003d 0.01"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAN3%2F%2FuUc%3D","line":67,"updated":"2013-03-21 01:22:28.000000000","message":"This is not the best location for this method.  It exists solely for the ExternalProcess class that exists in another module.  This functionality should be built into the the disable method of that class.","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":64,"context_line":"    return return_stderr and (_stdout, _stderr) or _stdout"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def wait_for_inactive(process):"},{"line_number":68,"context_line":"    LOOP_MAX \u003d 10"},{"line_number":69,"context_line":"    SLEEP_MAX \u003d 0.1"},{"line_number":70,"context_line":"    SLEEP_UNIT \u003d 0.01"}],"source_content_type":"text/x-python","patch_set":11,"id":"AAAAOH%2F%2F40U%3D","line":67,"in_reply_to":"AAAAN3%2F%2FuUc%3D","updated":"2013-03-22 02:09:33.000000000","message":"No. DhcpLocalProcess also uses this.\nOkay, I\u0027ll introduce base mixin class for ExternalProcess and DhcpLocalProcess.","commit_id":"763f99d0aa5a04bb667fdfbb7c1afb69a8764428"}],"quantum/agent/metadata/lib.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from quantum.agent.linux import external_process"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, router_id, root_helper, ns_name,"},{"line_number":23,"context_line":"                         extra_opt\u003dNone):"},{"line_number":24,"context_line":"    def callback(pid_file):"},{"line_number":25,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAM3%2F%2BjO4%3D","line":22,"updated":"2013-03-01 01:11:42.000000000","message":"There is a case where network_id is passed to router_id. It would be better to change router_id to a better name.","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":19,"context_line":"from quantum.agent.linux import external_process"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, router_id, root_helper, ns_name,"},{"line_number":23,"context_line":"                         extra_opt\u003dNone):"},{"line_number":24,"context_line":"    def callback(pid_file):"},{"line_number":25,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAN3%2F%2F93I%3D","line":22,"in_reply_to":"AAAAM3%2F%2BjO4%3D","updated":"2013-03-05 02:55:22.000000000","message":"Done","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    pm.enable(callback)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def destroy_metadata_proxy(conf, router_id, root_helper, ns_name):"},{"line_number":38,"context_line":"    pm \u003d external_process.ProcessManager("},{"line_number":39,"context_line":"        conf, router_id, root_helper, ns_name)"},{"line_number":40,"context_line":"    pm.disable()"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAM3%2F%2BjOw%3D","line":37,"updated":"2013-03-01 01:11:42.000000000","message":"Ditto","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":34,"context_line":"    pm.enable(callback)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def destroy_metadata_proxy(conf, router_id, root_helper, ns_name):"},{"line_number":38,"context_line":"    pm \u003d external_process.ProcessManager("},{"line_number":39,"context_line":"        conf, router_id, root_helper, ns_name)"},{"line_number":40,"context_line":"    pm.disable()"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAN3%2F%2F93E%3D","line":37,"in_reply_to":"AAAAM3%2F%2BjOw%3D","updated":"2013-03-05 02:55:22.000000000","message":"Done","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, network_id, root_helper, ns_name,"},{"line_number":23,"context_line":"                         extra_opt\u003dNone):"},{"line_number":24,"context_line":"    def callback(pid_file):"},{"line_number":25,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"},{"line_number":26,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5eY%3D","line":23,"updated":"2013-03-07 05:33:41.000000000","message":"extra_opt is a misleading name because this value is always required.  This method should have keyword params network_id\u003dNone and router_id\u003dNone.  The method can then decide how to format the cmd line.  Changing to optional params means the caller does not need to know the implementation details.","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, network_id, root_helper, ns_name,"},{"line_number":23,"context_line":"                         extra_opt\u003dNone):"},{"line_number":24,"context_line":"    def callback(pid_file):"},{"line_number":25,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"},{"line_number":26,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3Uw%3D","line":23,"in_reply_to":"AAAAN3%2F%2F5eY%3D","updated":"2013-03-08 11:16:06.000000000","message":"Done","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from quantum.agent.linux import external_process"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, network_id, root_helper, ns_name, **params):"},{"line_number":23,"context_line":"    def callback(pid_file):"},{"line_number":24,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"},{"line_number":25,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAN3%2F%2F3OM%3D","line":22,"updated":"2013-03-08 12:35:31.000000000","message":"When we consider the symmetry of spawn and destroy methods,  both methods should have the same common parameters.\nnetwork_id argument is required, but what is confusing is that there is a case where router_id is passed to network_id.\nIMO, network_id argument should be renamed to \u0027uuid\u0027 as metadata-proxy does.\n\nIn addition, we need an argument to specify which option should be passed --network_id or --router_id. My idea is to introduce  a boolean parameter \u0027listen_network\u0027 (If True --network_id\u003d\u003cuuid\u003e is used, otherwise --router_id\u003d\u003cuuid\u003e)\n\nP.S.\nDefining both network_id and router_id in destroy_metadata_proxy makes the situation more complicated.  Please see the discussion among Mark, Yong and me in https://review.openstack.org/#/c/23411/5/quantum/agent/dhcp_agent.py for the background.","commit_id":"96a0d6662b179e327cc9fd9678dcaefbc36c1b35"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":19,"context_line":"from quantum.agent.linux import external_process"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, network_id, root_helper, ns_name, **params):"},{"line_number":23,"context_line":"    def callback(pid_file):"},{"line_number":24,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"},{"line_number":25,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAN3%2F%2F1AY%3D","line":22,"in_reply_to":"AAAAN3%2F%2F3OM%3D","updated":"2013-03-11 07:03:42.000000000","message":"Done","commit_id":"96a0d6662b179e327cc9fd9678dcaefbc36c1b35"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":23,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":24,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":25,"context_line":"    assert bool(network_id) ^ bool(router_id)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def callback(pid_file):"},{"line_number":28,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F074%3D","line":25,"updated":"2013-03-11 09:47:32.000000000","message":"It would be better to raise an appropriate exception and use LOG.error","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"unresolved":false,"context_lines":[{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":23,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":24,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":25,"context_line":"    assert bool(network_id) ^ bool(router_id)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def callback(pid_file):"},{"line_number":28,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F0yI%3D","line":25,"in_reply_to":"AAAAN3%2F%2F004%3D","updated":"2013-03-11 10:46:03.000000000","message":"i agree with Akihiro here. i think that is is better to raise an exception than have the assertion. Sadly bugs will hapeen","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":23,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":24,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":25,"context_line":"    assert bool(network_id) ^ bool(router_id)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def callback(pid_file):"},{"line_number":28,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F004%3D","line":25,"in_reply_to":"AAAAN3%2F%2F074%3D","updated":"2013-03-11 10:25:09.000000000","message":"I\u0027m not sure it is better to raise exception and log it because\nthe assertion clarifies the API contraction, not run time error.\nSo such error should be detected by unit tests.","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":22,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":23,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":24,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":25,"context_line":"    assert bool(network_id) ^ bool(router_id)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"    def callback(pid_file):"},{"line_number":28,"context_line":"        cmd \u003d [\u0027quantum-ns-metadata-proxy\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F0ws%3D","line":25,"in_reply_to":"AAAAN3%2F%2F0yI%3D","updated":"2013-03-11 11:03:47.000000000","message":"Okay, raise ValueError.","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"unresolved":false,"context_lines":[{"line_number":25,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":26,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":27,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":28,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":29,"context_line":"        LOG.critical("},{"line_number":30,"context_line":"            _(\u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":31,"context_line":"              \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027),"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAN3%2F%2F0P4%3D","line":28,"updated":"2013-03-11 16:15:10.000000000","message":"Consider msg \u003d _(...) \nLOG.criticial(msg)\nraise ValueError(msg)","commit_id":"6b464e25f66af841ee9d4a97df7cae205307c852"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":25,"context_line":"def spawn_metadata_proxy(conf, uuid, root_helper, ns_name,"},{"line_number":26,"context_line":"                         network_id\u003dNone, router_id\u003dNone, params\u003dNone):"},{"line_number":27,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":28,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":29,"context_line":"        LOG.critical("},{"line_number":30,"context_line":"            _(\u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":31,"context_line":"              \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027),"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAN3%2F%2Fzs4%3D","line":28,"in_reply_to":"AAAAN3%2F%2F0P4%3D","updated":"2013-03-11 21:20:52.000000000","message":"Done","commit_id":"6b464e25f66af841ee9d4a97df7cae205307c852"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":30,"context_line":"    # Only one of network_id or router_id can be specified"},{"line_number":31,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":32,"context_line":"        msg \u003d _("},{"line_number":33,"context_line":"            \u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":34,"context_line":"            \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027) % {"},{"line_number":35,"context_line":"                \u0027network_id\u0027: network_id, \u0027router_id\u0027: router_id}"},{"line_number":36,"context_line":"        LOG.critical(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Nw%3D","line":33,"updated":"2013-04-08 02:03:39.000000000","message":"I think No need to have \u0027BUG\u0027 here.","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":31,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":32,"context_line":"        msg \u003d _("},{"line_number":33,"context_line":"            \u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":34,"context_line":"            \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027) % {"},{"line_number":35,"context_line":"                \u0027network_id\u0027: network_id, \u0027router_id\u0027: router_id}"},{"line_number":36,"context_line":"        LOG.critical(msg)"},{"line_number":37,"context_line":"        raise ValueError(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6N0%3D","line":34,"updated":"2013-04-08 02:03:39.000000000","message":"what do u mean by \"Only one of network_id and router_id must be specified.\"?\ncan I specify both of them?\ncan I specify None of them?","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":31,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":32,"context_line":"        msg \u003d _("},{"line_number":33,"context_line":"            \u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":34,"context_line":"            \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027) % {"},{"line_number":35,"context_line":"                \u0027network_id\u0027: network_id, \u0027router_id\u0027: router_id}"},{"line_number":36,"context_line":"        LOG.critical(msg)"},{"line_number":37,"context_line":"        raise ValueError(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAPX%2F%2FzoU%3D","line":34,"in_reply_to":"AAAAOX%2F%2F6Mg%3D","updated":"2013-06-10 10:00:34.000000000","message":"Done","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"unresolved":false,"context_lines":[{"line_number":31,"context_line":"    if not (bool(network_id) ^ bool(router_id)):"},{"line_number":32,"context_line":"        msg \u003d _("},{"line_number":33,"context_line":"            \u0027BUG: Only one of network_id and router_id must be specified. \u0027"},{"line_number":34,"context_line":"            \u0027network_id \u003d %(network_id)s router_id \u003d %(router_id)s\u0027) % {"},{"line_number":35,"context_line":"                \u0027network_id\u0027: network_id, \u0027router_id\u0027: router_id}"},{"line_number":36,"context_line":"        LOG.critical(msg)"},{"line_number":37,"context_line":"        raise ValueError(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6Mg%3D","line":34,"in_reply_to":"AAAAOX%2F%2F6N0%3D","updated":"2013-04-08 02:49:59.000000000","message":"Based on the XOR check, it means: \"Please specify network_id or router_id, but not both.\"","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":41,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"},{"line_number":42,"context_line":"               \u0027--state_path\u003d%s\u0027 % conf.state_path]"},{"line_number":43,"context_line":"        cmd.extend(config.get_log_args("},{"line_number":44,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid))"},{"line_number":45,"context_line":"        if network_id:"},{"line_number":46,"context_line":"            cmd.append(\u0027--network_id\u003d%s\u0027 % network_id)"},{"line_number":47,"context_line":"        if router_id:"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6OA%3D","line":44,"updated":"2013-04-08 02:03:39.000000000","message":"I think we have a patch to add a \u0027-\u0027 here. \u0027quantum-ns-metadata-proxy-%s.log\u0027","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":41,"context_line":"               \u0027--pid_file\u003d%s\u0027 % pid_file,"},{"line_number":42,"context_line":"               \u0027--state_path\u003d%s\u0027 % conf.state_path]"},{"line_number":43,"context_line":"        cmd.extend(config.get_log_args("},{"line_number":44,"context_line":"            cfg.CONF, \u0027quantum-ns-metadata-proxy%s.log\u0027 % uuid))"},{"line_number":45,"context_line":"        if network_id:"},{"line_number":46,"context_line":"            cmd.append(\u0027--network_id\u003d%s\u0027 % network_id)"},{"line_number":47,"context_line":"        if router_id:"}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAPX%2F%2FzoY%3D","line":44,"in_reply_to":"AAAAOX%2F%2F6OA%3D","updated":"2013-06-10 10:00:34.000000000","message":"Done","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"}],"quantum/agent/netns_cleanup_util.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                   help\u003d_(\"The driver used to manage the DHCP server.\")),"},{"line_number":65,"context_line":"        cfg.StrOpt(\u0027state_path\u0027,"},{"line_number":66,"context_line":"                   default\u003d\u0027.\u0027,"},{"line_number":67,"context_line":"                   help\u003d_(\u0027Top-level directory for maintaining dhcp state\u0027)),"},{"line_number":68,"context_line":"        cfg.StrOpt(\u0027external_pids\u0027,"},{"line_number":69,"context_line":"                   default\u003d\u0027$state_path/external/pids\u0027,"},{"line_number":70,"context_line":"                   help\u003d_(\u0027Location to store child pid files\u0027)),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FBJo%3D","line":67,"updated":"2013-02-11 15:38:30.000000000","message":"When i tried to run netns cleanup, I got state_path option is duplicated. Actually state_path is defined in common/config.py and already registered when setup_conf() is called.\nYou need to remove state_path here.","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":64,"context_line":"                   help\u003d_(\"The driver used to manage the DHCP server.\")),"},{"line_number":65,"context_line":"        cfg.StrOpt(\u0027state_path\u0027,"},{"line_number":66,"context_line":"                   default\u003d\u0027.\u0027,"},{"line_number":67,"context_line":"                   help\u003d_(\u0027Top-level directory for maintaining dhcp state\u0027)),"},{"line_number":68,"context_line":"        cfg.StrOpt(\u0027external_pids\u0027,"},{"line_number":69,"context_line":"                   default\u003d\u0027$state_path/external/pids\u0027,"},{"line_number":70,"context_line":"                   help\u003d_(\u0027Location to store child pid files\u0027)),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B%2FVs%3D","line":67,"in_reply_to":"AAAAM3%2F%2FBJo%3D","updated":"2013-02-12 10:41:02.000000000","message":"Done","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"98b95c2204dee1621251c6de85e7a488f21ee1ae","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                   help\u003d_(\u0027Top-level directory for maintaining dhcp state\u0027)),"},{"line_number":68,"context_line":"        cfg.StrOpt(\u0027external_pids\u0027,"},{"line_number":69,"context_line":"                   default\u003d\u0027$state_path/external/pids\u0027,"},{"line_number":70,"context_line":"                   help\u003d_(\u0027Location to store child pid files\u0027)),"},{"line_number":71,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":72,"context_line":"                    default\u003dFalse,"},{"line_number":73,"context_line":"                    help\u003d_(\u0027Delete the namespace by removing all devices.\u0027)),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FDnc%3D","line":70,"updated":"2013-02-08 18:22:50.000000000","message":"could you update etc file also for this parameter?","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":67,"context_line":"                   help\u003d_(\u0027Top-level directory for maintaining dhcp state\u0027)),"},{"line_number":68,"context_line":"        cfg.StrOpt(\u0027external_pids\u0027,"},{"line_number":69,"context_line":"                   default\u003d\u0027$state_path/external/pids\u0027,"},{"line_number":70,"context_line":"                   help\u003d_(\u0027Location to store child pid files\u0027)),"},{"line_number":71,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":72,"context_line":"                    default\u003dFalse,"},{"line_number":73,"context_line":"                    help\u003d_(\u0027Delete the namespace by removing all devices.\u0027)),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B%2FVo%3D","line":70,"in_reply_to":"AAAAM3%2F%2FBKI%3D","updated":"2013-02-12 10:41:02.000000000","message":"Done","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                   help\u003d_(\u0027Top-level directory for maintaining dhcp state\u0027)),"},{"line_number":68,"context_line":"        cfg.StrOpt(\u0027external_pids\u0027,"},{"line_number":69,"context_line":"                   default\u003d\u0027$state_path/external/pids\u0027,"},{"line_number":70,"context_line":"                   help\u003d_(\u0027Location to store child pid files\u0027)),"},{"line_number":71,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":72,"context_line":"                    default\u003dFalse,"},{"line_number":73,"context_line":"                    help\u003d_(\u0027Delete the namespace by removing all devices.\u0027)),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FBKI%3D","line":70,"in_reply_to":"AAAAM3%2F%2FDnc%3D","updated":"2013-02-11 15:38:30.000000000","message":"external_pids options is already defined in external_process.py and external_process is loaded via l3_agent.\nYou don\u0027t need to define it explicitly here.","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":2031,"name":"Nachi Ueno","email":"nati.ueno@gmail.com","username":"nati-ueno"},"change_message_id":"98b95c2204dee1621251c6de85e7a488f21ee1ae","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    ]"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    conf \u003d cfg.CONF"},{"line_number":77,"context_line":"    conf.register_cli_opts(opts)"},{"line_number":78,"context_line":"    agent_config.register_root_helper(conf)"},{"line_number":79,"context_line":"    conf.register_opts(dhcp.OPTS)"},{"line_number":80,"context_line":"    return conf"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FDnM%3D","line":77,"updated":"2013-02-08 18:22:50.000000000","message":"Is this related change?","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":74,"context_line":"    ]"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    conf \u003d cfg.CONF"},{"line_number":77,"context_line":"    conf.register_cli_opts(opts)"},{"line_number":78,"context_line":"    agent_config.register_root_helper(conf)"},{"line_number":79,"context_line":"    conf.register_opts(dhcp.OPTS)"},{"line_number":80,"context_line":"    return conf"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B%2FVc%3D","line":77,"in_reply_to":"AAAAM3%2F%2FBJE%3D","updated":"2013-02-12 10:41:02.000000000","message":"Done","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    ]"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    conf \u003d cfg.CONF"},{"line_number":77,"context_line":"    conf.register_cli_opts(opts)"},{"line_number":78,"context_line":"    agent_config.register_root_helper(conf)"},{"line_number":79,"context_line":"    conf.register_opts(dhcp.OPTS)"},{"line_number":80,"context_line":"    return conf"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FBJE%3D","line":77,"in_reply_to":"AAAAM3%2F%2FDnM%3D","updated":"2013-02-11 15:38:30.000000000","message":"quantum-netns-cleanup is usually run with appropriate --config-file option, so we don\u0027t need to change it to cli_opts.\nOne exception is --force option.\n\nMy suggestion is to change \"opts\" to \"cli_opts\", define \u0027--force\u0027 in \"cli_opts\" and register_cli_ops(opts).\nIn addition use register_opts(dhcp_agent.DhcpAgent.OPTS) to define dhcp_driver option.","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":152,"context_line":"                kill_metadata_proxy(conf, namespace)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            # NOTE: The dhcp driver will remove the namespace"},{"line_number":155,"context_line":"            # if is it empty,"},{"line_number":156,"context_line":"            # so a second check is required here."},{"line_number":157,"context_line":"            if ip.netns.exists(namespace):"},{"line_number":158,"context_line":"                for device in ip.get_devices(exclude_loopback\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2FD28%3D","line":155,"updated":"2013-02-11 15:38:30.000000000","message":"is it -\u003e it is","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":152,"context_line":"                kill_metadata_proxy(conf, namespace)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"            # NOTE: The dhcp driver will remove the namespace"},{"line_number":155,"context_line":"            # if is it empty,"},{"line_number":156,"context_line":"            # so a second check is required here."},{"line_number":157,"context_line":"            if ip.netns.exists(namespace):"},{"line_number":158,"context_line":"                for device in ip.get_devices(exclude_loopback\u003dTrue):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B%2FVQ%3D","line":155,"in_reply_to":"AAAAM3%2F%2FD28%3D","updated":"2013-02-12 10:41:02.000000000","message":"Done","commit_id":"a32f6f7a19ae4d42bd21553a67d0a87ba42398aa"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":93,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":94,"context_line":"    router_id \u003d namespace.replace(l3_agent.NS_PREFIX, \u0027\u0027)"},{"line_number":95,"context_line":"    l3_agent.L3NATAgent.destroy_metadata_proxy(conf, router_id, root_helper,"},{"line_number":96,"context_line":"                                               namespace)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def eligible_for_deletion(conf, namespace, force\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2Bsm8%3D","line":96,"updated":"2013-02-21 10:28:24.000000000","message":"Since the metadata proxy now can be executed by the dhcp agent as well, probably the routine for killing it should not be in l3_agent module","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":93,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":94,"context_line":"    router_id \u003d namespace.replace(l3_agent.NS_PREFIX, \u0027\u0027)"},{"line_number":95,"context_line":"    l3_agent.L3NATAgent.destroy_metadata_proxy(conf, router_id, root_helper,"},{"line_number":96,"context_line":"                                               namespace)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def eligible_for_deletion(conf, namespace, force\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2Bj4c%3D","line":96,"in_reply_to":"AAAAM3%2F%2Bsm8%3D","updated":"2013-02-27 10:34:17.000000000","message":"Done","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        if force:"},{"line_number":141,"context_line":"            if re.match(DHCP_NS_MANGLING_PATTERN, namespace):"},{"line_number":142,"context_line":"                kill_dhcp(conf, namespace)"},{"line_number":143,"context_line":"            if re.match(L3_NS_MANGLING_PATTERN, namespace):"},{"line_number":144,"context_line":"                kill_metadata_proxy(conf, namespace)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2BsnA%3D","line":142,"updated":"2013-02-21 10:28:24.000000000","message":"with enable_isolated_metadata option, also the dhcp agent now is capable of running metadata proxies","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        if force:"},{"line_number":141,"context_line":"            if re.match(DHCP_NS_MANGLING_PATTERN, namespace):"},{"line_number":142,"context_line":"                kill_dhcp(conf, namespace)"},{"line_number":143,"context_line":"            if re.match(L3_NS_MANGLING_PATTERN, namespace):"},{"line_number":144,"context_line":"                kill_metadata_proxy(conf, namespace)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAM3%2F%2Bj4Y%3D","line":142,"in_reply_to":"AAAAM3%2F%2BsnA%3D","updated":"2013-02-27 10:34:17.000000000","message":"Done","commit_id":"0afd31f9e5b127bcd4866720ddd461c278713935"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":62,"context_line":"    opts \u003d ["},{"line_number":63,"context_line":"        cfg.StrOpt(\u0027dhcp_driver\u0027,"},{"line_number":64,"context_line":"                   default\u003d\u0027quantum.agent.linux.dhcp.Dnsmasq\u0027,"},{"line_number":65,"context_line":"                   help\u003d_(\"The driver used to manage the DHCP server.\")),"},{"line_number":66,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":67,"context_line":"                    default\u003dFalse,"},{"line_number":68,"context_line":"                    help\u003d_(\u0027Delete the namespace by removing all devices.\u0027)),"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAM3%2F%2BjP0%3D","line":65,"updated":"2013-03-01 01:11:42.000000000","message":"I don\u0027t think dhcp_driver fits cli options.","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":62,"context_line":"    opts \u003d ["},{"line_number":63,"context_line":"        cfg.StrOpt(\u0027dhcp_driver\u0027,"},{"line_number":64,"context_line":"                   default\u003d\u0027quantum.agent.linux.dhcp.Dnsmasq\u0027,"},{"line_number":65,"context_line":"                   help\u003d_(\"The driver used to manage the DHCP server.\")),"},{"line_number":66,"context_line":"        cfg.BoolOpt(\u0027force\u0027,"},{"line_number":67,"context_line":"                    default\u003dFalse,"},{"line_number":68,"context_line":"                    help\u003d_(\u0027Delete the namespace by removing all devices.\u0027)),"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAN3%2F%2F93A%3D","line":65,"in_reply_to":"AAAAM3%2F%2BjP0%3D","updated":"2013-03-05 02:55:22.000000000","message":"Done","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":97,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":98,"context_line":"    router_id \u003d namespace.replace("},{"line_number":99,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":100,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, router_id, root_helper,"},{"line_number":101,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAM3%2F%2BjPM%3D","line":98,"updated":"2013-03-01 01:11:42.000000000","message":"router_id is no longer an appropriate name. There is a case where metadata proxy is spawned by dhcp-agent.","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":97,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":98,"context_line":"    router_id \u003d namespace.replace("},{"line_number":99,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":100,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, router_id, root_helper,"},{"line_number":101,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAN3%2F%2F924%3D","line":98,"in_reply_to":"AAAAM3%2F%2BjPM%3D","updated":"2013-03-05 02:55:22.000000000","message":"Done","commit_id":"df5314db8412c1bafbdd96124dea09fc19c974c5"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":100,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":101,"context_line":"    network_id \u003d namespace.replace("},{"line_number":102,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":103,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":104,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5eA%3D","line":101,"updated":"2013-03-07 05:33:41.000000000","message":"re.sub(DHCP_NS_MANGLING_PATTERN, \u0027\u0027)","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":100,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":101,"context_line":"    network_id \u003d namespace.replace("},{"line_number":102,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":103,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":104,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3e0%3D","line":101,"in_reply_to":"AAAAN3%2F%2F5dk%3D","updated":"2013-03-08 11:16:06.000000000","message":"Done","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":100,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":101,"context_line":"    network_id \u003d namespace.replace("},{"line_number":102,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":103,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":104,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3W4%3D","line":101,"in_reply_to":"AAAAN3%2F%2F5dk%3D","updated":"2013-03-08 10:23:33.000000000","message":"If you change L.37 to \n\nNS_MANGLING_PATTERN \u003d (\u0027(%s|%s)(%s)\u0027 % (dhcp_agent.NS_PREFIX, l3_agent.NS_PREFIX, attributes.UUID_PATTERN))\n\nthen L.101 can be:\n\nnetwork_id \u003d re.sub(NS_MANGLING_PATTERN, r\u0027\\2\u0027, namespace)\n\nP.S. Matching is already ensured by L.149 and L.152, so we don\u0027t need to check the match result.","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":100,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":101,"context_line":"    network_id \u003d namespace.replace("},{"line_number":102,"context_line":"        l3_agent.NS_PREFIX, \u0027\u0027, 1).replace(dhcp_agent.NS_PREFIX, \u0027\u0027, 1)"},{"line_number":103,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":104,"context_line":"                                        namespace)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5dk%3D","line":101,"in_reply_to":"AAAAN3%2F%2F5eA%3D","updated":"2013-03-07 05:35:34.000000000","message":"re.sub(NS_MANGLING_PATTERN, \u0027\u0027, namespace)","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":37,"context_line":"NS_PREFIX_PATTERN \u003d \u0027(%s|%s)\u0027 % (dhcp_agent.NS_PREFIX, l3_agent.NS_PREFIX)"},{"line_number":38,"context_line":"NS_MANGLING_PATTERN \u003d \u0027(%s)(%s)\u0027 % (NS_PREFIX_PATTERN, attributes.UUID_PATTERN)"},{"line_number":39,"context_line":"DHCP_NS_MANGLING_PATTERN \u003d dhcp_agent.NS_PREFIX + attributes.UUID_PATTERN"},{"line_number":40,"context_line":"L3_NS_MANGLING_PATTERN \u003d l3_agent.NS_PREFIX + attributes.UUID_PATTERN"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAN3%2F%2F3O8%3D","line":38,"updated":"2013-03-08 12:35:31.000000000","message":"I think L.101 does not work since \\2 matches NS_PREFIX_PATTERN.\n\nNS_PREFIX_PATTERN seems unnecessary. Please consider using:\n\nNS_MANGLING_PATTERN \u003d \u0027(%s|%s)(%s)\u0027 % (dhcp_agent.NS_PREFIX,\n                                        l3_agent.NS_PREFIX,\n                                        attributes.UUID_PATTERN)","commit_id":"96a0d6662b179e327cc9fd9678dcaefbc36c1b35"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":37,"context_line":"NS_PREFIX_PATTERN \u003d \u0027(%s|%s)\u0027 % (dhcp_agent.NS_PREFIX, l3_agent.NS_PREFIX)"},{"line_number":38,"context_line":"NS_MANGLING_PATTERN \u003d \u0027(%s)(%s)\u0027 % (NS_PREFIX_PATTERN, attributes.UUID_PATTERN)"},{"line_number":39,"context_line":"DHCP_NS_MANGLING_PATTERN \u003d dhcp_agent.NS_PREFIX + attributes.UUID_PATTERN"},{"line_number":40,"context_line":"L3_NS_MANGLING_PATTERN \u003d l3_agent.NS_PREFIX + attributes.UUID_PATTERN"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAAN3%2F%2F1Ac%3D","line":38,"in_reply_to":"AAAAN3%2F%2F3O8%3D","updated":"2013-03-11 07:03:42.000000000","message":"Done","commit_id":"96a0d6662b179e327cc9fd9678dcaefbc36c1b35"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    conf \u003d cfg.CONF"},{"line_number":75,"context_line":"    conf.register_cli_opts(cli_opts)"},{"line_number":76,"context_line":"    conf.register_opts(opts)"},{"line_number":77,"context_line":"    conf.register_opts(dhcp_agent.DhcpAgent.OPTS)"},{"line_number":78,"context_line":"    agent_config.register_root_helper(conf)"},{"line_number":79,"context_line":"    conf.register_opts(dhcp.OPTS)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAOH%2F%2F2QA%3D","line":76,"updated":"2013-03-25 08:25:57.000000000","message":"I think L.76 is unncessary. dhcp_driver is defined in dhcp_agent.DhcpAgent.OPTS and it is imported at L.77.","commit_id":"831fe95383b0fa9b034eb3df1b750f33f7955766"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    conf \u003d cfg.CONF"},{"line_number":75,"context_line":"    conf.register_cli_opts(cli_opts)"},{"line_number":76,"context_line":"    conf.register_opts(opts)"},{"line_number":77,"context_line":"    conf.register_opts(dhcp_agent.DhcpAgent.OPTS)"},{"line_number":78,"context_line":"    agent_config.register_root_helper(conf)"},{"line_number":79,"context_line":"    conf.register_opts(dhcp.OPTS)"}],"source_content_type":"text/x-python","patch_set":12,"id":"AAAAOH%2F%2FzG0%3D","line":76,"in_reply_to":"AAAAOH%2F%2F2QA%3D","updated":"2013-03-27 03:21:05.000000000","message":"Done","commit_id":"831fe95383b0fa9b034eb3df1b750f33f7955766"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":95,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":96,"context_line":"    network_id \u003d re.sub(NS_MANGLING_PATTERN, r\u0027\\2\u0027, namespace)"},{"line_number":97,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":98,"context_line":"                                        namespace)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6NU%3D","line":96,"updated":"2013-04-08 02:21:55.000000000","message":"the id of L3 agent\u0027s proxy is not network_id, it is router_id.","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":95,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":96,"context_line":"    network_id \u003d re.sub(NS_MANGLING_PATTERN, r\u0027\\2\u0027, namespace)"},{"line_number":97,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":98,"context_line":"                                        namespace)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAPX%2F%2Fzns%3D","line":96,"in_reply_to":"AAAAOX%2F%2F6MQ%3D","updated":"2013-06-10 10:00:34.000000000","message":"Done","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"def kill_metadata_proxy(conf, namespace):"},{"line_number":95,"context_line":"    root_helper \u003d agent_config.get_root_helper(conf)"},{"line_number":96,"context_line":"    network_id \u003d re.sub(NS_MANGLING_PATTERN, r\u0027\\2\u0027, namespace)"},{"line_number":97,"context_line":"    metadata_lib.destroy_metadata_proxy(conf, network_id, root_helper,"},{"line_number":98,"context_line":"                                        namespace)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"AAAAOX%2F%2F6MQ%3D","line":96,"in_reply_to":"AAAAOX%2F%2F6NU%3D","updated":"2013-04-08 02:58:11.000000000","message":"It is better to rename it to \u0027uuid\u0027 or a similar name.  metadata_lib uses \u0027uuid\u0027 for this argument.","commit_id":"3c83cf44c55d960ce2f432b89c99d081deb4bec7"}],"quantum/tests/unit/test_agent_linux_utils.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        with mock.patch(\u0027eventlet.greenthread.sleep\u0027) as sleep:"},{"line_number":85,"context_line":"            with mock.patch.object(utils.LOG, \u0027warn\u0027) as warn:"},{"line_number":86,"context_line":"                utils.wait_for_inactive(process)"},{"line_number":87,"context_line":"                self.assertTrue(sleep.call_count \u003e\u003d 1)"},{"line_number":88,"context_line":"                self.assertEqual(warn.call_count, 1)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F07E%3D","line":87,"updated":"2013-03-11 09:47:32.000000000","message":"Can\u0027t we use assert_called_with or assert_has_call?","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":84,"context_line":"        with mock.patch(\u0027eventlet.greenthread.sleep\u0027) as sleep:"},{"line_number":85,"context_line":"            with mock.patch.object(utils.LOG, \u0027warn\u0027) as warn:"},{"line_number":86,"context_line":"                utils.wait_for_inactive(process)"},{"line_number":87,"context_line":"                self.assertTrue(sleep.call_count \u003e\u003d 1)"},{"line_number":88,"context_line":"                self.assertEqual(warn.call_count, 1)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F00Y%3D","line":87,"in_reply_to":"AAAAN3%2F%2F07E%3D","updated":"2013-03-11 10:25:09.000000000","message":"Done","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"edb203b497c299ca267926cbb172726069c9959b","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            with mock.patch.object(utils.LOG, \u0027warn\u0027) as warn:"},{"line_number":86,"context_line":"                utils.wait_for_inactive(process)"},{"line_number":87,"context_line":"                self.assertTrue(sleep.call_count \u003e\u003d 1)"},{"line_number":88,"context_line":"                self.assertEqual(warn.call_count, 1)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"class AgentUtilsGetInterfaceMAC(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F07k%3D","line":88,"updated":"2013-03-11 09:47:32.000000000","message":"I prefer to  assert_call_once_with?","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":85,"context_line":"            with mock.patch.object(utils.LOG, \u0027warn\u0027) as warn:"},{"line_number":86,"context_line":"                utils.wait_for_inactive(process)"},{"line_number":87,"context_line":"                self.assertTrue(sleep.call_count \u003e\u003d 1)"},{"line_number":88,"context_line":"                self.assertEqual(warn.call_count, 1)"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"class AgentUtilsGetInterfaceMAC(base.BaseTestCase):"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAN3%2F%2F00U%3D","line":88,"in_reply_to":"AAAAN3%2F%2F07k%3D","updated":"2013-03-11 10:25:09.000000000","message":"Done","commit_id":"3af66dc2e03d7efe7cc9b76ff54d5f34e77f7359"}],"quantum/tests/unit/test_agent_netns_cleanup.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        devices \u003d [lo_device]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        for i in range(num_devices):"},{"line_number":157,"context_line":"            dev \u003d mock.Mock()"},{"line_number":158,"context_line":"            dev.name \u003d \u0027tap%d\u0027 % i"},{"line_number":159,"context_line":"            devices.append(dev)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F5d0%3D","line":156,"updated":"2013-03-07 05:33:41.000000000","message":"for i in xrange(num_devices):","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        devices \u003d [lo_device]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        for i in range(num_devices):"},{"line_number":157,"context_line":"            dev \u003d mock.Mock()"},{"line_number":158,"context_line":"            dev.name \u003d \u0027tap%d\u0027 % i"},{"line_number":159,"context_line":"            devices.append(dev)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAN3%2F%2F3ew%3D","line":156,"in_reply_to":"AAAAN3%2F%2F5d0%3D","updated":"2013-03-08 11:16:06.000000000","message":"Done","commit_id":"436f4d35c82fed5ec7b0cb151387d2c198d0a607"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"unresolved":false,"context_lines":[{"line_number":146,"context_line":"                                          ns, kill_method_name):"},{"line_number":147,"context_line":"        conf \u003d mock.Mock()"},{"line_number":148,"context_line":"        conf.external_pids \u003d \u0027/var/path\u0027"},{"line_number":149,"context_line":"#        conf.AGENT.root_helper \u003d \u0027sudo\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        lo_device \u003d mock.Mock()"},{"line_number":152,"context_line":"        lo_device.name \u003d \u0027lo\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAN3%2F%2F0QE%3D","line":149,"updated":"2013-03-11 16:15:10.000000000","message":"can we please delete this comment","commit_id":"6b464e25f66af841ee9d4a97df7cae205307c852"},{"author":{"_account_id":333,"name":"Isaku Yamahata","email":"isaku.yamahata@gmail.com","username":"yamahata"},"unresolved":false,"context_lines":[{"line_number":146,"context_line":"                                          ns, kill_method_name):"},{"line_number":147,"context_line":"        conf \u003d mock.Mock()"},{"line_number":148,"context_line":"        conf.external_pids \u003d \u0027/var/path\u0027"},{"line_number":149,"context_line":"#        conf.AGENT.root_helper \u003d \u0027sudo\u0027"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        lo_device \u003d mock.Mock()"},{"line_number":152,"context_line":"        lo_device.name \u003d \u0027lo\u0027"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAAN3%2F%2Fzsw%3D","line":149,"in_reply_to":"AAAAN3%2F%2F0QE%3D","updated":"2013-03-11 21:20:52.000000000","message":"Done","commit_id":"6b464e25f66af841ee9d4a97df7cae205307c852"}]}
