)]}'
{"networking_ovn/tests/functional/base.py":[{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"3b431bb0127884ce03f093207dd4f7a69ca51f82","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        impl_idl_ovn.OvsdbSbOvnIdl.ovsdb_connection \u003d None"},{"line_number":99,"context_line":"        super(TestOVNFunctionalBase, self).tearDown()"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _get_ovsdb_server_protocol(self):"},{"line_number":102,"context_line":"        return \u0027unix\u0027"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    def _start_ovsdb_server_and_idls(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_751b9c73","line":101,"updated":"2017-02-23 13:49:14.000000000","message":"Since this function is overridden, you can remove \u0027_\u0027 at the beginning. Normally the convention \u0027_\u003cfunction_name\u003e is used for private functions.","commit_id":"211a2617b7d168b5d3e6bd6c11bf1f7403cd84c5"}],"networking_ovn/tests/functional/resources/process.py":[{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"5ae6af39d4c23bea69081350065633087f9f04e4","unresolved":false,"context_lines":[{"line_number":82,"context_line":"            spawn.find_executable(\u0027ovsdb-server\u0027),"},{"line_number":83,"context_line":"            \u0027--detach\u0027, \u0027-vconsole:off\u0027,"},{"line_number":84,"context_line":"            \u0027--log-file\u003d%s\u0027 % (ovsdb_process[\u0027log_file_path\u0027]),"},{"line_number":85,"context_line":"            \u0027--remote\u003dpunix:%s\u0027 % (ovsdb_process[\u0027remote_path\u0027]),"},{"line_number":86,"context_line":"            \u0027--unixctl\u003d%s\u0027 % (ovsdb_process[\u0027unixctl_path\u0027]),"},{"line_number":87,"context_line":"            ovsdb_process[\u0027db_path\u0027]]"},{"line_number":88,"context_line":"        utils.execute(ovsdb_server_cmd)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da36d5c6_9ba92d93","line":85,"updated":"2017-02-23 04:34:27.000000000","message":"ovsdb-server can be started with multiple remote options.\nI think it is better to start ovsdb-server with both --remote\u003dpunix:.. and --remote\u003dptcp:.\nWe don\u0027t need to have 2 classes - OvsdbServer and OvsdbTcpServer.","commit_id":"9ad40ee9647635cca12c59b9cdeee6b3fb3ac386"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"5ae6af39d4c23bea69081350065633087f9f04e4","unresolved":false,"context_lines":[{"line_number":99,"context_line":"            except Exception:"},{"line_number":100,"context_line":"                pass"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def get_ovsdb_connection_path(self, db_type\u003d\u0027nb\u0027):"},{"line_number":103,"context_line":"        for ovsdb_process in self.ovsdb_server_processes:"},{"line_number":104,"context_line":"            if ovsdb_process[\u0027db_type\u0027] \u003d\u003d db_type:"},{"line_number":105,"context_line":"                return \u0027unix:\u0027 + ovsdb_process[\u0027remote_path\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"da36d5c6_7b963940","line":102,"updated":"2017-02-23 04:34:27.000000000","message":"This function can take an additional parameter and decide to return unix path or tcp connection path.","commit_id":"9ad40ee9647635cca12c59b9cdeee6b3fb3ac386"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"013de49df40828fb0675034d237330584c35a8d2","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                \u0027--log-file\u003d%s\u0027 % (ovsdb_process[\u0027log_file_path\u0027]),"},{"line_number":91,"context_line":"                \u0027--remote\u003dpunix:%s\u0027 % (ovsdb_process[\u0027remote_path\u0027]),"},{"line_number":92,"context_line":"                \u0027--unixctl\u003d%s\u0027 % (ovsdb_process[\u0027unixctl_path\u0027]),"},{"line_number":93,"context_line":"                \u0027--remote\u003dp%s:%s:%s\u0027 % (ovsdb_process[\u0027protocol\u0027],"},{"line_number":94,"context_line":"                                        ovsdb_process[\u0027remote_port\u0027],"},{"line_number":95,"context_line":"                                        ovsdb_process[\u0027remote_ip\u0027]),"},{"line_number":96,"context_line":"                ovsdb_process[\u0027db_path\u0027]]"}],"source_content_type":"text/x-python","patch_set":2,"id":"da36d5c6_e9b33ae7","line":93,"updated":"2017-02-23 10:44:10.000000000","message":"When protocol is set to unix, you will be setting --remote\u003dpunix:6641:127.0.0.1 which doesn\u0027t make sense.\n\nWhat I suggest is like below\n\novsdb_server_cmd \u003d [\n                spawn.find_executable(\u0027ovsdb-server\u0027),\n                \u0027--detach\u0027, \u0027-vconsole:off\u0027,\n                \u0027--log-file\u003d%s\u0027 % (ovsdb_process[\u0027log_file_path\u0027]),\n                \u0027--remote\u003dpunix:%s\u0027 % (ovsdb_process[\u0027remote_path\u0027]),\n                \u0027--unixctl\u003d%s\u0027 % (ovsdb_process[\u0027unixctl_path\u0027], \u0027--remote\u003dptcp:%s:%s\u0027 % (ovsdb_process[\u0027remote_port\u0027], ovsdb_process[\u0027remote_ip\u0027]),\n\n\nWith the above code, ovsdb-server will be listening on both unix socket and tcp socket.","commit_id":"8625c19fdf9430e7e05f960c082173e392bb9dc2"},{"author":{"_account_id":24438,"name":"Guoshuai Li","email":"liguoshuai1989@gmail.com","username":"Guoshuai"},"change_message_id":"461bbf2b2fda0d6c683b1e505cb7b761ad302f3c","unresolved":false,"context_lines":[{"line_number":90,"context_line":"                \u0027--log-file\u003d%s\u0027 % (ovsdb_process[\u0027log_file_path\u0027]),"},{"line_number":91,"context_line":"                \u0027--remote\u003dpunix:%s\u0027 % (ovsdb_process[\u0027remote_path\u0027]),"},{"line_number":92,"context_line":"                \u0027--unixctl\u003d%s\u0027 % (ovsdb_process[\u0027unixctl_path\u0027]),"},{"line_number":93,"context_line":"                \u0027--remote\u003dp%s:%s:%s\u0027 % (ovsdb_process[\u0027protocol\u0027],"},{"line_number":94,"context_line":"                                        ovsdb_process[\u0027remote_port\u0027],"},{"line_number":95,"context_line":"                                        ovsdb_process[\u0027remote_ip\u0027]),"},{"line_number":96,"context_line":"                ovsdb_process[\u0027db_path\u0027]]"}],"source_content_type":"text/x-python","patch_set":2,"id":"da36d5c6_24549951","line":93,"in_reply_to":"da36d5c6_e9b33ae7","updated":"2017-02-23 12:02:47.000000000","message":"i am sorry that \"punix\" is error.","commit_id":"8625c19fdf9430e7e05f960c082173e392bb9dc2"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"013de49df40828fb0675034d237330584c35a8d2","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            except Exception:"},{"line_number":109,"context_line":"                pass"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    def get_ovsdb_connection_path(self, db_type\u003d\u0027nb\u0027):"},{"line_number":112,"context_line":"        for ovsdb_process in self.ovsdb_server_processes:"},{"line_number":113,"context_line":"            if ovsdb_process[\u0027db_type\u0027] \u003d\u003d db_type:"},{"line_number":114,"context_line":"                if ovsdb_process[\u0027protocol\u0027] \u003d\u003d \u0027unix\u0027:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da36d5c6_a91942d9","line":111,"updated":"2017-02-23 10:44:10.000000000","message":"Either you can add a new parameter here - \u0027protocol\u0027 which would take \u0027unix\u0027 or \u0027tcp\u0027 and return the connection_path accordingly or you can add a new function get_ovsdb_tcp_connection_path and rename this function as get_ovsdb_unix_connection_path.\n\nAnd use one of these functions in TestOVNFunctionalBase (depending on the what connection the test case wants to use) and set \u0027ovn_nb_connection\u0027 and \u0027ovn_sb_connection\u0027 config accordingly (in base.py L113 and L117).","commit_id":"8625c19fdf9430e7e05f960c082173e392bb9dc2"},{"author":{"_account_id":24438,"name":"Guoshuai Li","email":"liguoshuai1989@gmail.com","username":"Guoshuai"},"change_message_id":"461bbf2b2fda0d6c683b1e505cb7b761ad302f3c","unresolved":false,"context_lines":[{"line_number":108,"context_line":"            except Exception:"},{"line_number":109,"context_line":"                pass"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"    def get_ovsdb_connection_path(self, db_type\u003d\u0027nb\u0027):"},{"line_number":112,"context_line":"        for ovsdb_process in self.ovsdb_server_processes:"},{"line_number":113,"context_line":"            if ovsdb_process[\u0027db_type\u0027] \u003d\u003d db_type:"},{"line_number":114,"context_line":"                if ovsdb_process[\u0027protocol\u0027] \u003d\u003d \u0027unix\u0027:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da36d5c6_3f6bc486","line":111,"in_reply_to":"da36d5c6_a91942d9","updated":"2017-02-23 12:02:47.000000000","message":"The \u0027protocol\u0027 parameter is needed. But I think it will be global in this Class, not only in this function.\n\nThis is because the future may support SSL, start OVSDB service will not be listening on both SSL and TCP (although can also, but not very good). \n\nI think a test case can only choose a protocol, test another protocol need to start a new OVSDB service.\n\nDoes your idea is to start an OVSDB service in a test case while testing all the protocols?","commit_id":"8625c19fdf9430e7e05f960c082173e392bb9dc2"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"3b431bb0127884ce03f093207dd4f7a69ca51f82","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    s \u003d socket.socket()"},{"line_number":28,"context_line":"    s.bind((\u0027127.0.0.1\u0027, 0))"},{"line_number":29,"context_line":"    port \u003d s.getsockname()[1]"},{"line_number":30,"context_line":"    time.sleep(random.random())"},{"line_number":31,"context_line":"    s.close()"},{"line_number":32,"context_line":"    return port"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_157180a8","line":30,"updated":"2017-02-23 13:49:14.000000000","message":"Any particular reason for the sleep ?","commit_id":"211a2617b7d168b5d3e6bd6c11bf1f7403cd84c5"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"3b431bb0127884ce03f093207dd4f7a69ca51f82","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            utils.execute(ovsdb_tool_cmd)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"            # get free tcp port"},{"line_number":84,"context_line":"            if ovsdb_process[\u0027protocol\u0027] !\u003d \u0027uinx\u0027:"},{"line_number":85,"context_line":"                ovsdb_process[\u0027remote_port\u0027] \u003d get_free_port()"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"            # start the ovsdb-server"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_7532bcf3","line":84,"updated":"2017-02-23 13:49:14.000000000","message":"typo here : s/uinx/unix","commit_id":"211a2617b7d168b5d3e6bd6c11bf1f7403cd84c5"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"3b431bb0127884ce03f093207dd4f7a69ca51f82","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                \u0027--log-file\u003d%s\u0027 % (ovsdb_process[\u0027log_file_path\u0027]),"},{"line_number":92,"context_line":"                \u0027--remote\u003dpunix:%s\u0027 % (ovsdb_process[\u0027remote_path\u0027]),"},{"line_number":93,"context_line":"                \u0027--unixctl\u003d%s\u0027 % (ovsdb_process[\u0027unixctl_path\u0027])]"},{"line_number":94,"context_line":"            if ovsdb_process[\u0027protocol\u0027] !\u003d \u0027uinx\u0027:"},{"line_number":95,"context_line":"                ovsdb_server_cmd.append("},{"line_number":96,"context_line":"                    \u0027--remote\u003dp%s:%s:%s\u0027 % (ovsdb_process[\u0027protocol\u0027],"},{"line_number":97,"context_line":"                                            ovsdb_process[\u0027remote_port\u0027],"}],"source_content_type":"text/x-python","patch_set":3,"id":"da36d5c6_b54ef46c","line":94,"updated":"2017-02-23 13:49:14.000000000","message":"Same as above","commit_id":"211a2617b7d168b5d3e6bd6c11bf1f7403cd84c5"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"fd1247c521de359d299987149ca327d20d5bc545","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"def get_ovsdb_remote_port(pid):"},{"line_number":26,"context_line":"    count \u003d 0"},{"line_number":27,"context_line":"    while count \u003c 10:"},{"line_number":28,"context_line":"        process \u003d psutil.Process(pid)"},{"line_number":29,"context_line":"        for connect in process.connections():"},{"line_number":30,"context_line":"            if connect.status \u003d\u003d \u0027LISTEN\u0027:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da36d5c6_262426ae","line":27,"updated":"2017-02-27 21:46:06.000000000","message":"Instead of a retry loop, can you make use of tenacity?  We use that elsewhere in networking-ovn already.","commit_id":"58b03bf2a2cffeba404d4c4288786d9f2392dc18"}]}
