)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"efcec516ef25dd73b989ae7d07bce53aa0388455","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-06-01 21:29:06 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Don\u0027t print RPC error traceback at L3 agent start"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Sometimes the AgentNotFoundByTypeHost exception is reported at"},{"line_number":10,"context_line":"L3-agent startup. The exception is generated when the first"},{"line_number":11,"context_line":"get_routers RPC call is made. When the neutron server gets this"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"5afe65bd_c82a992c","line":8,"updated":"2015-06-02 03:35:39.000000000","message":"The solution I think is to call report_state (Synchronously with call, not cast) right before the first manual invocation of sync_routers, on line 563.","commit_id":"a6eb5868d43e50ed36c312742bd0da17a1f43477"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"faeee3c360dd2806465eab8f27942b058a86f30b","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-06-01 21:29:06 +0000"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Don\u0027t print RPC error traceback at L3 agent start"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Sometimes the AgentNotFoundByTypeHost exception is reported at"},{"line_number":10,"context_line":"L3-agent startup. The exception is generated when the first"},{"line_number":11,"context_line":"get_routers RPC call is made. When the neutron server gets this"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3afb71cf_8a5cafee","line":8,"in_reply_to":"5afe65bd_c82a992c","updated":"2015-06-04 19:59:03.000000000","message":"Thanks, I will submit a new review shortly with the changes you suggested.","commit_id":"a6eb5868d43e50ed36c312742bd0da17a1f43477"}],"neutron/agent/l3/agent.py":[{"author":{"_account_id":7141,"name":"Sylvain Afchain","email":"safchain@redhat.com","username":"sylvainA"},"change_message_id":"bff275b64b4f4c0c72ea6a2778f7870418e9f6c9","unresolved":false,"context_lines":[{"line_number":522,"context_line":"                                                      [self.conf.router_id])"},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"        except oslo_messaging.MessagingException:"},{"line_number":525,"context_line":"            if self._sync_routers_count \u003e 1:"},{"line_number":526,"context_line":"                LOG.exception(_LE(\"Failed synchronizing routers due \""},{"line_number":527,"context_line":"                                  \"to RPC error\"))"},{"line_number":528,"context_line":"                raise n_exc.AbortSyncRouters()"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a016987_e1328f0f","line":525,"updated":"2015-05-29 07:22:42.000000000","message":"Why not updating a variable after the first state report is in first state report method, so that we could be sure of the error","commit_id":"a30acb2ad179a698273e5afe352b9cb300dae940"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"e965797fad4d984e0d4cc05bbd9ee97c8156b68b","unresolved":false,"context_lines":[{"line_number":522,"context_line":"                                                      [self.conf.router_id])"},{"line_number":523,"context_line":""},{"line_number":524,"context_line":"        except oslo_messaging.MessagingException:"},{"line_number":525,"context_line":"            if self._sync_routers_count \u003e 1:"},{"line_number":526,"context_line":"                LOG.exception(_LE(\"Failed synchronizing routers due \""},{"line_number":527,"context_line":"                                  \"to RPC error\"))"},{"line_number":528,"context_line":"                raise n_exc.AbortSyncRouters()"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a016987_282cea97","line":525,"in_reply_to":"7a016987_e1328f0f","updated":"2015-05-29 23:22:24.000000000","message":"I will use the _state_reported() method from PS1 and incorporate it here.  The _state_reported() checks the \u0027start_flag\u0027 element updated by L3NATAgentWithStateReport\u0027s report_state() method after it made the state_report RPC.","commit_id":"a30acb2ad179a698273e5afe352b9cb300dae940"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"471caf1c3184ae8ed6126027a61223fe02e58d0a","unresolved":false,"context_lines":[{"line_number":524,"context_line":""},{"line_number":525,"context_line":"        except oslo_messaging.MessagingException as msg_ex:"},{"line_number":526,"context_line":"            if (not self._state_reported() and"},{"line_number":527,"context_line":"                \u0027AgentNotFoundByTypeHost\u0027 in str(msg_ex)):"},{"line_number":528,"context_line":"                LOG.warn(_LW(\"AgentNotFoundByTypeHost RPC error at L3 agent \""},{"line_number":529,"context_line":"                             \"startup, retrying router synchronization\"))"},{"line_number":530,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a016987_9358a68b","line":527,"updated":"2015-05-31 08:32:57.000000000","message":"i would prefer you use:\n\n  AgentNotFoundByTypeHost.__name__","commit_id":"4340c36ca12639d73d3aad803310d4b7b0728e27"},{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"4fb58bf8b4dfdb90a2ad193831bccdff9d13ca67","unresolved":false,"context_lines":[{"line_number":545,"context_line":"                                            action\u003dqueue.DELETE_ROUTER)"},{"line_number":546,"context_line":"                self._queue.add(update)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_ed30dd09","line":548,"updated":"2015-06-04 20:48:58.000000000","message":"I think it is better to move this to L3NATAgentWithStateReport as this method has nothing to do with L3NATAgent. \n\nIt is better to implement another after_start method in L3NATAgentWithStateReport.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"912adeabde8bc2fa69dfbe99ce80762eed97c38a","unresolved":false,"context_lines":[{"line_number":545,"context_line":"                                            action\u003dqueue.DELETE_ROUTER)"},{"line_number":546,"context_line":"                self._queue.add(update)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_3eab928b","line":548,"in_reply_to":"3afb71cf_ed30dd09","updated":"2015-06-05 19:27:11.000000000","message":"I am going to create an after_start method in L3NATAgentWithStateReport.  So the _do_before_first_sync_routers method is not needed.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0d71abf363ba32e958bbf38f7d9f37260a606ea8","unresolved":false,"context_lines":[{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"},{"line_number":552,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":553,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_ad40a508","line":550,"updated":"2015-06-04 20:39:01.000000000","message":"I think that you can just move the after_start method to L3NATAgentWithStateReport.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"7ad382a3993a34d39af81bafc1ac062428da580c","unresolved":false,"context_lines":[{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"},{"line_number":552,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":553,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_9e02ad6e","line":550,"in_reply_to":"3afb71cf_2daa751a","updated":"2015-06-04 22:09:51.000000000","message":"I agree with Kahou Lei, we cannot move L3NATAgent\u0027s after_start method.  For example, neutron-fwaas\u0027s vArmourL3NATAgent in [1] is derived from L3NATAgent.  vArmourL3NATAgent is not overriding L3NATAgent\u0027s after_start method.\n\n[1]: neutron_fwaas/services/firewall/agents/varmour/varmour_router.py in the neutron-fwaas repo.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"29aba87765446633d7dc15485261e9388e6e0303","unresolved":false,"context_lines":[{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"},{"line_number":552,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":553,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_7e122ab6","line":550,"in_reply_to":"3afb71cf_3e827201","updated":"2015-06-05 19:31:54.000000000","message":"Please leave a comment in this after_start saying that it\u0027s here because it\u0027s used in FWaaS. Later we can examine the possibility of making  vArmourL3NAGAgent use L3NATAgentWithStateReport (If it even uses RPC or needs the heart beat? I don\u0027t know).","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"912adeabde8bc2fa69dfbe99ce80762eed97c38a","unresolved":false,"context_lines":[{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"},{"line_number":552,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":553,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_3e827201","line":550,"in_reply_to":"3afb71cf_9e02ad6e","updated":"2015-06-05 19:27:11.000000000","message":"I am going to keep the L3NATAgent\u0027s state_report because vArmourL3NAGAgent is is going to break if removed.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":14064,"name":"Kahou Lei","email":"kahou82@gmail.com","username":"kahou82"},"change_message_id":"4fb58bf8b4dfdb90a2ad193831bccdff9d13ca67","unresolved":false,"context_lines":[{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def _do_before_first_sync_routers(self):"},{"line_number":549,"context_line":"        pass"},{"line_number":550,"context_line":""},{"line_number":551,"context_line":"    def after_start(self):"},{"line_number":552,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":553,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_2daa751a","line":550,"in_reply_to":"3afb71cf_ad40a508","updated":"2015-06-04 20:48:58.000000000","message":"If we move the after_start method to the child, L3NATAgent will call it\u0027s parent after_start method (which does nothing), right?","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f6b1cb62ebecb472add81ab96fba199017e4fa43","unresolved":false,"context_lines":[{"line_number":545,"context_line":"                                            action\u003dqueue.DELETE_ROUTER)"},{"line_number":546,"context_line":"                self._queue.add(update)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def after_start(self):"},{"line_number":549,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":550,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"},{"line_number":551,"context_line":"        # When L3 agent is ready, we immediately do a full sync"}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_b4e2fad3","line":548,"updated":"2015-06-06 02:51:37.000000000","message":"Assaf had a comment about putting a comment here in PS7 regarding the vArmourL3NATAgent","commit_id":"26ccb4ab1adcaa1d144ea6ad764d4f2b8504f134"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"8377c257c12ce8e0cec6334d8ffcf117977f9a7c","unresolved":false,"context_lines":[{"line_number":545,"context_line":"                                            action\u003dqueue.DELETE_ROUTER)"},{"line_number":546,"context_line":"                self._queue.add(update)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def after_start(self):"},{"line_number":549,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"},{"line_number":550,"context_line":"        LOG.info(_LI(\"L3 agent started\"))"},{"line_number":551,"context_line":"        # When L3 agent is ready, we immediately do a full sync"}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_0f353bd9","line":548,"in_reply_to":"3afb71cf_b4e2fad3","updated":"2015-06-06 04:10:14.000000000","message":"Thanks for reminding me.  I will put comments here and incorporate Assaf\u0027s comments here instead of at  L617-620.","commit_id":"26ccb4ab1adcaa1d144ea6ad764d4f2b8504f134"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"f6b1cb62ebecb472add81ab96fba199017e4fa43","unresolved":false,"context_lines":[{"line_number":615,"context_line":""},{"line_number":616,"context_line":"    def after_start(self):"},{"line_number":617,"context_line":"        # Note: the FWaaS\u0027 vArmourL3NATAgent is a subclass of L3NATAgent."},{"line_number":618,"context_line":"        # It did not override the after_state method. Thus the after_state"},{"line_number":619,"context_line":"        # method needs to stay in L3NATAgent. VArmourL3NATAgent would break"},{"line_number":620,"context_line":"        # if it were removed."},{"line_number":621,"context_line":"        eventlet.spawn_n(self._process_routers_loop)"}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_b48d5a33","line":618,"updated":"2015-06-06 02:51:37.000000000","message":"nit: s/after_state/after_start","commit_id":"26ccb4ab1adcaa1d144ea6ad764d4f2b8504f134"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"9efc71371be39b62604112df7996bc3cad7809ba","unresolved":false,"context_lines":[{"line_number":545,"context_line":"                                            action\u003dqueue.DELETE_ROUTER)"},{"line_number":546,"context_line":"                self._queue.add(update)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":"    def after_start(self):"},{"line_number":549,"context_line":"        # Note: the FWaaS\u0027 vArmourL3NATAgent is a subclass of L3NATAgent. It"},{"line_number":550,"context_line":"        # calls this method here. So Removing this after_start() would break"},{"line_number":551,"context_line":"        # vArmourL3NATAgent. We need to find out whether vArmourL3NATAgent"}],"source_content_type":"text/x-python","patch_set":10,"id":"3afb71cf_61e39434","line":548,"updated":"2015-06-08 01:35:47.000000000","message":"I tried verifying that removing this method would not break vArmour, but it\u0027s difficult because they don\u0027t run their CI on Neutron patches, only FWaaS patches, and using Depends-On didn\u0027t seem to work, their CI job picks up Neutron from git (Perhaps my understanding of Depends-On is flawed, or that it\u0027s only supported by Jenkins+Zuul).\n\nWe can live with this for now.","commit_id":"b649b9c871d0734745da5a201eca83a6b407a1c5"}],"neutron/tests/unit/agent/l3/test_agent.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"0d71abf363ba32e958bbf38f7d9f37260a606ea8","unresolved":false,"context_lines":[{"line_number":423,"context_line":""},{"line_number":424,"context_line":"    def test_l3_initial_report_state_done(self):"},{"line_number":425,"context_line":"        with mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":426,"context_line":"                               \u0027periodic_sync_routers_task\u0027),\\"},{"line_number":427,"context_line":"                mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":428,"context_line":"                                  \u0027_report_state\u0027) as report_state,\\"},{"line_number":429,"context_line":"                mock.patch.object(eventlet, \u0027spawn_n\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_adfd4570","line":426,"updated":"2015-06-04 20:39:01.000000000","message":"I would prefer to mock l3_agent.state_rpc.report_state instead of _report_state. It\u0027s a gentle distinction but it allows us greater flexibility to refactor stuff and not have this test break when it shouldn\u0027t.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"},{"author":{"_account_id":6876,"name":"stephen-ma","email":"stephenbma43@gmail.com","username":"stephen-ma"},"change_message_id":"912adeabde8bc2fa69dfbe99ce80762eed97c38a","unresolved":false,"context_lines":[{"line_number":423,"context_line":""},{"line_number":424,"context_line":"    def test_l3_initial_report_state_done(self):"},{"line_number":425,"context_line":"        with mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":426,"context_line":"                               \u0027periodic_sync_routers_task\u0027),\\"},{"line_number":427,"context_line":"                mock.patch.object(l3_agent.L3NATAgentWithStateReport,"},{"line_number":428,"context_line":"                                  \u0027_report_state\u0027) as report_state,\\"},{"line_number":429,"context_line":"                mock.patch.object(eventlet, \u0027spawn_n\u0027):"}],"source_content_type":"text/x-python","patch_set":7,"id":"3afb71cf_5e940e36","line":426,"in_reply_to":"3afb71cf_adfd4570","updated":"2015-06-05 19:27:11.000000000","message":"Done.  Will do in next patch set.","commit_id":"59b400b810b40a5cd88f5c39492201fc5edaef2d"}]}
