)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d81f69ff7e8c3c55c1e614f1ae1a4252290c06c6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Michael Smith \u003cmichael.smith6@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-30 23:21:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix for bug 1350667:"},{"line_number":8,"context_line":"centralized router is scheduled to dvr configured agent"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Change-Id: I34e118535094520f2cee853f39d582a625acde20"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_d476c60b","line":7,"updated":"2014-07-31 14:15:05.000000000","message":"without the format:\n\nCloses-bug: ####\n\nJenkins won\u0027t be able to pick up the patch and automatically update the LP bug report. Please, revise.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"79575f0679f71ec22050cdb06d91308c134a7613","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Michael Smith \u003cmichael.smith6@hp.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-30 23:21:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix for bug 1350667:"},{"line_number":8,"context_line":"centralized router is scheduled to dvr configured agent"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Change-Id: I34e118535094520f2cee853f39d582a625acde20"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_ae01fa6e","line":7,"in_reply_to":"baada198_d476c60b","updated":"2014-07-31 17:52:39.000000000","message":"Thanks - I figured I had the format wrong","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d81f69ff7e8c3c55c1e614f1ae1a4252290c06c6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-07-30 23:21:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix for bug 1350667:"},{"line_number":8,"context_line":"centralized router is scheduled to dvr configured agent"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Change-Id: I34e118535094520f2cee853f39d582a625acde20"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_b4ddd2df","line":8,"updated":"2014-07-31 14:15:05.000000000","message":"From this message it\u0027s not clear what you\u0027re fixing. Is this is statement pre or after the fix? I know what you mean, but this commit will be seen by people that are not necessarily expert with the code base and dvr in particular","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"79575f0679f71ec22050cdb06d91308c134a7613","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2014-07-30 23:21:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix for bug 1350667:"},{"line_number":8,"context_line":"centralized router is scheduled to dvr configured agent"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"Change-Id: I34e118535094520f2cee853f39d582a625acde20"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_ce2b8ee8","line":8,"in_reply_to":"baada198_b4ddd2df","updated":"2014-07-31 17:52:39.000000000","message":"Understood.  How about \"centralized router is incorrectly scheduled to l3-agent configured as agent_mode\u003ddvr\"","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"}],"neutron/db/l3_agentschedulers_db.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"71eb534c0ea2a1634d5a5967a63ceb945945365f","unresolved":false,"context_lines":[{"line_number":330,"context_line":"                 ex_net_id !\u003d gateway_external_network_id)):"},{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif agent_mode \u003d\u003d \u0027dvr\u0027 and ("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_5a7e54b0","line":333,"updated":"2014-07-31 19:52:05.000000000","message":"I am not sure this condition happens to be correct as this results in the scheduler not picking up any agent when the router is distributed (on a single host deployment). Looking...","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"006ceec50c40d5e88f244cdf07a11a863cfc7598","unresolved":false,"context_lines":[{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif agent_mode \u003d\u003d \u0027dvr\u0027 and ("},{"line_number":337,"context_line":"                self.check_vmexists_on_l3agent("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_06901f41","line":334,"updated":"2014-07-31 09:57:02.000000000","message":"nit: I would suggest making constants of these identifiers and use it in router-related code","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d81f69ff7e8c3c55c1e614f1ae1a4252290c06c6","unresolved":false,"context_lines":[{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif agent_mode \u003d\u003d \u0027dvr\u0027 and ("},{"line_number":337,"context_line":"                self.check_vmexists_on_l3agent("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_548636bb","line":334,"in_reply_to":"baada198_06901f41","updated":"2014-07-31 14:15:05.000000000","message":"This has come up before and I agree with Eugene. We should really try to avoid using string constants, even though they are all over the place :)\n\nI\u0027d rather see it in a clean-up patch though. Because there are several files where this happens, and it would make this patch busier than it needs to be.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"1e5d16fcf78eee6d6b3e099147681ff2552c55f5","unresolved":false,"context_lines":[{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif agent_mode \u003d\u003d \u0027dvr\u0027 and ("},{"line_number":337,"context_line":"                self.check_vmexists_on_l3agent("}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_892c3095","line":334,"in_reply_to":"baada198_548636bb","updated":"2014-07-31 20:08:27.000000000","message":"+1 to Armando\u0027s comment.  I think it is out of the scope of this patch to fix this.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"761b840dc8664f8ae2ef16310b0a07fb645e5c4b","unresolved":false,"context_lines":[{"line_number":330,"context_line":"                 ex_net_id !\u003d gateway_external_network_id)):"},{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif is_router_distributed and agent_mode.startswith(\u0027dvr\u0027) and ("}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_ce7d47e8","line":333,"updated":"2014-07-31 21:53:22.000000000","message":"nit: this would read a lot better if it was:\n\n   agent_mode in (\u0027legacy\u0027, \u0027dvr_snat\u0027) and not is_router_distributed","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"617fa449636c4273970ef0591ccbff57e48c9a06","unresolved":false,"context_lines":[{"line_number":330,"context_line":"                 ex_net_id !\u003d gateway_external_network_id)):"},{"line_number":331,"context_line":"                continue"},{"line_number":332,"context_line":"            is_router_distributed \u003d sync_router.get(\u0027distributed\u0027, False)"},{"line_number":333,"context_line":"            if not is_router_distributed and ("},{"line_number":334,"context_line":"                agent_mode \u003d\u003d \u0027legacy\u0027 or agent_mode \u003d\u003d \u0027dvr_snat\u0027):"},{"line_number":335,"context_line":"                candidates.append(l3_agent)"},{"line_number":336,"context_line":"            elif is_router_distributed and agent_mode.startswith(\u0027dvr\u0027) and ("}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_5129d69a","line":333,"in_reply_to":"baada198_ce7d47e8","updated":"2014-07-31 22:03:40.000000000","message":"Sure - it was getting a bit heavy","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"}],"neutron/tests/unit/test_l3_schedulers.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d81f69ff7e8c3c55c1e614f1ae1a4252290c06c6","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        # first test legacy agent_mode case"},{"line_number":172,"context_line":"        self.get_l3_agent_candidates(self.adminContext, router, [self.agent1],"},{"line_number":173,"context_line":"                                     subnet_id\u003dNone)"},{"line_number":174,"context_line":"        self.assertEqual(self.check_vmexists_on_l3agent.call_count, 0)"},{"line_number":175,"context_line":"        # TODO(mrsmith): test dvr agent_mode case"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_14103e58","line":174,"updated":"2014-07-31 14:15:05.000000000","message":"I guess here you\u0027d want to test how \u0027candidates\u0027 looks like too. Granted that if check_vmexists_on_l3agent is not called in the centralized case, but that\u0027s not enough to guarantee that the correct scheduling happens.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"79575f0679f71ec22050cdb06d91308c134a7613","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        # first test legacy agent_mode case"},{"line_number":172,"context_line":"        self.get_l3_agent_candidates(self.adminContext, router, [self.agent1],"},{"line_number":173,"context_line":"                                     subnet_id\u003dNone)"},{"line_number":174,"context_line":"        self.assertEqual(self.check_vmexists_on_l3agent.call_count, 0)"},{"line_number":175,"context_line":"        # TODO(mrsmith): test dvr agent_mode case"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_2e516a63","line":174,"in_reply_to":"baada198_14103e58","updated":"2014-07-31 17:52:39.000000000","message":"This comes to my core problem - I wasn\u0027t finding it easy to alter the agent_mode for the agents being tested here.  I need more work to get the unit test to properly configure and read the agent_modes.  Its more about the test framework than anything else at this point.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"d81f69ff7e8c3c55c1e614f1ae1a4252290c06c6","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        self.get_l3_agent_candidates(self.adminContext, router, [self.agent1],"},{"line_number":173,"context_line":"                                     subnet_id\u003dNone)"},{"line_number":174,"context_line":"        self.assertEqual(self.check_vmexists_on_l3agent.call_count, 0)"},{"line_number":175,"context_line":"        # TODO(mrsmith): test dvr agent_mode case"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"class L3AgentChanceSchedulerTestCase(L3SchedulerTestCase):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_b450722d","line":175,"updated":"2014-07-31 14:15:05.000000000","message":"testing the dvr agent_mode should be a separate one.","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"79575f0679f71ec22050cdb06d91308c134a7613","unresolved":false,"context_lines":[{"line_number":172,"context_line":"        self.get_l3_agent_candidates(self.adminContext, router, [self.agent1],"},{"line_number":173,"context_line":"                                     subnet_id\u003dNone)"},{"line_number":174,"context_line":"        self.assertEqual(self.check_vmexists_on_l3agent.call_count, 0)"},{"line_number":175,"context_line":"        # TODO(mrsmith): test dvr agent_mode case"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":""},{"line_number":178,"context_line":"class L3AgentChanceSchedulerTestCase(L3SchedulerTestCase):"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_ce79cefc","line":175,"in_reply_to":"baada198_b450722d","updated":"2014-07-31 17:52:39.000000000","message":"what I meant here was I first tested when agent_mode\u003dlegacy, now test when agent_mode\u003ddvr","commit_id":"459d0e6d982040c4e907a24fc7395f1a2a0274e0"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"761b840dc8664f8ae2ef16310b0a07fb645e5c4b","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                             filters\u003d{\u0027host\u0027: [HOST_DVR_SNAT]})"},{"line_number":141,"context_line":"        self.l3_dvr_snat_id \u003d agent_db[0].id"},{"line_number":142,"context_line":"        self.l3_dvr_snat_agent \u003d agent_db[0]"},{"line_number":143,"context_line":"        # disable dvr_snat agent so we don\u0027t conflict with other tests"},{"line_number":144,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":145,"context_line":"                                       self.l3_dvr_snat_id, False)"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_b12eb2f8","line":143,"updated":"2014-07-31 21:53:22.000000000","message":"I understand why you\u0027re piggybacking on this, but this gets dangerous because the ripple effects that it may potentially have. Would it be possible  to break this out into a method that registers agents it its own method that gets called in the dvr specific tests?","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"617fa449636c4273970ef0591ccbff57e48c9a06","unresolved":false,"context_lines":[{"line_number":140,"context_line":"                                             filters\u003d{\u0027host\u0027: [HOST_DVR_SNAT]})"},{"line_number":141,"context_line":"        self.l3_dvr_snat_id \u003d agent_db[0].id"},{"line_number":142,"context_line":"        self.l3_dvr_snat_agent \u003d agent_db[0]"},{"line_number":143,"context_line":"        # disable dvr_snat agent so we don\u0027t conflict with other tests"},{"line_number":144,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":145,"context_line":"                                       self.l3_dvr_snat_id, False)"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_fc080129","line":143,"in_reply_to":"baada198_b12eb2f8","updated":"2014-07-31 22:03:40.000000000","message":"There are ripple affects.   So you\u0027re thinking like _register_l3_dvr_agents()?","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"761b840dc8664f8ae2ef16310b0a07fb645e5c4b","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        candidates \u003d self.get_l3_agent_candidates(self.adminContext,"},{"line_number":236,"context_line":"                                                  router, agent_list,"},{"line_number":237,"context_line":"                                                  subnet_id\u003dNone)"},{"line_number":238,"context_line":"        # disable dvr_snat agent so we don\u0027t conflict with other tests"},{"line_number":239,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":240,"context_line":"                                       self.l3_dvr_snat_id, False)"},{"line_number":241,"context_line":"        self.assertEqual(len(candidates), 1)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_113d9e2c","line":238,"updated":"2014-07-31 21:53:22.000000000","message":"see my comments above.","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"617fa449636c4273970ef0591ccbff57e48c9a06","unresolved":false,"context_lines":[{"line_number":235,"context_line":"        candidates \u003d self.get_l3_agent_candidates(self.adminContext,"},{"line_number":236,"context_line":"                                                  router, agent_list,"},{"line_number":237,"context_line":"                                                  subnet_id\u003dNone)"},{"line_number":238,"context_line":"        # disable dvr_snat agent so we don\u0027t conflict with other tests"},{"line_number":239,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":240,"context_line":"                                       self.l3_dvr_snat_id, False)"},{"line_number":241,"context_line":"        self.assertEqual(len(candidates), 1)"}],"source_content_type":"text/x-python","patch_set":2,"id":"baada198_3c0ef932","line":238,"in_reply_to":"baada198_113d9e2c","updated":"2014-07-31 22:03:40.000000000","message":"Ya - it was getting clumsy.... I\u0027ll try your suggestion.","commit_id":"be9c8cd857bce14b115367eaf359675c12896103"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"225d76a869eabba119643f66df15ba9918b15de9","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        # centralized and distributed routers"},{"line_number":226,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":227,"context_line":"                                       self.l3_dvr_snat_id, True)"},{"line_number":228,"context_line":"        agent_list \u003d [self.l3_dvr_snat_agent]"},{"line_number":229,"context_line":"        candidates \u003d self.get_l3_agent_candidates(self.adminContext,"},{"line_number":230,"context_line":"                                                  router, agent_list,"},{"line_number":231,"context_line":"                                                  subnet_id\u003dNone)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_1ddbef7d","line":228,"updated":"2014-08-01 00:05:37.000000000","message":"block 210-223 looks an awful lot like block 228-240, with some subtleties. I am okay with that, but I wouldn\u0027t stop you if you wanted to simplify the code even further.","commit_id":"b9d09251dd38ef4fdcd18487627e2e8eee6bba74"},{"author":{"_account_id":10971,"name":"Michael Smith","email":"michael.smith6@hp.com","username":"mrsmith"},"change_message_id":"137592d276c80348a44b893f34232195199077ba","unresolved":false,"context_lines":[{"line_number":225,"context_line":"        # centralized and distributed routers"},{"line_number":226,"context_line":"        self._set_l3_agent_admin_state(self.adminContext,"},{"line_number":227,"context_line":"                                       self.l3_dvr_snat_id, True)"},{"line_number":228,"context_line":"        agent_list \u003d [self.l3_dvr_snat_agent]"},{"line_number":229,"context_line":"        candidates \u003d self.get_l3_agent_candidates(self.adminContext,"},{"line_number":230,"context_line":"                                                  router, agent_list,"},{"line_number":231,"context_line":"                                                  subnet_id\u003dNone)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_af03aabc","line":228,"in_reply_to":"baada198_1ddbef7d","updated":"2014-08-01 01:10:05.000000000","message":"less is more... I made some changes....","commit_id":"b9d09251dd38ef4fdcd18487627e2e8eee6bba74"}]}
