)]}'
{"dragonflow/tests/common/constants.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"4be4645530b92393d2ce3ff0e115dc56c78b12c3","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"# It takes some time from the moment the command is sent to Neutron, until"},{"line_number":18,"context_line":"# the resource of Neutron is ready for usage. It shouldn\u0027t be more than,"},{"line_number":19,"context_line":"# say, 30 seconds."},{"line_number":20,"context_line":"DEFAULT_RESOURCE_READY_TIMEOUT \u003d 30"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa6399be_f3ae0e97","line":19,"updated":"2016-10-19 14:27:01.000000000","message":"Nice explanation. Much better to have a clear statement of what the waits are for than just magic numbers. Thanks.","commit_id":"32637b30008967ad130050a43b7c4d56cb853b24"},{"author":{"_account_id":23235,"name":"Lihi Wishnitzer","email":"lihiwish@gmail.com","username":"lihiwish"},"change_message_id":"50cb10d36fbabf5643dc673355d9e496d39df296","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"# It takes some time from the moment the command is sent to Neutron, until"},{"line_number":18,"context_line":"# the resource of Neutron is ready for usage. It shouldn\u0027t be more than,"},{"line_number":19,"context_line":"# say, 30 seconds."},{"line_number":20,"context_line":"DEFAULT_RESOURCE_READY_TIMEOUT \u003d 30"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba5da102_61bf9afb","line":19,"in_reply_to":"fa6399be_f3ae0e97","updated":"2016-10-30 15:56:36.000000000","message":"I agree. Thanks!","commit_id":"32637b30008967ad130050a43b7c4d56cb853b24"}],"dragonflow/tests/common/utils.py":[{"author":{"_account_id":20287,"name":"hujie","email":"mike.hu@huawei.com","username":"hujie"},"change_message_id":"3d3ab20625aea27d7d37f2548a2c44402552fd83","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def wait_until_none(predicate, timeout\u003dconst.DEFAULT_CMD_TIMEOUT,"},{"line_number":33,"context_line":"                    sleep\u003d1, exception\u003dNone):"},{"line_number":34,"context_line":"    def internal_predicate():"},{"line_number":35,"context_line":"        ret \u003d predicate()"},{"line_number":36,"context_line":"        if ret:"}],"source_content_type":"text/x-python","patch_set":6,"id":"da6895a0_1cfe3037","line":33,"range":{"start_line":33,"start_character":20,"end_line":33,"end_character":27},"updated":"2016-10-25 14:26:36.000000000","message":"what about uniform all the sleep second also as a constant in dragonflow.tests.common.constants?","commit_id":"32637b30008967ad130050a43b7c4d56cb853b24"}],"dragonflow/tests/fullstack/test_apps.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"14183c3447e08370b145d8a2a4af956437ba0c7d","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            subnet1 \u003d self.topology.create_subnet(cidr\u003d\u0027192.168.10.0/24\u0027)"},{"line_number":78,"context_line":"            port1 \u003d subnet1.create_port()"},{"line_number":79,"context_line":"            port2 \u003d subnet1.create_port()"},{"line_number":80,"context_line":"            time.sleep(const.DEFAULT_CMD_TIMEOUT)"},{"line_number":81,"context_line":"            # Create policy"},{"line_number":82,"context_line":"            arp_packet \u003d self._create_arp_request("},{"line_number":83,"context_line":"                src_port\u003dport1.port.get_logical_port(),"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_9ca3694f","line":80,"range":{"start_line":80,"start_character":29,"end_line":80,"end_character":48},"updated":"2016-10-18 08:35:24.000000000","message":"The original value of this const is 30, I think it should keep the same, as the delay here is for all the background operation to be ready. When I inspect bug [1]\n\n[1] https://bugs.launchpad.net/dragonflow/+bug/1628408\n\nI found that if the delay is long enough, the exception log can also disappear. So, I think the delay here should not be changed.\n\nMaybe we should create 2 constant for delay, one is the cmd timeout (5s), the other is the delay for resource ready (30s).","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"bbaa661625a55a296c76874c473d001c0fca5aea","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            subnet1 \u003d self.topology.create_subnet(cidr\u003d\u0027192.168.10.0/24\u0027)"},{"line_number":78,"context_line":"            port1 \u003d subnet1.create_port()"},{"line_number":79,"context_line":"            port2 \u003d subnet1.create_port()"},{"line_number":80,"context_line":"            time.sleep(const.DEFAULT_CMD_TIMEOUT)"},{"line_number":81,"context_line":"            # Create policy"},{"line_number":82,"context_line":"            arp_packet \u003d self._create_arp_request("},{"line_number":83,"context_line":"                src_port\u003dport1.port.get_logical_port(),"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_29a4b6b7","line":80,"range":{"start_line":80,"start_character":29,"end_line":80,"end_character":48},"in_reply_to":"fa6399be_9ca3694f","updated":"2016-10-19 01:34:50.000000000","message":"OK, I will do it soon.","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"}],"dragonflow/tests/fullstack/test_base.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"ebbf6ead1fbc63b098854ea58a439351e01189ab","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        subnet \u003d self._topology.create_subnet(cidr\u003d\"192.168.200.0/24\")"},{"line_number":96,"context_line":"        port \u003d subnet.create_port()"},{"line_number":97,"context_line":"        utils.wait_until_true("},{"line_number":98,"context_line":"            lambda: port.name is not None, timeout\u003d30,"},{"line_number":99,"context_line":"            exception\u003dException(\u0027Port was not created\u0027)"},{"line_number":100,"context_line":"        )"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_930b4f2b","line":98,"range":{"start_line":98,"start_character":51,"end_line":98,"end_character":53},"updated":"2016-10-18 11:43:43.000000000","message":"Is there a reason to leave this timeout at 30? I have no opinion on what timeout lengths are reasonable, I\u0027m just asking out of curiosity.","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"bbaa661625a55a296c76874c473d001c0fca5aea","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        subnet \u003d self._topology.create_subnet(cidr\u003d\"192.168.200.0/24\")"},{"line_number":96,"context_line":"        port \u003d subnet.create_port()"},{"line_number":97,"context_line":"        utils.wait_until_true("},{"line_number":98,"context_line":"            lambda: port.name is not None, timeout\u003d30,"},{"line_number":99,"context_line":"            exception\u003dException(\u0027Port was not created\u0027)"},{"line_number":100,"context_line":"        )"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_29bd96d7","line":98,"range":{"start_line":98,"start_character":51,"end_line":98,"end_character":53},"in_reply_to":"fa6399be_930b4f2b","updated":"2016-10-19 01:34:50.000000000","message":"The fullstack test cases are all running in a VM. Sometimes it reported the timeout when the value was less than 10 or 15 sec. That\u0027s why we increased it to 30 sec and finally all the tests are working well.","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"}],"dragonflow/tests/fullstack/test_l3_flows.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"786eede3e1bb7951b0859f8c1f9e16883beab495","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        utils.wait_until_true("},{"line_number":60,"context_line":"            lambda: any(self._get_route_flows(\u0027192.168.10.0/24\u0027,"},{"line_number":61,"context_line":"                                              dest)),"},{"line_number":62,"context_line":"            timeout\u003d30,"},{"line_number":63,"context_line":"            exception\u003dException(\u0027route flow entry is not installed\u0027)"},{"line_number":64,"context_line":"        )"},{"line_number":65,"context_line":"        body[\u0027routes\u0027] \u003d []"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_a2ab7b1d","line":62,"range":{"start_line":62,"start_character":20,"end_line":62,"end_character":22},"updated":"2016-10-19 04:13:27.000000000","message":"Maybe you want to use const here too.","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"e5be9901ee3a4550c31d69431cbacafce5d493cf","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        utils.wait_until_true("},{"line_number":60,"context_line":"            lambda: any(self._get_route_flows(\u0027192.168.10.0/24\u0027,"},{"line_number":61,"context_line":"                                              dest)),"},{"line_number":62,"context_line":"            timeout\u003d30,"},{"line_number":63,"context_line":"            exception\u003dException(\u0027route flow entry is not installed\u0027)"},{"line_number":64,"context_line":"        )"},{"line_number":65,"context_line":"        body[\u0027routes\u0027] \u003d []"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_5357d301","line":62,"range":{"start_line":62,"start_character":20,"end_line":62,"end_character":22},"in_reply_to":"fa6399be_a2ab7b1d","updated":"2016-10-19 05:16:34.000000000","message":"Done","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"786eede3e1bb7951b0859f8c1f9e16883beab495","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        utils.wait_until_true("},{"line_number":70,"context_line":"            lambda: not any(self._get_route_flows(\u0027192.168.10.0/24\u0027,"},{"line_number":71,"context_line":"                                                  dest)),"},{"line_number":72,"context_line":"            timeout\u003d30,"},{"line_number":73,"context_line":"            exception\u003dException(\u0027route flow entry is not deleted\u0027)"},{"line_number":74,"context_line":"        )"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_c2aa2f19","line":72,"range":{"start_line":72,"start_character":20,"end_line":72,"end_character":22},"updated":"2016-10-19 04:13:27.000000000","message":"ditto","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"e5be9901ee3a4550c31d69431cbacafce5d493cf","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        utils.wait_until_true("},{"line_number":70,"context_line":"            lambda: not any(self._get_route_flows(\u0027192.168.10.0/24\u0027,"},{"line_number":71,"context_line":"                                                  dest)),"},{"line_number":72,"context_line":"            timeout\u003d30,"},{"line_number":73,"context_line":"            exception\u003dException(\u0027route flow entry is not deleted\u0027)"},{"line_number":74,"context_line":"        )"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_735a172c","line":72,"range":{"start_line":72,"start_character":20,"end_line":72,"end_character":22},"in_reply_to":"fa6399be_c2aa2f19","updated":"2016-10-19 05:16:34.000000000","message":"Done","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"}],"dragonflow/tests/fullstack/test_ovsdb_monitor.py":[{"author":{"_account_id":7776,"name":"Paul Carver","email":"pcarver@att.com","username":"pcarver"},"change_message_id":"ebbf6ead1fbc63b098854ea58a439351e01189ab","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        self.assertIsNotNone(mac)"},{"line_number":123,"context_line":"        # wait util get the message we want"},{"line_number":124,"context_line":"        utils.wait_until_true("},{"line_number":125,"context_line":"            lambda: self._get_wanted_vm_online(mac), timeout\u003d30, sleep\u003d1,"},{"line_number":126,"context_line":"            exception\u003dException(\u0027Could not get wanted online vm\u0027)"},{"line_number":127,"context_line":"        )"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_b6c0417e","line":125,"range":{"start_line":125,"start_character":61,"end_line":125,"end_character":63},"updated":"2016-10-18 11:43:43.000000000","message":"Here\u0027s another 30 second timeout. If there\u0027s a need for a 5 second timeout in some cases and 30 in others, consider using two constants with names that are suggestive rather than a 5 second constant and a 30 second \"magic number\".","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"bbaa661625a55a296c76874c473d001c0fca5aea","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        self.assertIsNotNone(mac)"},{"line_number":123,"context_line":"        # wait util get the message we want"},{"line_number":124,"context_line":"        utils.wait_until_true("},{"line_number":125,"context_line":"            lambda: self._get_wanted_vm_online(mac), timeout\u003d30, sleep\u003d1,"},{"line_number":126,"context_line":"            exception\u003dException(\u0027Could not get wanted online vm\u0027)"},{"line_number":127,"context_line":"        )"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa6399be_89cea281","line":125,"range":{"start_line":125,"start_character":61,"end_line":125,"end_character":63},"in_reply_to":"fa6399be_b6c0417e","updated":"2016-10-19 01:34:50.000000000","message":"Thanks for suggestion.","commit_id":"ddcad905b9b4d40ccdfdf913f1e6cfb037ae4c32"}],"dragonflow/tests/fullstack/test_responder.py":[{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"786eede3e1bb7951b0859f8c1f9e16883beab495","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        condition \u003d lambda: self._check_arp_flow_removal(ip)"},{"line_number":90,"context_line":"        try:"},{"line_number":91,"context_line":"            test_utils.wait_until_true("},{"line_number":92,"context_line":"                condition, timeout\u003d40, sleep\u003d1,"},{"line_number":93,"context_line":"                exception\u003dRuntimeError("},{"line_number":94,"context_line":"                    \"Timed out waiting for arp responder flow from %(ip)s\""},{"line_number":95,"context_line":"                    \" to be removed\" % {\u0027ip\u0027: ip}))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_6247a377","line":92,"range":{"start_line":92,"start_character":35,"end_line":92,"end_character":37},"updated":"2016-10-19 04:13:27.000000000","message":"Maybe you want to apply const here too.","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"e5be9901ee3a4550c31d69431cbacafce5d493cf","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        condition \u003d lambda: self._check_arp_flow_removal(ip)"},{"line_number":90,"context_line":"        try:"},{"line_number":91,"context_line":"            test_utils.wait_until_true("},{"line_number":92,"context_line":"                condition, timeout\u003d40, sleep\u003d1,"},{"line_number":93,"context_line":"                exception\u003dRuntimeError("},{"line_number":94,"context_line":"                    \"Timed out waiting for arp responder flow from %(ip)s\""},{"line_number":95,"context_line":"                    \" to be removed\" % {\u0027ip\u0027: ip}))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_b33cafc0","line":92,"range":{"start_line":92,"start_character":35,"end_line":92,"end_character":37},"in_reply_to":"fa6399be_6247a377","updated":"2016-10-19 05:16:34.000000000","message":"Done","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":11159,"name":"Hong Hui Xiao","email":"honghui_xiao@yeah.net","username":"HongHuiXiao"},"change_message_id":"786eede3e1bb7951b0859f8c1f9e16883beab495","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        condition \u003d lambda: self._check_icmp_flow_removal(router_ip)"},{"line_number":185,"context_line":"        try:"},{"line_number":186,"context_line":"            test_utils.wait_until_true("},{"line_number":187,"context_line":"                condition, timeout\u003d40, sleep\u003d1,"},{"line_number":188,"context_line":"                exception\u003dRuntimeError("},{"line_number":189,"context_line":"                    \"Timed out waiting for icmp responder flow from %(ip)s\""},{"line_number":190,"context_line":"                    \" to be removed\" % {\u0027ip\u0027: router_ip}))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_a259bb5d","line":187,"range":{"start_line":187,"start_character":35,"end_line":187,"end_character":37},"updated":"2016-10-19 04:13:27.000000000","message":"ditto","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"},{"author":{"_account_id":7805,"name":"Li Ma","email":"skywalker.nick@gmail.com","username":"Nick"},"change_message_id":"e5be9901ee3a4550c31d69431cbacafce5d493cf","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        condition \u003d lambda: self._check_icmp_flow_removal(router_ip)"},{"line_number":185,"context_line":"        try:"},{"line_number":186,"context_line":"            test_utils.wait_until_true("},{"line_number":187,"context_line":"                condition, timeout\u003d40, sleep\u003d1,"},{"line_number":188,"context_line":"                exception\u003dRuntimeError("},{"line_number":189,"context_line":"                    \"Timed out waiting for icmp responder flow from %(ip)s\""},{"line_number":190,"context_line":"                    \" to be removed\" % {\u0027ip\u0027: router_ip}))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa6399be_d34be357","line":187,"range":{"start_line":187,"start_character":35,"end_line":187,"end_character":37},"in_reply_to":"fa6399be_a259bb5d","updated":"2016-10-19 05:16:34.000000000","message":"Done","commit_id":"be9883b3ba7a65bbfbedd57e20a541a7fa8baa53"}]}
