)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"fd31d52ba8b338640d045be10fd020bd9951a8d0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"fixes for it."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is done in preparation of fix for DB"},{"line_number":14,"context_line":"lock timeout errors observed while dealing"},{"line_number":15,"context_line":"with DVR routers."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Test coverage is already provided, and more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1abeadc6_a36acb7e","line":14,"updated":"2014-08-21 05:33:16.000000000","message":"I wish you didn\u0027t line wrap in here so much. It seems like you started doing this more recently? This line can span to 80 chars!","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":11,"context_line":"fixes for it."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is done in preparation of fix for DB"},{"line_number":14,"context_line":"lock timeout errors observed while dealing"},{"line_number":15,"context_line":"with DVR routers."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Test coverage is already provided, and more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1abeadc6_9a2600cd","line":14,"in_reply_to":"1abeadc6_a36acb7e","updated":"2014-08-21 14:04:26.000000000","message":"I\u0027ll be more diligent next time, and use all the space at my disposal :)","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"db531743c5ab90506f37201481cd6a85af53b1cd","unresolved":false,"context_lines":[{"line_number":11,"context_line":"fixes for it."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is done in preparation of fix for DB"},{"line_number":14,"context_line":"lock timeout errors observed while dealing"},{"line_number":15,"context_line":"with DVR routers."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Test coverage is already provided, and more"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"1abeadc6_10d2d95b","line":14,"in_reply_to":"1abeadc6_a36acb7e","updated":"2014-08-21 11:02:33.000000000","message":"iirc, it\u0027s 72 characters[1] ... don\u0027t know why ... perhaps because git commit line are prefixed with 8 spaces?\n\n\n[1]https://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_GIT_commit_message_structure","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"}],"neutron/db/agents_db.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"525cdfea8f94d369afc8f3fa60e7d5e6a41b50c5","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                             Agent.admin_state_up \u003d\u003d sql.true())"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except (exc.MultipleResultsFound, exc.NoResultFound):"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_e93e6f8b","line":93,"updated":"2014-08-20 21:35:18.000000000","message":"exc.MultipleResultsFound case seems impossible? If it\u0027s possible, then the log and the consequence are invalid","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"ed4023c484c652ed55126cc61f631a7c3a027be7","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                             Agent.admin_state_up \u003d\u003d sql.true())"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except (exc.MultipleResultsFound, exc.NoResultFound):"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_efc3cfea","line":93,"in_reply_to":"1abeadc6_6fd09ff6","updated":"2014-08-20 22:52:22.000000000","message":"what do you mean by \u0027the consequences are invalid\u0027?","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"cfa658a2f89ef2d05f51fe2a73272cadfd7af477","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                             Agent.admin_state_up \u003d\u003d sql.true())"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except (exc.MultipleResultsFound, exc.NoResultFound):"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_6fd09ff6","line":93,"in_reply_to":"1abeadc6_e93e6f8b","updated":"2014-08-20 22:45:10.000000000","message":"this is straight refactoring","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"525cdfea8f94d369afc8f3fa60e7d5e6a41b50c5","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except (exc.MultipleResultsFound, exc.NoResultFound):"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_691fbf08","line":95,"updated":"2014-08-20 21:35:18.000000000","message":"delegate string formatting:\n\n  LOG.debug(..., {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"cfa658a2f89ef2d05f51fe2a73272cadfd7af477","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except (exc.MultipleResultsFound, exc.NoResultFound):"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_ef0bcf8b","line":95,"in_reply_to":"1abeadc6_691fbf08","updated":"2014-08-20 22:45:10.000000000","message":"ditto","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"525cdfea8f94d369afc8f3fa60e7d5e6a41b50c5","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_494da33d","line":98,"updated":"2014-08-20 21:35:18.000000000","message":"prefer _LW over _\n\ndelegate string formatting","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"cfa658a2f89ef2d05f51fe2a73272cadfd7af477","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_0ffd6b6e","line":98,"in_reply_to":"1abeadc6_494da33d","updated":"2014-08-20 22:45:10.000000000","message":"ditto","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"fd31d52ba8b338640d045be10fd020bd9951a8d0","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        except exc.NoResultFound:"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_430d7736","line":96,"updated":"2014-08-21 05:33:16.000000000","message":"nit: could use an elif and remove the return but w/e","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        except exc.NoResultFound:"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_3a388cee","line":96,"in_reply_to":"1abeadc6_430d7736","updated":"2014-08-21 14:04:26.000000000","message":"there\u0027s no such thing for try except, I could do try - except - else - if. Is that what you\u0027re suggesting? Not sure it\u0027s gonna get any more compact.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"2707b4b4aec50cfdba4d32ccbfba4bc4c008dc67","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_39823a00","line":99,"updated":"2014-08-22 09:15:14.000000000","message":"I know you have just copied this code.\nHowever, this is called get_active_agent_on_host and returns an agent even if it is not active.\n\nmeh.","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_c9924e4b","line":99,"in_reply_to":"1abeadc6_39823a00","updated":"2014-08-22 14:29:14.000000000","message":"active as in admin_enabled, I\u0027ll tweak the name of the method","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"581822c406b17ed39ff6ed10a884698405b23e7a","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except exc.NoResultFound:"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_08edf3ef","line":95,"updated":"2014-08-25 06:38:39.000000000","message":"Use \",\" instead of \"%\".","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"9b769897cb2459de9167c2a0006df5998fb9d419","unresolved":false,"context_lines":[{"line_number":92,"context_line":"            agent \u003d query.one()"},{"line_number":93,"context_line":"        except exc.NoResultFound:"},{"line_number":94,"context_line":"            LOG.debug(\u0027No enabled %(agent_type)s agent on host \u0027"},{"line_number":95,"context_line":"                      \u0027%(host)s\u0027 % {\u0027agent_type\u0027: agent_type, \u0027host\u0027: host})"},{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_0e1fac0a","line":95,"in_reply_to":"1abeadc6_08edf3ef","updated":"2014-08-25 14:49:05.000000000","message":"Not sure why we\u0027d want to do that in this patch, this being a refactoring","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"581822c406b17ed39ff6ed10a884698405b23e7a","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_28b9cfec","line":99,"updated":"2014-08-25 06:38:39.000000000","message":"ditto","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"7f4041cf62bd8e64cc04992a77d325ae95e6aabc","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_9aff6daa","line":99,"in_reply_to":"1abeadc6_17f898e4","updated":"2014-08-25 18:16:51.000000000","message":"a follow up patch will sort that out.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"9b769897cb2459de9167c2a0006df5998fb9d419","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_2e1c6813","line":99,"in_reply_to":"1abeadc6_28b9cfec","updated":"2014-08-25 14:49:05.000000000","message":"here too","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"614e542e3ee8511ab15cda08970818a505acd181","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_f8f6ae8f","line":99,"in_reply_to":"1abeadc6_2e1c6813","updated":"2014-08-25 17:05:50.000000000","message":"Yeah we should be using \u0027,\u0027 here so that formatting is delayed until the i18n framework is invoked.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"fa4f212175cbec638781cabba6f8cb85c4489842","unresolved":false,"context_lines":[{"line_number":96,"context_line":"            return"},{"line_number":97,"context_line":"        if self.is_agent_down(agent.heartbeat_timestamp):"},{"line_number":98,"context_line":"            LOG.warn(_(\u0027%(agent_type)s agent %(agent_id)s is not active\u0027)"},{"line_number":99,"context_line":"                     % {\u0027agent_type\u0027: agent_type, \u0027agent_id\u0027: agent.id})"},{"line_number":100,"context_line":"        return agent"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    @classmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_17f898e4","line":99,"in_reply_to":"1abeadc6_f8f6ae8f","updated":"2014-08-25 17:43:46.000000000","message":"if you guys feel strongly about this pre-existing issue, I am happy to change it, but the fact you didn\u0027t -1 one this makes me think you don\u0027t?","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"}],"neutron/scheduler/l3_agent_scheduler.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2a0de33928ce9baab766deec73fe38b484b02ed5","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":54,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_bb72fd0e","line":53,"updated":"2014-08-20 20:46:29.000000000","message":"If you wanted to, you could go a little further even and create two methods because there really are two independent operations here.  Something like this but you\u0027d have to work on the names:\n\n1.  get_all_unhosted_routers(...)\n2.  get_unhosted_routers_from_list(..., router_ids)","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"4d836d94958b8adf20d9d0014bf45eb324553f97","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":54,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_1efd9f6e","line":53,"in_reply_to":"1abeadc6_bb72fd0e","updated":"2014-08-20 21:12:24.000000000","message":"um...interesting...I\u0027ll mull over this a bit...I was not happy with my attempt and you may have given me a few ideas.","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2a0de33928ce9baab766deec73fe38b484b02ed5","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        If router_ids is given, each router in router_ids is scheduled"},{"line_number":102,"context_line":"        if it is not scheduled yet. Otherwise all unscheduled routers"},{"line_number":103,"context_line":"        are scheduled."},{"line_number":104,"context_line":"        Do not schedule the routers which are hosted already"},{"line_number":105,"context_line":"        by active l3 agents."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        :returns: True if routers have been successfully assigned to host"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_7b94e542","line":104,"updated":"2014-08-20 20:46:29.000000000","message":"What do you have against contractions?  :P","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"6e3ff3522edcad9cfcc65a1752d7e7b797c32dda","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        If router_ids is given, each router in router_ids is scheduled"},{"line_number":102,"context_line":"        if it is not scheduled yet. Otherwise all unscheduled routers"},{"line_number":103,"context_line":"        are scheduled."},{"line_number":104,"context_line":"        Do not schedule the routers which are hosted already"},{"line_number":105,"context_line":"        by active l3 agents."},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"        :returns: True if routers have been successfully assigned to host"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_3e241bae","line":104,"in_reply_to":"1abeadc6_7b94e542","updated":"2014-08-20 20:54:36.000000000","message":"Well...they are used verbally or in informal writing. A docstring is a big deal to me :)","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"db531743c5ab90506f37201481cd6a85af53b1cd","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def filter_unscheduled_routers(self, context, plugin, routers):"},{"line_number":54,"context_line":"        \"\"\"Filter from list of routers the ones that are not scheduled.\"\"\""},{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_b0f765d2","line":53,"updated":"2014-08-21 11:02:33.000000000","message":"because of DVR, we should perhaps use to_schedule_routers instead of unscheduled_routers?","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"0f0bef614c017da1c778dc49b7c2a08d95930622","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def filter_unscheduled_routers(self, context, plugin, routers):"},{"line_number":54,"context_line":"        \"\"\"Filter from list of routers the ones that are not scheduled.\"\"\""},{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_6d65eb1c","line":53,"in_reply_to":"1abeadc6_22f7828c","updated":"2014-08-21 16:20:04.000000000","message":"ok, probably  you and Aaron are probably saying the same thing. Let me see if I can get to the bottom of the issue. Thanks","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f91d254dc374df3f81cae66ca1641b74bc39a226","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def filter_unscheduled_routers(self, context, plugin, routers):"},{"line_number":54,"context_line":"        \"\"\"Filter from list of routers the ones that are not scheduled.\"\"\""},{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_284cc1c7","line":53,"in_reply_to":"1abeadc6_6d65eb1c","updated":"2014-08-21 16:42:49.000000000","message":"@Cedric, and @Aaron, if my thinking is correct, we\u0027re erroneously counting dvr routers in line 59; which means you were onto something :)\n\nIf that\u0027s okay with you, I\u0027d keep this here, with the same naming (as this is a straight refactoring patch), and deal with this in:\n\nhttps://review.openstack.org/#/c/115754/\n\nAs this is where the clean-up is happening.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def filter_unscheduled_routers(self, context, plugin, routers):"},{"line_number":54,"context_line":"        \"\"\"Filter from list of routers the ones that are not scheduled.\"\"\""},{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_da03180e","line":53,"in_reply_to":"1abeadc6_b0f765d2","updated":"2014-08-21 14:04:26.000000000","message":"I am not sure I follow 100%, can you elaborate?","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"24035fdf26f2daa02411ba8917d0be02b60e58fb","unresolved":false,"context_lines":[{"line_number":50,"context_line":""},{"line_number":51,"context_line":"        return query.count() \u003e 0"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def filter_unscheduled_routers(self, context, plugin, routers):"},{"line_number":54,"context_line":"        \"\"\"Filter from list of routers the ones that are not scheduled.\"\"\""},{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_22f7828c","line":53,"in_reply_to":"1abeadc6_da03180e","updated":"2014-08-21 15:49:42.000000000","message":"iiuc, filter_unscheduled_routers returns:\n\n* non-DVR unscheduled routers\n* DVR routers (which could be already allocated to 1+ agent)\n\nThat\u0027s why the method name seems unclear because it returns routers to schedule not just unscheduled routers.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"fd31d52ba8b338640d045be10fd020bd9951a8d0","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                           \u0027hosted by L3 agent %(agent_id)s\u0027),"},{"line_number":62,"context_line":"                          {\u0027router_id\u0027: router[\u0027id\u0027],"},{"line_number":63,"context_line":"                           \u0027agent_id\u0027: l3_agents[0][\u0027id\u0027]})"},{"line_number":64,"context_line":"            else:"},{"line_number":65,"context_line":"                unscheduled_routers.append(router)"},{"line_number":66,"context_line":"        return unscheduled_routers"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_e384c35f","line":64,"updated":"2014-08-21 05:33:16.000000000","message":"should this be: elif not router.get(\u0027distributed_state_up, False)?","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                           \u0027hosted by L3 agent %(agent_id)s\u0027),"},{"line_number":62,"context_line":"                          {\u0027router_id\u0027: router[\u0027id\u0027],"},{"line_number":63,"context_line":"                           \u0027agent_id\u0027: l3_agents[0][\u0027id\u0027]})"},{"line_number":64,"context_line":"            else:"},{"line_number":65,"context_line":"                unscheduled_routers.append(router)"},{"line_number":66,"context_line":"        return unscheduled_routers"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_d51a0b6e","line":64,"in_reply_to":"1abeadc6_e384c35f","updated":"2014-08-21 14:04:26.000000000","message":"um...let me think..","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"fd31d52ba8b338640d045be10fd020bd9951a8d0","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        return []"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":82,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        :param context: the context"},{"line_number":85,"context_line":"        :param plugin: the core plugin"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_43ce57b5","line":82,"updated":"2014-08-21 05:33:16.000000000","message":"I think this could be improved if we combined get_routers_to_schedule and get unscheduled_routers I don\u0027t see why we need both of them.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        return []"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":82,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        :param context: the context"},{"line_number":85,"context_line":"        :param plugin: the core plugin"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_f52e278b","line":82,"in_reply_to":"1abeadc6_43ce57b5","updated":"2014-08-21 14:04:26.000000000","message":"If I did that I would be back where I started.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"fd31d52ba8b338640d045be10fd020bd9951a8d0","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":97,"context_line":"        to_removed_ids \u003d set()"},{"line_number":98,"context_line":"        for router in routers:"},{"line_number":99,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":100,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":101,"context_line":"                context, router, [l3_agent])"},{"line_number":102,"context_line":"            if not candidates:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_834a2f24","line":99,"updated":"2014-08-21 05:33:16.000000000","message":"would be nice if this could be done without making N number of calls to the db per router.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"57dfa759e9ce30d4874f73db8d3fc48255b6aafb","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":97,"context_line":"        to_removed_ids \u003d set()"},{"line_number":98,"context_line":"        for router in routers:"},{"line_number":99,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":100,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":101,"context_line":"                context, router, [l3_agent])"},{"line_number":102,"context_line":"            if not candidates:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_956973c0","line":99,"in_reply_to":"1abeadc6_834a2f24","updated":"2014-08-21 14:04:26.000000000","message":"Agreed, let me see if I can improve this.","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f91d254dc374df3f81cae66ca1641b74bc39a226","unresolved":false,"context_lines":[{"line_number":96,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":97,"context_line":"        to_removed_ids \u003d set()"},{"line_number":98,"context_line":"        for router in routers:"},{"line_number":99,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":100,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":101,"context_line":"                context, router, [l3_agent])"},{"line_number":102,"context_line":"            if not candidates:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1abeadc6_e8b1e98f","line":99,"in_reply_to":"1abeadc6_956973c0","updated":"2014-08-21 16:42:49.000000000","message":"it looks like this is trickier than I initially anticipated, as we would don\u0027t actually have any query capability that we could already leverage, something for another day...","commit_id":"b29c54314ebf2ca41f08c0c412d87f04a3c6421d"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"2707b4b4aec50cfdba4d32ccbfba4bc4c008dc67","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"},{"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"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_9938aed4","line":58,"updated":"2014-08-22 09:15:14.000000000","message":"frankly the method you\u0027re calling here maybe needs to be reconsidered as it seems far from efficient.\n\nBut I don\u0027t think this falls within the scope of this patch.","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        unscheduled_routers \u003d []"},{"line_number":56,"context_line":"        for router in routers:"},{"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"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_0999a66d","line":58,"in_reply_to":"1abeadc6_9938aed4","updated":"2014-08-22 14:29:14.000000000","message":"this is far out of the scope of the patch IMO","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"2707b4b4aec50cfdba4d32ccbfba4bc4c008dc67","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"},{"line_number":88,"context_line":"        :returns: the list of routers to be scheduled"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        if router_ids:"},{"line_number":91,"context_line":"            routers \u003d plugin.get_routers(context, filters\u003d{\u0027id\u0027: router_ids})"},{"line_number":92,"context_line":"            return self.filter_unscheduled_routers(context, plugin, routers)"},{"line_number":93,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_d9eb06da","line":90,"updated":"2014-08-22 09:15:14.000000000","message":"maybe I would go for if router_ids is None here.\n\nReason is that it is a possible case that auto_schedule_routers is called with an empty list. This might be an error anyway, but with the current code it will trigger automatic scheduling for results of get_unscheduled_routers which is probably not the caller\u0027s intention","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"},{"line_number":88,"context_line":"        :returns: the list of routers to be scheduled"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        if router_ids:"},{"line_number":91,"context_line":"            routers \u003d plugin.get_routers(context, filters\u003d{\u0027id\u0027: router_ids})"},{"line_number":92,"context_line":"            return self.filter_unscheduled_routers(context, plugin, routers)"},{"line_number":93,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_89c3f636","line":90,"in_reply_to":"1abeadc6_d9eb06da","updated":"2014-08-22 14:29:14.000000000","message":"You mean *not* None? It looks like router_ids is never called with an empty list. I will double check, in which case, I\u0027ll take care of this.","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0229d6b9d97238e36dd7995ffa57628d41cf8b54","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def get_routers_can_schedule(self, context, plugin, routers, l3_agent):"},{"line_number":97,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":98,"context_line":"        to_removed_ids \u003d set()"},{"line_number":99,"context_line":"        for router in routers:"},{"line_number":100,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_1d42c9ad","line":98,"updated":"2014-08-22 09:47:08.000000000","message":"+1","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"2707b4b4aec50cfdba4d32ccbfba4bc4c008dc67","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def get_routers_can_schedule(self, context, plugin, routers, l3_agent):"},{"line_number":97,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":98,"context_line":"        to_removed_ids \u003d set()"},{"line_number":99,"context_line":"        for router in routers:"},{"line_number":100,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_b9ac8a8d","line":98,"updated":"2014-08-22 09:15:14.000000000","message":"while you\u0027re shuffling code around you might rename this variable to \"ids_to_discard\" or anything that makes sense.","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def get_routers_can_schedule(self, context, plugin, routers, l3_agent):"},{"line_number":97,"context_line":"        \"\"\"Get the subset of routers that can be scheduled on the L3 agent.\"\"\""},{"line_number":98,"context_line":"        to_removed_ids \u003d set()"},{"line_number":99,"context_line":"        for router in routers:"},{"line_number":100,"context_line":"            # check if the l3 agent is compatible with the router"},{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_4942beae","line":98,"in_reply_to":"1abeadc6_1d42c9ad","updated":"2014-08-22 14:29:14.000000000","message":"Done","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"2707b4b4aec50cfdba4d32ccbfba4bc4c008dc67","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":102,"context_line":"                context, router, [l3_agent])"},{"line_number":103,"context_line":"            if not candidates:"},{"line_number":104,"context_line":"                to_removed_ids.add(router[\u0027id\u0027])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        return [r for r in routers if r[\u0027id\u0027] not in to_removed_ids]"},{"line_number":107,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_79fbd278","line":104,"updated":"2014-08-22 09:15:14.000000000","message":"To me the code would be more readable if we keep adding routers for which there are candidates to a new list are return that.\n\nBut again, I know this is just code you\u0027ve copied.","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":102,"context_line":"                context, router, [l3_agent])"},{"line_number":103,"context_line":"            if not candidates:"},{"line_number":104,"context_line":"                to_removed_ids.add(router[\u0027id\u0027])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        return [r for r in routers if r[\u0027id\u0027] not in to_removed_ids]"},{"line_number":107,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_c915ee9c","line":104,"in_reply_to":"1abeadc6_79fbd278","updated":"2014-08-22 14:29:14.000000000","message":"indeed","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"23f0e569b2378c63284fb396c644bcf4e0583143","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        :returns: True if routers have been successfully assigned to host"},{"line_number":118,"context_line":"        \"\"\""},{"line_number":119,"context_line":"        with context.session.begin(subtransactions\u003dTrue):"},{"line_number":120,"context_line":"            l3_agent \u003d plugin.get_active_agent_on_host("},{"line_number":121,"context_line":"                context, constants.AGENT_TYPE_L3, host)"},{"line_number":122,"context_line":"            if not l3_agent:"},{"line_number":123,"context_line":"                return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"1abeadc6_3a44de48","line":120,"updated":"2014-08-22 15:09:47.000000000","message":"doh!","commit_id":"22dbde855d05e879e4c1e54916b41d72b7bd659b"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"22f1a541085bfa1493e311f7d5adfd47c0e3b219","unresolved":false,"context_lines":[{"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],"},{"line_number":64,"context_line":"                           \u0027agent_id\u0027: l3_agents[0][\u0027id\u0027]})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_f1743fd0","line":61,"updated":"2014-08-23 00:47:46.000000000","message":"Nit: don\u0027t need inner parens.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"89e9efa55c80eaeb1e8014981cf3b5e2c4558b52","unresolved":false,"context_lines":[{"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],"},{"line_number":64,"context_line":"                           \u0027agent_id\u0027: l3_agents[0][\u0027id\u0027]})"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_07d97df2","line":61,"in_reply_to":"1abeadc6_f1743fd0","updated":"2014-08-23 02:53:44.000000000","message":"darn those were already there...:(","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"26f7d6a76249260e54c2e468287d3850ab70c6a6","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                context, filters\u003d{\u0027id\u0027: unscheduled_router_ids})"},{"line_number":80,"context_line":"        return []"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":83,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        :param context: the context"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_1ba9da23","line":82,"updated":"2014-08-22 23:07:57.000000000","message":"This could be inlined.  It seems like a level or indirection just for indirection\u0027s sake at this point.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"89e9efa55c80eaeb1e8014981cf3b5e2c4558b52","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                context, filters\u003d{\u0027id\u0027: unscheduled_router_ids})"},{"line_number":80,"context_line":"        return []"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def get_routers_to_schedule(self, context, plugin, router_ids\u003dNone):"},{"line_number":83,"context_line":"        \"\"\"Verify that the routers specified need to be scheduled."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        :param context: the context"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_e704814b","line":82,"in_reply_to":"1abeadc6_1ba9da23","updated":"2014-08-23 02:53:44.000000000","message":"the reasons why I left it here is that the original logic is already a bit convoluted and here on its own kind of make sense; also inlining would result into one if too many in my opinion; thirdly, testing this unit is a lot easier than trying to cover all the paths in the caller method.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"26f7d6a76249260e54c2e468287d3850ab70c6a6","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"},{"line_number":88,"context_line":"        :returns: the list of routers to be scheduled"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        if router_ids is not None:"},{"line_number":91,"context_line":"            routers \u003d plugin.get_routers(context, filters\u003d{\u0027id\u0027: router_ids})"},{"line_number":92,"context_line":"            return self.filter_unscheduled_routers(context, plugin, routers)"},{"line_number":93,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_9bb5ea7f","line":90,"updated":"2014-08-22 23:07:57.000000000","message":"This isn\u0027t quite the behavior of the original.  I see Salvatore\u0027s comment on PS7 and I agree that None !\u003d [] and they shouldn\u0027t be treated as equivalent in this context.  I looked at the calling contexts for this method and it appears that no one will pass [] wanting the L94 behavior.  So, I think this is okay.  Keep it as it is.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"89e9efa55c80eaeb1e8014981cf3b5e2c4558b52","unresolved":false,"context_lines":[{"line_number":87,"context_line":"        :param router_ids: the list of routers to be checked for scheduling"},{"line_number":88,"context_line":"        :returns: the list of routers to be scheduled"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        if router_ids is not None:"},{"line_number":91,"context_line":"            routers \u003d plugin.get_routers(context, filters\u003d{\u0027id\u0027: router_ids})"},{"line_number":92,"context_line":"            return self.filter_unscheduled_routers(context, plugin, routers)"},{"line_number":93,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_07009d32","line":90,"in_reply_to":"1abeadc6_9bb5ea7f","updated":"2014-08-23 02:53:44.000000000","message":"indeed","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"581822c406b17ed39ff6ed10a884698405b23e7a","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":102,"context_line":"                context, router, [l3_agent])"},{"line_number":103,"context_line":"            if not candidates:"},{"line_number":104,"context_line":"                ids_to_discard.add(router[\u0027id\u0027])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        return [r for r in routers if r[\u0027id\u0027] not in ids_to_discard]"},{"line_number":107,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_fc4cf8ca","line":104,"updated":"2014-08-25 06:38:39.000000000","message":"I second to Salvatore\u0027s comment on PS7.\n\nChange the code to something like:\n\n    if candidates:\n        ret.append(router)\n\nand ditch the whole ids_to_discard thing.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"7f4041cf62bd8e64cc04992a77d325ae95e6aabc","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":102,"context_line":"                context, router, [l3_agent])"},{"line_number":103,"context_line":"            if not candidates:"},{"line_number":104,"context_line":"                ids_to_discard.add(router[\u0027id\u0027])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        return [r for r in routers if r[\u0027id\u0027] not in ids_to_discard]"},{"line_number":107,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_3ae65917","line":104,"in_reply_to":"1abeadc6_eeafd092","updated":"2014-08-25 18:16:51.000000000","message":"I know you like ricotta cheese don\u0027t you?","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"9b769897cb2459de9167c2a0006df5998fb9d419","unresolved":false,"context_lines":[{"line_number":101,"context_line":"            candidates \u003d plugin.get_l3_agent_candidates("},{"line_number":102,"context_line":"                context, router, [l3_agent])"},{"line_number":103,"context_line":"            if not candidates:"},{"line_number":104,"context_line":"                ids_to_discard.add(router[\u0027id\u0027])"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        return [r for r in routers if r[\u0027id\u0027] not in ids_to_discard]"},{"line_number":107,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"1abeadc6_eeafd092","line":104,"in_reply_to":"1abeadc6_fc4cf8ca","updated":"2014-08-25 14:49:05.000000000","message":"understood, but I have done so many refactoring here that this seems a bit too far.","commit_id":"2fc7fd6eb1b7e728b45e6a202cd9011dbb920950"}],"neutron/tests/unit/db/test_agent_db.py":[{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0229d6b9d97238e36dd7995ffa57628d41cf8b54","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            agent \u003d self.plugin.get_active_agent_on_host("},{"line_number":70,"context_line":"                self.context, constants.AGENT_TYPE_L3, \u0027foo_agent\u0027)"},{"line_number":71,"context_line":"        self.assertIsNone(agent)"},{"line_number":72,"context_line":"        self.assertTrue(mock_log.call_count)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    def _assert_ref_fields_are_equal(self, reference, result):"},{"line_number":75,"context_line":"        \"\"\"Compare (key, value) pairs of a reference dict with the result"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_1d29e9e5","line":72,"updated":"2014-08-22 09:47:08.000000000","message":"nit: call_count -\u003e called","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":69,"context_line":"            agent \u003d self.plugin.get_active_agent_on_host("},{"line_number":70,"context_line":"                self.context, constants.AGENT_TYPE_L3, \u0027foo_agent\u0027)"},{"line_number":71,"context_line":"        self.assertIsNone(agent)"},{"line_number":72,"context_line":"        self.assertTrue(mock_log.call_count)"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    def _assert_ref_fields_are_equal(self, reference, result):"},{"line_number":75,"context_line":"        \"\"\"Compare (key, value) pairs of a reference dict with the result"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_090c4693","line":72,"in_reply_to":"1abeadc6_1d29e9e5","updated":"2014-08-22 14:29:14.000000000","message":"Done","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"}],"neutron/tests/unit/test_l3_schedulers.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"2a0de33928ce9baab766deec73fe38b484b02ed5","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        pass"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"class L3SchedulerBaseTestCase(base.BaseTestCase):"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def setUp(self):"},{"line_number":99,"context_line":"        super(L3SchedulerBaseTestCase, self).setUp()"}],"source_content_type":"text/x-python","patch_set":3,"id":"1abeadc6_5b048949","line":96,"updated":"2014-08-20 20:46:29.000000000","message":"What, unit tests?!  This is a great idea!","commit_id":"c0447ff429a76baa882df0fde698f00a8184d66e"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0229d6b9d97238e36dd7995ffa57628d41cf8b54","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            result \u003d self.scheduler.auto_schedule_routers("},{"line_number":110,"context_line":"                self.plugin, mock.ANY, mock.ANY, mock.ANY)"},{"line_number":111,"context_line":"        self.assertTrue(result)"},{"line_number":112,"context_line":"        self.assertTrue(gs.call_count)"},{"line_number":113,"context_line":"        self.assertTrue(gr.call_count)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def test_auto_schedule_routers_no_agents(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_1d572959","line":112,"updated":"2014-08-22 09:47:08.000000000","message":"ditto","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":109,"context_line":"            result \u003d self.scheduler.auto_schedule_routers("},{"line_number":110,"context_line":"                self.plugin, mock.ANY, mock.ANY, mock.ANY)"},{"line_number":111,"context_line":"        self.assertTrue(result)"},{"line_number":112,"context_line":"        self.assertTrue(gs.call_count)"},{"line_number":113,"context_line":"        self.assertTrue(gr.call_count)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def test_auto_schedule_routers_no_agents(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_290f4289","line":112,"in_reply_to":"1abeadc6_1d572959","updated":"2014-08-22 14:29:14.000000000","message":"Done","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0229d6b9d97238e36dd7995ffa57628d41cf8b54","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                self.plugin, mock.ANY, mock.ANY, mock.ANY)"},{"line_number":111,"context_line":"        self.assertTrue(result)"},{"line_number":112,"context_line":"        self.assertTrue(gs.call_count)"},{"line_number":113,"context_line":"        self.assertTrue(gr.call_count)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def test_auto_schedule_routers_no_agents(self):"},{"line_number":116,"context_line":"        self.plugin.get_active_agent_on_host.return_value \u003d None"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_5d4d21c3","line":113,"updated":"2014-08-22 09:47:08.000000000","message":"ditto","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                self.plugin, mock.ANY, mock.ANY, mock.ANY)"},{"line_number":111,"context_line":"        self.assertTrue(result)"},{"line_number":112,"context_line":"        self.assertTrue(gs.call_count)"},{"line_number":113,"context_line":"        self.assertTrue(gr.call_count)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    def test_auto_schedule_routers_no_agents(self):"},{"line_number":116,"context_line":"        self.plugin.get_active_agent_on_host.return_value \u003d None"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_4929dee4","line":113,"in_reply_to":"1abeadc6_5d4d21c3","updated":"2014-08-22 14:29:14.000000000","message":"Done","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":12737,"name":"Jacek Swiderski","email":"jacek.swiderski@codilime.com","username":"Altran"},"change_message_id":"0229d6b9d97238e36dd7995ffa57628d41cf8b54","unresolved":false,"context_lines":[{"line_number":208,"context_line":"            with mock.patch.object(self.scheduler, \u0027bind_router\u0027) as mock_bind:"},{"line_number":209,"context_line":"                self.scheduler.bind_routers(mock.ANY, routers, agent)"},{"line_number":210,"context_line":"        mock_dvr.assert_called_once_with(mock.ANY, \u0027foo_router\u0027, \u0027foo_agent\u0027)"},{"line_number":211,"context_line":"        self.assertFalse(mock_bind.call_count)"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"class L3SchedulerTestExtensionManager(object):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_5de441ab","line":211,"updated":"2014-08-22 09:47:08.000000000","message":"ditto","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"c985078086796e3877af8db936e121a338496843","unresolved":false,"context_lines":[{"line_number":208,"context_line":"            with mock.patch.object(self.scheduler, \u0027bind_router\u0027) as mock_bind:"},{"line_number":209,"context_line":"                self.scheduler.bind_routers(mock.ANY, routers, agent)"},{"line_number":210,"context_line":"        mock_dvr.assert_called_once_with(mock.ANY, \u0027foo_router\u0027, \u0027foo_agent\u0027)"},{"line_number":211,"context_line":"        self.assertFalse(mock_bind.call_count)"},{"line_number":212,"context_line":""},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"class L3SchedulerTestExtensionManager(object):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1abeadc6_891f76b6","line":211,"in_reply_to":"1abeadc6_5de441ab","updated":"2014-08-22 14:29:14.000000000","message":"Done","commit_id":"e8b2a429272bf592b8136bd4ed20d755e47d951e"}]}
