)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":10,"context_line":"table, this patch replaces the neutron plugin agent api methods,"},{"line_number":11,"context_line":"being sure to maintain support for multiple drivers."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Depends-On: I3df021e843b085cd9b579c32972f603dd5eff0dd"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I43e8b0a7914e3626dd848b04fdfc54fb0351bae6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f7c97a3_21a345b2","line":13,"updated":"2018-07-18 11:59:42.000000000","message":"Depends-On is only for dependencies across different projects. \n\nWe can remove it now since that patch is merged anyway.","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"19b7214e5dd6412abe0532f64bffcec0f18ed549","unresolved":false,"context_lines":[{"line_number":10,"context_line":"table, this patch replaces the neutron plugin agent api methods,"},{"line_number":11,"context_line":"being sure to maintain support for multiple drivers."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Depends-On: I3df021e843b085cd9b579c32972f603dd5eff0dd"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I43e8b0a7914e3626dd848b04fdfc54fb0351bae6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f7c97a3_975b7b21","line":13,"in_reply_to":"5f7c97a3_21a345b2","updated":"2018-07-18 12:29:57.000000000","message":"Yeah, I saw it, but I thought it was harmless, I should have commented at least :)","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Depends-On: I3df021e843b085cd9b579c32972f603dd5eff0dd"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I43e8b0a7914e3626dd848b04fdfc54fb0351bae6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f7c97a3_41a8c189","line":15,"updated":"2018-07-18 11:59:42.000000000","message":"Partial-Bug: #1719574","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"19b7214e5dd6412abe0532f64bffcec0f18ed549","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Depends-On: I3df021e843b085cd9b579c32972f603dd5eff0dd"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: I43e8b0a7914e3626dd848b04fdfc54fb0351bae6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"5f7c97a3_5797239d","line":15,"in_reply_to":"5f7c97a3_41a8c189","updated":"2018-07-18 12:29:57.000000000","message":"Right!","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"}],"networking_ovn/ml2/mech_driver.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                            port_id)"},{"line_number":821,"context_line":""},{"line_number":822,"context_line":"    def agent_from_chassis(self, chassis):"},{"line_number":823,"context_line":"        agent_type \u003d \u0027OVN Controller agent\u0027"},{"line_number":824,"context_line":"        if (\u0027enable-chassis-as-gw\u0027 in"},{"line_number":825,"context_line":"                chassis.external_ids.get(\u0027ovn-cms-options\u0027, [])):"},{"line_number":826,"context_line":"            agent_type \u003d \u0027OVN Controller Gateway agent\u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_c1937158","line":823,"range":{"start_line":823,"start_character":8,"end_line":823,"end_character":43},"updated":"2018-07-18 11:59:42.000000000","message":"nit: Let\u0027s add this as a constant in the constants.py module","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"06e342c89c6afd5a760e2f6c271cf61a2cd1424d","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                            port_id)"},{"line_number":821,"context_line":""},{"line_number":822,"context_line":"    def agent_from_chassis(self, chassis):"},{"line_number":823,"context_line":"        agent_type \u003d \u0027OVN Controller agent\u0027"},{"line_number":824,"context_line":"        if (\u0027enable-chassis-as-gw\u0027 in"},{"line_number":825,"context_line":"                chassis.external_ids.get(\u0027ovn-cms-options\u0027, [])):"},{"line_number":826,"context_line":"            agent_type \u003d \u0027OVN Controller Gateway agent\u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_17944a40","line":823,"range":{"start_line":823,"start_character":8,"end_line":823,"end_character":43},"in_reply_to":"5f7c97a3_3743876d","updated":"2018-07-18 13:17:21.000000000","message":"You would probably use it on tests. We need to add some functional or unit tests for this code.\n\nThat would be handy there, cause if we ever decide to change the name you only need to do it in one place.","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"faba3a035d49ad064d739f7114c6387ef0c23606","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                            port_id)"},{"line_number":821,"context_line":""},{"line_number":822,"context_line":"    def agent_from_chassis(self, chassis):"},{"line_number":823,"context_line":"        agent_type \u003d \u0027OVN Controller agent\u0027"},{"line_number":824,"context_line":"        if (\u0027enable-chassis-as-gw\u0027 in"},{"line_number":825,"context_line":"                chassis.external_ids.get(\u0027ovn-cms-options\u0027, [])):"},{"line_number":826,"context_line":"            agent_type \u003d \u0027OVN Controller Gateway agent\u0027"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_3743876d","line":823,"range":{"start_line":823,"start_character":8,"end_line":823,"end_character":43},"in_reply_to":"5f7c97a3_c1937158","updated":"2018-07-18 13:05:08.000000000","message":"I thought about it and decided not to because I couldn\u0027t think of anywhere else in the code we would ever use the constant. I\u0027ll go ahead and add it.","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":823,"context_line":"        agent_type \u003d \u0027OVN Controller agent\u0027"},{"line_number":824,"context_line":"        if (\u0027enable-chassis-as-gw\u0027 in"},{"line_number":825,"context_line":"                chassis.external_ids.get(\u0027ovn-cms-options\u0027, [])):"},{"line_number":826,"context_line":"            agent_type \u003d \u0027OVN Controller Gateway agent\u0027"},{"line_number":827,"context_line":"        alive \u003d self._nb_ovn.nb_global.nb_cfg \u003d\u003d chassis.nb_cfg"},{"line_number":828,"context_line":"        return {"},{"line_number":829,"context_line":"            \u0027binary\u0027: \"ovn-controller\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_818b391c","line":826,"range":{"start_line":826,"start_character":12,"end_line":826,"end_character":55},"updated":"2018-07-18 11:59:42.000000000","message":"ditto as constant","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        return {"},{"line_number":829,"context_line":"            \u0027binary\u0027: \"ovn-controller\","},{"line_number":830,"context_line":"            \u0027host\u0027: chassis.hostname,"},{"line_number":831,"context_line":"            \u0027heartbeat_timestamp\u0027: datetime.datetime.now(),"},{"line_number":832,"context_line":"            \u0027availability_zone\u0027: \u0027n/a\u0027,"},{"line_number":833,"context_line":"            \u0027topic\u0027: \u0027n/a\u0027,"},{"line_number":834,"context_line":"            \u0027description\u0027:"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_e1c78d45","line":831,"range":{"start_line":831,"start_character":35,"end_line":831,"end_character":58},"updated":"2018-07-18 11:59:42.000000000","message":"I wonder if this needs to be utcnow(), cause I took a quick peek at neutron\u0027s code and they seem to be using timeutils.utcnow()","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"19b7214e5dd6412abe0532f64bffcec0f18ed549","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        return {"},{"line_number":829,"context_line":"            \u0027binary\u0027: \"ovn-controller\","},{"line_number":830,"context_line":"            \u0027host\u0027: chassis.hostname,"},{"line_number":831,"context_line":"            \u0027heartbeat_timestamp\u0027: datetime.datetime.now(),"},{"line_number":832,"context_line":"            \u0027availability_zone\u0027: \u0027n/a\u0027,"},{"line_number":833,"context_line":"            \u0027topic\u0027: \u0027n/a\u0027,"},{"line_number":834,"context_line":"            \u0027description\u0027:"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_77857f58","line":831,"range":{"start_line":831,"start_character":35,"end_line":831,"end_character":58},"in_reply_to":"5f7c97a3_e1c78d45","updated":"2018-07-18 12:29:57.000000000","message":"Oh, good catch.","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"faba3a035d49ad064d739f7114c6387ef0c23606","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        return {"},{"line_number":829,"context_line":"            \u0027binary\u0027: \"ovn-controller\","},{"line_number":830,"context_line":"            \u0027host\u0027: chassis.hostname,"},{"line_number":831,"context_line":"            \u0027heartbeat_timestamp\u0027: datetime.datetime.now(),"},{"line_number":832,"context_line":"            \u0027availability_zone\u0027: \u0027n/a\u0027,"},{"line_number":833,"context_line":"            \u0027topic\u0027: \u0027n/a\u0027,"},{"line_number":834,"context_line":"            \u0027description\u0027:"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_570c0238","line":831,"range":{"start_line":831,"start_character":35,"end_line":831,"end_character":58},"in_reply_to":"5f7c97a3_e1c78d45","updated":"2018-07-18 13:05:08.000000000","message":"Oops!","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e9a526635e1f3cf975d2e13db1068815609c631c","unresolved":false,"context_lines":[{"line_number":889,"context_line":"    # neutron-client always passes admin_state_up, openstack client doesn\u0027t"},{"line_number":890,"context_line":"    # and we can just fall through to raising in the case that admin_state_up"},{"line_number":891,"context_line":"    # is being set to False, otherwise the end-state will be fine"},{"line_number":892,"context_line":"    if not agent.get(\u0027admin_state_up\u0027, True):"},{"line_number":893,"context_line":"        pass"},{"line_number":894,"context_line":"    elif \u0027description\u0027 in agent:"},{"line_number":895,"context_line":"        _driver._sb_ovn.set_chassis_neutron_description("},{"line_number":896,"context_line":"            chassis.name, agent[\u0027description\u0027]).execute(check_error\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_5ccf488a","line":893,"range":{"start_line":892,"start_character":0,"end_line":893,"end_character":12},"updated":"2018-07-18 11:59:42.000000000","message":"Can be removed ? We can leave the comment but this conditional is not doing anything","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"faba3a035d49ad064d739f7114c6387ef0c23606","unresolved":false,"context_lines":[{"line_number":889,"context_line":"    # neutron-client always passes admin_state_up, openstack client doesn\u0027t"},{"line_number":890,"context_line":"    # and we can just fall through to raising in the case that admin_state_up"},{"line_number":891,"context_line":"    # is being set to False, otherwise the end-state will be fine"},{"line_number":892,"context_line":"    if not agent.get(\u0027admin_state_up\u0027, True):"},{"line_number":893,"context_line":"        pass"},{"line_number":894,"context_line":"    elif \u0027description\u0027 in agent:"},{"line_number":895,"context_line":"        _driver._sb_ovn.set_chassis_neutron_description("},{"line_number":896,"context_line":"            chassis.name, agent[\u0027description\u0027]).execute(check_error\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_b7a0f737","line":893,"range":{"start_line":892,"start_character":0,"end_line":893,"end_character":12},"in_reply_to":"5f7c97a3_5ccf488a","updated":"2018-07-18 13:05:08.000000000","message":"Can\u0027t be removed because we need to fail immediately to the raise if admin_state_up is False, but go into the elif/else if admin_state_up is True or unset.\n\nIf we removed it, then it would be if \u0027description\u0027 in agent: and we don\u0027t want to check the description if admin_state_up is passed as False.","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"06e342c89c6afd5a760e2f6c271cf61a2cd1424d","unresolved":false,"context_lines":[{"line_number":889,"context_line":"    # neutron-client always passes admin_state_up, openstack client doesn\u0027t"},{"line_number":890,"context_line":"    # and we can just fall through to raising in the case that admin_state_up"},{"line_number":891,"context_line":"    # is being set to False, otherwise the end-state will be fine"},{"line_number":892,"context_line":"    if not agent.get(\u0027admin_state_up\u0027, True):"},{"line_number":893,"context_line":"        pass"},{"line_number":894,"context_line":"    elif \u0027description\u0027 in agent:"},{"line_number":895,"context_line":"        _driver._sb_ovn.set_chassis_neutron_description("},{"line_number":896,"context_line":"            chassis.name, agent[\u0027description\u0027]).execute(check_error\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_d7bd72d7","line":893,"range":{"start_line":892,"start_character":0,"end_line":893,"end_character":12},"in_reply_to":"5f7c97a3_b7a0f737","updated":"2018-07-18 13:17:21.000000000","message":"Ah fair enough!","commit_id":"11a480cec9562e333eecb3f9f2005ec92735a2c6"}]}
