)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5e687ad2e12d4175628fbc451de27bc7bae34336","unresolved":false,"context_lines":[{"line_number":21,"context_line":"1. Release an ovsdbapp with the necessary changes so CI will pass"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Change-Id: I12260e60e40399f996d5f2ff4ddb7b65fdaebb95"},{"line_number":24,"context_line":"Depends-On: Ie6dc0b75fc7c5ae00afc03e274f293b69d897913"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"ff0f0b1f_5d467223","line":24,"updated":"2017-05-22 09:54:49.000000000","message":"We need to bump the version of ovsdbapp in the requirements.txt of this repository as well [0]. With this patch, any version below 0.4.0 will make the neutron service crash.","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"}],"networking_ovn/ovsdb/impl_idl_ovn.py":[{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        args \u003d (cfg.get_ovn_sb_connection(), \u0027OVN_Southbound\u0027)"},{"line_number":65,"context_line":"        cls \u003d ovsdb_monitor.OvnSbIdl"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    ovsdb_monitor._check_and_set_ssl_files(args[1])"},{"line_number":68,"context_line":"    if trigger and trigger.im_class \u003d\u003d ovsdb_monitor.OvnWorker:"},{"line_number":69,"context_line":"        _idl \u003d cls.from_server(*args, driver\u003ddriver)"},{"line_number":70,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_be6295d7","line":67,"updated":"2017-05-12 14:59:45.000000000","message":"TODO: I think I can remove this line as I updated from_server() everywhere to do this.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        cls \u003d ovsdb_monitor.OvnSbIdl"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    ovsdb_monitor._check_and_set_ssl_files(args[1])"},{"line_number":68,"context_line":"    if trigger and trigger.im_class \u003d\u003d ovsdb_monitor.OvnWorker:"},{"line_number":69,"context_line":"        _idl \u003d cls.from_server(*args, driver\u003ddriver)"},{"line_number":70,"context_line":"    else:"},{"line_number":71,"context_line":"        _idl \u003d ovsdb_monitor.BaseOvnIdl.from_server(*args)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_1ea989de","line":68,"updated":"2017-05-12 14:59:45.000000000","message":"Ultimately, I\u0027d prefer to limit the OvnWorker checks to mech_driver.py.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"ad6f65ed823a22e1e4ccc757b6061911329c655d","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    @tenacity.retry("},{"line_number":46,"context_line":"        wait\u003dtenacity.wait_exponential(max\u003d180),"},{"line_number":47,"context_line":"        reraise\u003dTrue)"},{"line_number":48,"context_line":"    def get_ovn_idl_retry(cls, conn):"},{"line_number":49,"context_line":"        LOG.info(\u0027Getting %(cls)s for %(trigger)s with retry\u0027,"},{"line_number":50,"context_line":"                 {\u0027cls\u0027: cls.__name__, \u0027trigger\u0027: trigger.im_class.__name__})"},{"line_number":51,"context_line":"        return cls(conn)"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_85dba519","line":48,"range":{"start_line":48,"start_character":4,"end_line":48,"end_character":37},"updated":"2017-05-20 07:36:21.000000000","message":"Logic here is different from original. get_connection is executed outside get_ovn_idl_retry that retry will not be triggered if get_connection raise an exception.","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"4ca7914ca7f5247b10cc2091d25c39445b0a54cf","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    @tenacity.retry("},{"line_number":46,"context_line":"        wait\u003dtenacity.wait_exponential(max\u003d180),"},{"line_number":47,"context_line":"        reraise\u003dTrue)"},{"line_number":48,"context_line":"    def get_ovn_idl_retry(cls, conn):"},{"line_number":49,"context_line":"        LOG.info(\u0027Getting %(cls)s for %(trigger)s with retry\u0027,"},{"line_number":50,"context_line":"                 {\u0027cls\u0027: cls.__name__, \u0027trigger\u0027: trigger.im_class.__name__})"},{"line_number":51,"context_line":"        return cls(conn)"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_0c1b2e81","line":48,"range":{"start_line":48,"start_character":4,"end_line":48,"end_character":37},"in_reply_to":"ff0f0b1f_85dba519","updated":"2017-05-22 08:55:01.000000000","message":"Agreed,\n\nI would just change L51 to:\n\nconn \u003d get_connection(cls, trigger, driver)\nreturn cls(conn)","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"5cbad3b15d285e8d0a41008efd7dbdd26ea1a99f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    @tenacity.retry("},{"line_number":46,"context_line":"        wait\u003dtenacity.wait_exponential(max\u003d180),"},{"line_number":47,"context_line":"        reraise\u003dTrue)"},{"line_number":48,"context_line":"    def get_ovn_idl_retry(cls, conn):"},{"line_number":49,"context_line":"        LOG.info(\u0027Getting %(cls)s for %(trigger)s with retry\u0027,"},{"line_number":50,"context_line":"                 {\u0027cls\u0027: cls.__name__, \u0027trigger\u0027: trigger.im_class.__name__})"},{"line_number":51,"context_line":"        return cls(conn)"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_3b64fc21","line":48,"range":{"start_line":48,"start_character":4,"end_line":48,"end_character":37},"in_reply_to":"ff0f0b1f_85dba519","updated":"2017-05-22 12:55:32.000000000","message":"In creating a Connection(), there isn\u0027t any type of failure that would be recoverable to retry, but creating the Idl could fail because ovsdb-server is not up. I\u0027ll try to rework.","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"4ca7914ca7f5247b10cc2091d25c39445b0a54cf","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        cls \u003d ovsdb_monitor.OvnSbIdl"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    if trigger and trigger.im_class \u003d\u003d ovsdb_monitor.OvnWorker:"},{"line_number":68,"context_line":"        _idl \u003d cls.from_server(*args, driver\u003ddriver)"},{"line_number":69,"context_line":"    else:"},{"line_number":70,"context_line":"        _idl \u003d ovsdb_monitor.BaseOvnIdl.from_server(*args)"},{"line_number":71,"context_line":"    return connection.Connection(_idl, timeout\u003dcfg.get_ovn_ovsdb_timeout())"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_e72b737f","line":68,"range":{"start_line":68,"start_character":8,"end_line":68,"end_character":12},"updated":"2017-05-22 08:55:01.000000000","message":"Just a nit: we don\u0027t need to make it \"private\" (by python standards), this variable only exists within the function scope here.\n\nIf the name collides with something else the underscore should go in front of it, e.g: idl_\n\n(same apply for other of this occurrences in this patch)","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"5cbad3b15d285e8d0a41008efd7dbdd26ea1a99f","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        cls \u003d ovsdb_monitor.OvnSbIdl"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"    if trigger and trigger.im_class \u003d\u003d ovsdb_monitor.OvnWorker:"},{"line_number":68,"context_line":"        _idl \u003d cls.from_server(*args, driver\u003ddriver)"},{"line_number":69,"context_line":"    else:"},{"line_number":70,"context_line":"        _idl \u003d ovsdb_monitor.BaseOvnIdl.from_server(*args)"},{"line_number":71,"context_line":"    return connection.Connection(_idl, timeout\u003dcfg.get_ovn_ovsdb_timeout())"}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_53f77ed4","line":68,"range":{"start_line":68,"start_character":8,"end_line":68,"end_character":12},"in_reply_to":"ff0f0b1f_e72b737f","updated":"2017-05-22 12:55:32.000000000","message":"I\u0027m in the habit of doing this because some files do a from ovs.db import idl and I try to avoid occluding that. This file doesn\u0027t, but it certainly could at some point. \u0027_*\u0027 doesn\u0027t only mean private, but I guess I could do idl_ if that would be an improvement.","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"}],"networking_ovn/ovsdb/ovsdb_monitor.py":[{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    @classmethod"},{"line_number":215,"context_line":"    def from_server(cls, connection_string, schema_name):"},{"line_number":216,"context_line":"        _check_and_set_ssl_files(schema_name)"},{"line_number":217,"context_line":"        helper \u003d idlutils.get_schema_helper(connection_string, schema_name)"},{"line_number":218,"context_line":"        helper.register_all()"},{"line_number":219,"context_line":"        return cls(connection_string, helper)"},{"line_number":220,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_7ee88d15","line":217,"updated":"2017-05-12 14:59:45.000000000","message":"This code is repeated from connection.OvsdbIdl.from_server, but I\u0027m not sure how to reuse the code since it returns an instance of the parent class.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":274,"context_line":"                                          self._lsp_update_down_event])"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    @classmethod"},{"line_number":277,"context_line":"    def from_server(cls, connection_string, schema_name, driver):"},{"line_number":278,"context_line":"        _check_and_set_ssl_files(schema_name)"},{"line_number":279,"context_line":"        helper \u003d idlutils.get_schema_helper(connection_string, schema_name)"},{"line_number":280,"context_line":"        helper.register_all()"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_1e450918","line":277,"updated":"2017-05-12 14:59:45.000000000","message":"These are equivalent to the previous \"idl_factory\" functions. They differ ever so slightly, but usually somewhere in the middle with registering tables, or columns, or now registering only rows matching certain criteria. So instead of constantly trying to wrap new Idl methods for filtering, I just decided to leave it up to the user to set up their Idl and pass it in.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"}],"networking_ovn/tests/functional/test_ovn_db_resources.py":[{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":16,"context_line":"import mock"},{"line_number":17,"context_line":"import netaddr"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from ovsdbapp.backend.ovs_idl import idlutils"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from networking_ovn.tests.functional import base"},{"line_number":22,"context_line":"from neutron_lib.utils import net as n_net"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_9e69198d","line":19,"updated":"2017-05-12 14:59:45.000000000","message":"TODO: This needs to go with the neutron_lib/oslo_config imports, which need to go above the networking_ovn imports.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"}],"networking_ovn/tests/functional/test_ovn_db_sync.py":[{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron_lib import context"},{"line_number":18,"context_line":"from oslo_utils import uuidutils"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from ovsdbapp.backend.ovs_idl import idlutils"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from networking_ovn.common import acl as acl_utils"},{"line_number":23,"context_line":"from networking_ovn.common import constants as ovn_const"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_1e2ce945","line":20,"updated":"2017-05-12 14:59:45.000000000","message":"TODO: This should move up a line (and I think the block of imports at the bottom should be in this group)","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"d24a3b29f436c310e37de2344e7640840ec67392","unresolved":false,"context_lines":[{"line_number":25,"context_line":"from networking_ovn import ovn_db_sync"},{"line_number":26,"context_line":"from networking_ovn.ovsdb import commands as cmd"},{"line_number":27,"context_line":"from networking_ovn.tests.functional import base"},{"line_number":28,"context_line":"from neutron.services.segments import db as segments_db"},{"line_number":29,"context_line":"from neutron.tests.unit.api import test_extensions"},{"line_number":30,"context_line":"from neutron.tests.unit.extensions import test_extraroute"},{"line_number":31,"context_line":"from neutron.tests.unit.extensions import test_securitygroup"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f013ff3_fef7fdd3","line":28,"updated":"2017-05-12 14:59:45.000000000","message":"I\u0027m confused about this import layout. I always thought OS projects did groups in the following order:\n\n1. builtins\n2. 3rd party libraries\n3. internal project imports\n\nThis had a built-in, followed by some 3rd party, followed by internal, followed by more 3rd party.","commit_id":"0fa4aa5bfb529dcf28825643f735ed85d344f2cd"}],"networking_ovn/tests/unit/ovsdb/test_ovsdb_monitor.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"4ca7914ca7f5247b10cc2091d25c39445b0a54cf","unresolved":false,"context_lines":[{"line_number":336,"context_line":"#    idlutils.get_schema_helper which we now use directly in from_server()"},{"line_number":337,"context_line":"# 4. These tests now would be testing the various from_server() calls, but"},{"line_number":338,"context_line":"#    there is almost nothing to test in those except maybe SSL being set up"},{"line_number":339,"context_line":"#    but that was done below."},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"class TestOvnConnection(base.TestCase):"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"ff0f0b1f_47c0df7b","line":339,"updated":"2017-05-22 08:55:01.000000000","message":"Thanks for the explanation terry. We need to move it to the commit message, I don\u0027t see why we would keep it in here after it\u0027s been removed.","commit_id":"0abeb86eab9b8be438320583e1a2dd4a33576e57"}]}
