)]}'
{"neutron/scheduler/l3_agent_scheduler.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"906a72c9a238584e22cb70c759669ee37dfa50df","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            l3_agents \u003d plugin.get_l3_agents_hosting_routers("},{"line_number":58,"context_line":"                context, [router[\u0027id\u0027]], admin_state_up\u003dTrue)"},{"line_number":59,"context_line":"            # TODO(armando-migliaccio): remove dvr-related check"},{"line_number":60,"context_line":"            if l3_agents and not router.get(\u0027distributed\u0027, False):"},{"line_number":61,"context_line":"                LOG.debug((\u0027Router %(router_id)s has already been \u0027"},{"line_number":62,"context_line":"                           \u0027hosted by L3 agent %(agent_id)s\u0027),"},{"line_number":63,"context_line":"                          {\u0027router_id\u0027: router[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_15c80321","side":"PARENT","line":60,"updated":"2014-08-28 18:36:27.000000000","message":"DVR routers are filtered after calling this method (L84).  So, \"routers\" here still has DVR routers.  Is it okay to start logging this debug message for them?\n\nAnother observation is that this change is strictly independent of the others in this patch.  I\u0027d rather consider it separately.","commit_id":"76f4d7db9f44022667d347dfe0474a3abb3b1bb7"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"488fa81e0fedb486f28c6a76dac5d1c5d56e5222","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            l3_agents \u003d plugin.get_l3_agents_hosting_routers("},{"line_number":58,"context_line":"                context, [router[\u0027id\u0027]], admin_state_up\u003dTrue)"},{"line_number":59,"context_line":"            # TODO(armando-migliaccio): remove dvr-related check"},{"line_number":60,"context_line":"            if l3_agents and not router.get(\u0027distributed\u0027, False):"},{"line_number":61,"context_line":"                LOG.debug((\u0027Router %(router_id)s has already been \u0027"},{"line_number":62,"context_line":"                           \u0027hosted by L3 agent %(agent_id)s\u0027),"},{"line_number":63,"context_line":"                          {\u0027router_id\u0027: router[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_e5d2e25a","side":"PARENT","line":60,"in_reply_to":"1abeadc6_15c80321","updated":"2014-08-29 05:08:59.000000000","message":"The reason I added this TODO message here was because in review:\n\nhttps://review.openstack.org/#/c/114691/\n\nIt was observed that the method name didn\u0027t really express what the method was filtering and returning. In turn I had decided to keep the name and and a TODO to remind me of the cleanup here.\n\nI know it\u0027s not been very elegant, but it was fit for the purpose IMO.\n\nHaving said that, I couldn\u0027t give me a reason why we would treat this DEBUG trace any differently, that\u0027s why I preferred simplifying the code.","commit_id":"76f4d7db9f44022667d347dfe0474a3abb3b1bb7"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"da02ed816e12564671817cc5af320383fb5c83bf","unresolved":false,"context_lines":[{"line_number":57,"context_line":"            l3_agents \u003d plugin.get_l3_agents_hosting_routers("},{"line_number":58,"context_line":"                context, [router[\u0027id\u0027]], admin_state_up\u003dTrue)"},{"line_number":59,"context_line":"            # TODO(armando-migliaccio): remove dvr-related check"},{"line_number":60,"context_line":"            if l3_agents and not router.get(\u0027distributed\u0027, False):"},{"line_number":61,"context_line":"                LOG.debug((\u0027Router %(router_id)s has already been \u0027"},{"line_number":62,"context_line":"                           \u0027hosted by L3 agent %(agent_id)s\u0027),"},{"line_number":63,"context_line":"                          {\u0027router_id\u0027: router[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_7dfdf939","side":"PARENT","line":60,"in_reply_to":"1abeadc6_e5d2e25a","updated":"2014-09-02 17:41:11.000000000","message":"Okay.","commit_id":"76f4d7db9f44022667d347dfe0474a3abb3b1bb7"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"906a72c9a238584e22cb70c759669ee37dfa50df","unresolved":false,"context_lines":[{"line_number":176,"context_line":"    def bind_routers(self, context, routers, l3_agent):"},{"line_number":177,"context_line":"        for router in routers:"},{"line_number":178,"context_line":"            if (router.get(\u0027distributed\u0027, False) and"},{"line_number":179,"context_line":"                self.dvr_has_binding(context, router[\u0027id\u0027], l3_agent.id)):"},{"line_number":180,"context_line":"                    continue"},{"line_number":181,"context_line":"            self.bind_router(context, router[\u0027id\u0027], l3_agent)"},{"line_number":182,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_55419b61","side":"PARENT","line":179,"updated":"2014-08-28 18:36:27.000000000","message":"This could maybe result in a lot of extra queries.  Nice job removing this!","commit_id":"76f4d7db9f44022667d347dfe0474a3abb3b1bb7"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"906a72c9a238584e22cb70c759669ee37dfa50df","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        return []"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def get_routers_to_schedule(self, context, plugin,"},{"line_number":73,"context_line":"                                router_ids\u003dNone, exclude_distributed\u003dFalse):"},{"line_number":74,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        :param context: the context"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_b523cf03","line":73,"updated":"2014-08-28 18:36:27.000000000","message":"There is only one caller of get_routers_to_schedule.  That caller (L127) passes True unconditionally for exclude_distributed.  Why does this method need the exclude_distributed parameter at all?","commit_id":"bf42c4d8bb8ab31d061c1089357777a7693d7434"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"da02ed816e12564671817cc5af320383fb5c83bf","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        return []"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def get_routers_to_schedule(self, context, plugin,"},{"line_number":73,"context_line":"                                router_ids\u003dNone, exclude_distributed\u003dFalse):"},{"line_number":74,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        :param context: the context"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa98f980_1dd6adc5","line":73,"in_reply_to":"1abeadc6_05951e32","updated":"2014-09-02 17:41:11.000000000","message":"YAGNI.  :P","commit_id":"bf42c4d8bb8ab31d061c1089357777a7693d7434"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"488fa81e0fedb486f28c6a76dac5d1c5d56e5222","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        return []"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def get_routers_to_schedule(self, context, plugin,"},{"line_number":73,"context_line":"                                router_ids\u003dNone, exclude_distributed\u003dFalse):"},{"line_number":74,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        :param context: the context"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_05951e32","line":73,"in_reply_to":"1abeadc6_b523cf03","updated":"2014-08-29 05:08:59.000000000","message":"I meant for this to be future-proof, so that if \u0027get_routers_to_schedule\u0027 needs to be used, one can choose to select to include or exclude routers.\nIn the context in which this has been utilized so far, you\u0027re spot on, we could live without.","commit_id":"bf42c4d8bb8ab31d061c1089357777a7693d7434"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"906a72c9a238584e22cb70c759669ee37dfa50df","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        else:"},{"line_number":87,"context_line":"            unscheduled_routers \u003d self.get_unscheduled_routers(context, plugin)"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        if exclude_distributed:"},{"line_number":90,"context_line":"            unscheduled_routers \u003d ["},{"line_number":91,"context_line":"                r for r in unscheduled_routers if not r.get(\u0027distributed\u0027)"},{"line_number":92,"context_line":"            ]"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_55099b82","line":89,"updated":"2014-08-28 18:36:27.000000000","message":"(no change requested with this note)\n\nCould we try to bake this in to the queries?  I\u0027m okay attempting this out of the scope of this patch.  In fact, I\u0027m close to wanting to refactor some of this myself.  I\u0027ve got to think about it some more and factor in HA integration as well.","commit_id":"bf42c4d8bb8ab31d061c1089357777a7693d7434"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"488fa81e0fedb486f28c6a76dac5d1c5d56e5222","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        else:"},{"line_number":87,"context_line":"            unscheduled_routers \u003d self.get_unscheduled_routers(context, plugin)"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        if exclude_distributed:"},{"line_number":90,"context_line":"            unscheduled_routers \u003d ["},{"line_number":91,"context_line":"                r for r in unscheduled_routers if not r.get(\u0027distributed\u0027)"},{"line_number":92,"context_line":"            ]"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_65fb32c1","line":89,"in_reply_to":"1abeadc6_55099b82","updated":"2014-08-29 05:08:59.000000000","message":"we could, but I felt I ran out of refactoring coins for this part of this code :)","commit_id":"bf42c4d8bb8ab31d061c1089357777a7693d7434"}],"neutron/tests/unit/test_l3_schedulers.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"4c9bcf51fc442600ea7e631220842757efa0ac5c","unresolved":false,"context_lines":[{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def test_get_routers_to_schedule_with_dvr(self):"},{"line_number":147,"context_line":"        router_ids \u003d [\u0027foo_router_1\u0027]"},{"line_number":148,"context_line":"        expected_routers \u003d ["},{"line_number":149,"context_line":"            {\u0027id\u0027: \u0027foo_router1\u0027, \u0027distributed\u0027: True}"},{"line_number":150,"context_line":"        ]"},{"line_number":151,"context_line":"        self._test_get_routers_to_schedule("}],"source_content_type":"text/x-python","patch_set":4,"id":"1abeadc6_ad0d5540","line":148,"updated":"2014-08-21 08:24:20.000000000","message":"nit: expected may not be best name here as we are really expecting none routers to be scheduled","commit_id":"e3d066d7d1ecc095ba022066372c188d7aec4eff"}]}
