)]}'
{"networking_bgpvpn_tempest/tests/scenario/test_bgpvpn_basic.py":[{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        if not subnet_cidrs:"},{"line_number":256,"context_line":"            subnet_cidrs \u003d [[NET_A_S1], [NET_B_S1]]"},{"line_number":257,"context_line":"        create_kwargs \u003d {\u0027ip_version\u0027: 4}"},{"line_number":258,"context_line":"        for i in range(len(names)):"},{"line_number":259,"context_line":"            network \u003d self._create_network(namestart\u003d\u0027network-\u0027 + names[i])"},{"line_number":260,"context_line":"            self.networks[names[i]] \u003d network"},{"line_number":261,"context_line":"            self.subnets[names[i]] \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_ccb7f120","line":258,"range":{"start_line":258,"start_character":11,"end_line":258,"end_character":12},"updated":"2017-11-07 22:41:40.000000000","message":"You can write this in a more pythonistic way:\n\n  for (name, subnet_cidrs) in zip(names, subnet_cidrs):\n      ...\n      self.networks[name] \u003d ...\n\n      for (j, cidr) in enumerate(subnet_cidrs):\n          sub_name \u003d \"subnet-%s-%d\" % (name, j+1)\n          subnet \u003d self._create_subnet_with_cidr(network,\n                                                 namestart\u003dsub_name,\n                                                 cidr\u003dcidr)","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        if not subnet_cidrs:"},{"line_number":256,"context_line":"            subnet_cidrs \u003d [[NET_A_S1], [NET_B_S1]]"},{"line_number":257,"context_line":"        create_kwargs \u003d {\u0027ip_version\u0027: 4}"},{"line_number":258,"context_line":"        for i in range(len(names)):"},{"line_number":259,"context_line":"            network \u003d self._create_network(namestart\u003d\u0027network-\u0027 + names[i])"},{"line_number":260,"context_line":"            self.networks[names[i]] \u003d network"},{"line_number":261,"context_line":"            self.subnets[names[i]] \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_876788b8","line":258,"range":{"start_line":258,"start_character":11,"end_line":258,"end_character":12},"in_reply_to":"3f4b6375_ccb7f120","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        if ports_config is None:"},{"line_number":346,"context_line":"            ports_config \u003d [[self.networks[NET_A], IP_A_S1_1],"},{"line_number":347,"context_line":"                            [self.networks[NET_B], IP_B_S1_1]]"},{"line_number":348,"context_line":"        for i in range(len(ports_config)):"},{"line_number":349,"context_line":"            network \u003d ports_config[i][0]"},{"line_number":350,"context_line":"            server \u003d self._create_server("},{"line_number":351,"context_line":"                \u0027server-\u0027 + str(i + 1), keypair, network, ports_config[i][1],"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_ac38359f","line":348,"range":{"start_line":348,"start_character":0,"end_line":348,"end_character":42},"updated":"2017-11-07 22:41:40.000000000","message":"Same as above:\n\n  for port_config in ports_config:\n     network \u003d port_config[0]\n     ...","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":345,"context_line":"        if ports_config is None:"},{"line_number":346,"context_line":"            ports_config \u003d [[self.networks[NET_A], IP_A_S1_1],"},{"line_number":347,"context_line":"                            [self.networks[NET_B], IP_B_S1_1]]"},{"line_number":348,"context_line":"        for i in range(len(ports_config)):"},{"line_number":349,"context_line":"            network \u003d ports_config[i][0]"},{"line_number":350,"context_line":"            server \u003d self._create_server("},{"line_number":351,"context_line":"                \u0027server-\u0027 + str(i + 1), keypair, network, ports_config[i][1],"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_67024cbd","line":348,"range":{"start_line":348,"start_character":0,"end_line":348,"end_character":42},"in_reply_to":"3f4b6375_ac38359f","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        bgpvpn \u003d bgpvpn or self.bgpvpn"},{"line_number":386,"context_line":"        for net_name in self.networks:"},{"line_number":387,"context_line":"            self.bgpvpn_client.create_network_association("},{"line_number":388,"context_line":"                bgpvpn[\u0027id\u0027], self.networks[net_name][\u0027id\u0027])"},{"line_number":389,"context_line":"        LOG.debug(\u0027BGPVPN network associations completed\u0027)"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    def _setup_ssh_client(self, server):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_8c3b399a","line":388,"range":{"start_line":388,"start_character":30,"end_line":388,"end_character":59},"updated":"2017-11-07 22:41:40.000000000","message":"you can actually pass the network name instead of the uuid here","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":385,"context_line":"        bgpvpn \u003d bgpvpn or self.bgpvpn"},{"line_number":386,"context_line":"        for net_name in self.networks:"},{"line_number":387,"context_line":"            self.bgpvpn_client.create_network_association("},{"line_number":388,"context_line":"                bgpvpn[\u0027id\u0027], self.networks[net_name][\u0027id\u0027])"},{"line_number":389,"context_line":"        LOG.debug(\u0027BGPVPN network associations completed\u0027)"},{"line_number":390,"context_line":""},{"line_number":391,"context_line":"    def _setup_ssh_client(self, server):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_c71b401a","line":388,"range":{"start_line":388,"start_character":30,"end_line":388,"end_character":59},"in_reply_to":"3f4b6375_8c3b399a","updated":"2017-11-08 13:48:59.000000000","message":"net_name is not a full name of network here - just a sufix, so I have to use uuid instead","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def _setup_http_server(self, server_index):"},{"line_number":401,"context_line":"        server \u003d self.servers[server_index]"},{"line_number":402,"context_line":"        ssh_client \u003d self._setup_ssh_client(server)"},{"line_number":403,"context_line":"        ssh_client.exec_command(\"sudo nc -kl -p 80 -e echo \u0027{name}\u0027 \u0026\".format("},{"line_number":404,"context_line":"            name\u003dserver[\u0027name\u0027]))"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _check_l3_bgpvpn(self, from_server\u003dNone, to_server\u003dNone,"},{"line_number":407,"context_line":"                         should_succeed\u003dTrue, validate_server\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_cc65b1b0","line":404,"range":{"start_line":403,"start_character":0,"end_line":404,"end_character":33},"updated":"2017-11-07 22:41:40.000000000","message":"I didn\u0027t know -k and -e : very nice solution!\n\nSince you only have one % item to expand, you can write the string as follows without losing readbility:\n\n   (\"sudo nc -kl -p 80 -e echo \u0027%s\u0027 \u0026\" % server[\u0027name\u0027])","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"0ec1722c794d4fce4fce59e964636ec647807e48","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def _setup_http_server(self, server_index):"},{"line_number":401,"context_line":"        server \u003d self.servers[server_index]"},{"line_number":402,"context_line":"        ssh_client \u003d self._setup_ssh_client(server)"},{"line_number":403,"context_line":"        ssh_client.exec_command(\"sudo nc -kl -p 80 -e echo \u0027{name}\u0027 \u0026\".format("},{"line_number":404,"context_line":"            name\u003dserver[\u0027name\u0027]))"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _check_l3_bgpvpn(self, from_server\u003dNone, to_server\u003dNone,"},{"line_number":407,"context_line":"                         should_succeed\u003dTrue, validate_server\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_d7f40cd2","line":404,"range":{"start_line":403,"start_character":0,"end_line":404,"end_character":33},"in_reply_to":"3f4b6375_1e576403","updated":"2017-11-09 10:34:13.000000000","message":"ok","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def _setup_http_server(self, server_index):"},{"line_number":401,"context_line":"        server \u003d self.servers[server_index]"},{"line_number":402,"context_line":"        ssh_client \u003d self._setup_ssh_client(server)"},{"line_number":403,"context_line":"        ssh_client.exec_command(\"sudo nc -kl -p 80 -e echo \u0027{name}\u0027 \u0026\".format("},{"line_number":404,"context_line":"            name\u003dserver[\u0027name\u0027]))"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _check_l3_bgpvpn(self, from_server\u003dNone, to_server\u003dNone,"},{"line_number":407,"context_line":"                         should_succeed\u003dTrue, validate_server\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_1e576403","line":404,"range":{"start_line":403,"start_character":0,"end_line":404,"end_character":33},"in_reply_to":"3f4b6375_9cea440c","updated":"2017-11-08 13:48:59.000000000","message":"Without -k server is not persistent - server will respond for first request and then will exit. I need here persistent server. On different distributions nc has different options and they sometime do different things (here -e does what -c in others). So this syntax is fine for nc on cirros.","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def _setup_http_server(self, server_index):"},{"line_number":401,"context_line":"        server \u003d self.servers[server_index]"},{"line_number":402,"context_line":"        ssh_client \u003d self._setup_ssh_client(server)"},{"line_number":403,"context_line":"        ssh_client.exec_command(\"sudo nc -kl -p 80 -e echo \u0027{name}\u0027 \u0026\".format("},{"line_number":404,"context_line":"            name\u003dserver[\u0027name\u0027]))"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _check_l3_bgpvpn(self, from_server\u003dNone, to_server\u003dNone,"},{"line_number":407,"context_line":"                         should_succeed\u003dTrue, validate_server\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_471630aa","line":404,"range":{"start_line":403,"start_character":0,"end_line":404,"end_character":33},"in_reply_to":"3f4b6375_cc65b1b0","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"2b70056e8cc83764c4b533be452f4b50ca89a104","unresolved":false,"context_lines":[{"line_number":400,"context_line":"    def _setup_http_server(self, server_index):"},{"line_number":401,"context_line":"        server \u003d self.servers[server_index]"},{"line_number":402,"context_line":"        ssh_client \u003d self._setup_ssh_client(server)"},{"line_number":403,"context_line":"        ssh_client.exec_command(\"sudo nc -kl -p 80 -e echo \u0027{name}\u0027 \u0026\".format("},{"line_number":404,"context_line":"            name\u003dserver[\u0027name\u0027]))"},{"line_number":405,"context_line":""},{"line_number":406,"context_line":"    def _check_l3_bgpvpn(self, from_server\u003dNone, to_server\u003dNone,"},{"line_number":407,"context_line":"                         should_succeed\u003dTrue, validate_server\u003dFalse):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_9cea440c","line":404,"range":{"start_line":403,"start_character":0,"end_line":404,"end_character":33},"in_reply_to":"3f4b6375_cc65b1b0","updated":"2017-11-07 23:34:12.000000000","message":"In fact I don\u0027t get why you need -k here, can you explain ?\n\n(Sorry for the confusion.)","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":423,"context_line":"                       \"{src}\").format(dest\u003dserver_2_ip, src\u003dserver_1_ip)"},{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_b9de3267","line":426,"range":{"start_line":426,"start_character":0,"end_line":426,"end_character":50},"updated":"2017-11-07 22:41:40.000000000","message":"My question here would be: since this codepath is not always (and not frequently) hit, how do we know that the code is correct ?\n\nIdeally we have a test job run log output in the OpenStack CI that shows the log be output as we expect.","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":423,"context_line":"                       \"{src}\").format(dest\u003dserver_2_ip, src\u003dserver_1_ip)"},{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_2a6d3bcc","line":426,"range":{"start_line":426,"start_character":0,"end_line":426,"end_character":50},"in_reply_to":"3f4b6375_b9de3267","updated":"2017-11-08 13:48:59.000000000","message":"Fortunately there are two test cases there are failing so far and I was testing this functionality on them","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"9da192f67e150d79dcc20bed946ac59933a42e8b","unresolved":false,"context_lines":[{"line_number":423,"context_line":"                       \"{src}\").format(dest\u003dserver_2_ip, src\u003dserver_1_ip)"},{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_dc8f9cca","line":426,"range":{"start_line":426,"start_character":0,"end_line":426,"end_character":50},"in_reply_to":"3f4b6375_b9de3267","updated":"2017-11-08 00:28:02.000000000","message":"test_bgpvpn_update_rt_and_keep_local_connectivity_variant2 is failing and properly doing the ARP commands, so we\u0027re good:\n\nhttp://logs.openstack.org/12/518312/1/check/legacy-tempest-dsvm-networking-bgpvpn-bagpipe/a49e4b1/logs/testr_results.html.gz\n\nWhat is missing from the logs is the actual output of \"arp -n\".","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":423,"context_line":"                       \"{src}\").format(dest\u003dserver_2_ip, src\u003dserver_1_ip)"},{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_ea94c38e","line":426,"range":{"start_line":426,"start_character":0,"end_line":426,"end_character":50},"in_reply_to":"3f4b6375_dc8f9cca","updated":"2017-11-08 13:48:59.000000000","message":"If I understand you well, after first sequence of pings I ca see arp -n result:\n\n2017-11-07 12:43:47,565 19663 DEBUG    [networking_bgpvpn_tempest.tests.scenario.test_bgpvpn_basic] Ping origin server\u0027s GW info:\n2017-11-07 12:43:47,566 19663 DEBUG    [networking_bgpvpn_tempest.tests.scenario.test_bgpvpn_basic] ? (10.101.11.1) at fa:16:3e:41:5d:d2 [ether]  on eth0","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"0ec1722c794d4fce4fce59e964636ec647807e48","unresolved":false,"context_lines":[{"line_number":423,"context_line":"                       \"{src}\").format(dest\u003dserver_2_ip, src\u003dserver_1_ip)"},{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_57c01c51","line":426,"range":{"start_line":426,"start_character":0,"end_line":426,"end_character":50},"in_reply_to":"3f4b6375_ea94c38e","updated":"2017-11-09 10:34:13.000000000","message":"Yes, it\u0027s all good, I don\u0027t know how I failed to see the output or arp -n...","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("},{"line_number":430,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_0cf509cb","line":428,"range":{"start_line":427,"start_character":16,"end_line":428,"end_character":70},"updated":"2017-11-07 22:41:40.000000000","message":"The right/clean way to do so is to look up the subnet API resource, and look at the gateway_ip field . The reason is that we want the test to work on an openstack that would use a different convention for the default IP of a subnet (e.g. an openstack configured to use .254 for the gateway IP).","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":424,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":425,"context_line":"                                                     should_be_reachable)"},{"line_number":426,"context_line":"            if should_be_reachable and not result:"},{"line_number":427,"context_line":"                gateway_ip \u003d self.server_fixed_ips[from_server[\u0027id\u0027]]"},{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("},{"line_number":430,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_93c34658","line":428,"range":{"start_line":427,"start_character":16,"end_line":428,"end_character":70},"in_reply_to":"3f4b6375_0cf509cb","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("},{"line_number":430,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"},{"line_number":432,"context_line":"                LOG.debug(output)"},{"line_number":433,"context_line":"                ssh_client.exec_command(\u0027sudo arp -d {gw_ip}\u0027.format("},{"line_number":434,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":435,"context_line":"                result \u003d self._check_remote_connectivity(ssh_client,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_4c28a131","line":432,"range":{"start_line":431,"start_character":0,"end_line":432,"end_character":33},"updated":"2017-11-07 22:41:40.000000000","message":"Since failing and then doing an ARP -d is a sign that we don\u0027t have the right behavior in the implementation, this should be LOG.warning .\n\nAlso I would suggest \"Ping origin server GW ARP info:\"","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                gateway_ip \u003d gateway_ip[:gateway_ip.rfind(\u0027.\u0027)] + \u0027.1\u0027"},{"line_number":429,"context_line":"                output \u003d ssh_client.exec_command(\u0027arp -n {gw_ip}\u0027.format("},{"line_number":430,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"},{"line_number":432,"context_line":"                LOG.debug(output)"},{"line_number":433,"context_line":"                ssh_client.exec_command(\u0027sudo arp -d {gw_ip}\u0027.format("},{"line_number":434,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":435,"context_line":"                result \u003d self._check_remote_connectivity(ssh_client,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_877ae8b7","line":432,"range":{"start_line":431,"start_character":0,"end_line":432,"end_character":33},"in_reply_to":"3f4b6375_4c28a131","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"9da192f67e150d79dcc20bed946ac59933a42e8b","unresolved":false,"context_lines":[{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"},{"line_number":432,"context_line":"                LOG.debug(output)"},{"line_number":433,"context_line":"                ssh_client.exec_command(\u0027sudo arp -d {gw_ip}\u0027.format("},{"line_number":434,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":435,"context_line":"                result \u003d self._check_remote_connectivity(ssh_client,"},{"line_number":436,"context_line":"                                                         server_2_ip,"},{"line_number":437,"context_line":"                                                         should_be_reachable)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_bc518032","line":434,"updated":"2017-11-08 00:28:02.000000000","message":"I\u0027ve looked at the failure in http://logs.openstack.org/12/518312/1/check/legacy-tempest-dsvm-networking-bgpvpn-bagpipe/a49e4b1/logs/testr_results.html.gz , and I think that what we should do so that the test allows troubleshooting is, after the \"arp -d\", do a ping of the gateway IP, and then \"arp -n\" again to check that the correct MAC is installed.","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":431,"context_line":"                LOG.debug(\"Ping origin server\u0027s GW info:\")"},{"line_number":432,"context_line":"                LOG.debug(output)"},{"line_number":433,"context_line":"                ssh_client.exec_command(\u0027sudo arp -d {gw_ip}\u0027.format("},{"line_number":434,"context_line":"                    gw_ip\u003dgateway_ip))"},{"line_number":435,"context_line":"                result \u003d self._check_remote_connectivity(ssh_client,"},{"line_number":436,"context_line":"                                                         server_2_ip,"},{"line_number":437,"context_line":"                                                         should_be_reachable)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_aa47eb4c","line":434,"in_reply_to":"3f4b6375_bc518032","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"af47b2c184c890cfa9d20c07503bd64c3a879d3a","unresolved":false,"context_lines":[{"line_number":437,"context_line":"                                                         should_be_reachable)"},{"line_number":438,"context_line":"            self.assertTrue(result, msg)"},{"line_number":439,"context_line":"            if validate_server and result:"},{"line_number":440,"context_line":"                to_name \u003d ssh_client.exec_command(\"nc {dest} 80\".format("},{"line_number":441,"context_line":"                    dest\u003dserver_2_ip)).strip()"},{"line_number":442,"context_line":"                result \u003d to_name \u003d\u003d to_server[\u0027name\u0027]"},{"line_number":443,"context_line":"                self.assertTrue(should_succeed \u003d\u003d result,"},{"line_number":444,"context_line":"                                (\"Destination server name is invalid. Has \u0027\""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_99ea560c","line":441,"range":{"start_line":440,"start_character":49,"end_line":441,"end_character":37},"updated":"2017-11-07 22:41:40.000000000","message":"\"nc %s 80\" % server_2_ip\" would be shorter","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"2668b860b65250452fc2264938ff702eeb5cc388","unresolved":false,"context_lines":[{"line_number":437,"context_line":"                                                         should_be_reachable)"},{"line_number":438,"context_line":"            self.assertTrue(result, msg)"},{"line_number":439,"context_line":"            if validate_server and result:"},{"line_number":440,"context_line":"                to_name \u003d ssh_client.exec_command(\"nc {dest} 80\".format("},{"line_number":441,"context_line":"                    dest\u003dserver_2_ip)).strip()"},{"line_number":442,"context_line":"                result \u003d to_name \u003d\u003d to_server[\u0027name\u0027]"},{"line_number":443,"context_line":"                self.assertTrue(should_succeed \u003d\u003d result,"},{"line_number":444,"context_line":"                                (\"Destination server name is invalid. Has \u0027\""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_07ba786d","line":441,"range":{"start_line":440,"start_character":49,"end_line":441,"end_character":37},"in_reply_to":"3f4b6375_99ea560c","updated":"2017-11-08 13:48:59.000000000","message":"Done","commit_id":"10e40e1abc42077f1dfec00df94f3b9d2aaaceca"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"0ec1722c794d4fce4fce59e964636ec647807e48","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        self._create_networks_and_subnets()"},{"line_number":222,"context_line":"        self._create_l3_bgpvpn()"},{"line_number":223,"context_line":"        self.bgpvpn_client.create_network_association("},{"line_number":224,"context_line":"            self.bgpvpn[\u0027id\u0027], self.networks[NET_A][\u0027id\u0027])"},{"line_number":225,"context_line":"        self._create_servers()"},{"line_number":226,"context_line":"        self._associate_fip_and_check_l3_bgpvpn(should_succeed\u003dFalse)"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_b7e5103b","line":224,"range":{"start_line":224,"start_character":31,"end_line":224,"end_character":56},"updated":"2017-11-09 10:34:13.000000000","message":"could be just NET_A here, I think,, if you apply the suggestion below","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"02105329ea6a258543c701ac38a54c6c26f02b56","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        self._create_networks_and_subnets()"},{"line_number":222,"context_line":"        self._create_l3_bgpvpn()"},{"line_number":223,"context_line":"        self.bgpvpn_client.create_network_association("},{"line_number":224,"context_line":"            self.bgpvpn[\u0027id\u0027], self.networks[NET_A][\u0027id\u0027])"},{"line_number":225,"context_line":"        self._create_servers()"},{"line_number":226,"context_line":"        self._associate_fip_and_check_l3_bgpvpn(should_succeed\u003dFalse)"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_d851d964","line":224,"range":{"start_line":224,"start_character":31,"end_line":224,"end_character":56},"in_reply_to":"1f485f77_b7e5103b","updated":"2017-11-09 13:58:42.000000000","message":"It looks that bgpvpn_client.create_network_association accepts only network_id. When I pass here name I receive message \"\u0027A\u0027 is not a valid UUID\"","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"b8712187db93022d9304f7f48707484f75d14ce6","unresolved":false,"context_lines":[{"line_number":221,"context_line":"        self._create_networks_and_subnets()"},{"line_number":222,"context_line":"        self._create_l3_bgpvpn()"},{"line_number":223,"context_line":"        self.bgpvpn_client.create_network_association("},{"line_number":224,"context_line":"            self.bgpvpn[\u0027id\u0027], self.networks[NET_A][\u0027id\u0027])"},{"line_number":225,"context_line":"        self._create_servers()"},{"line_number":226,"context_line":"        self._associate_fip_and_check_l3_bgpvpn(should_succeed\u003dFalse)"},{"line_number":227,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_ca4b31ae","line":224,"range":{"start_line":224,"start_character":31,"end_line":224,"end_character":56},"in_reply_to":"1f485f77_d851d964","updated":"2017-11-10 11:11:54.000000000","message":"ideally it should, but indeed it does not...","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"0ec1722c794d4fce4fce59e964636ec647807e48","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        if not subnet_cidrs:"},{"line_number":256,"context_line":"            subnet_cidrs \u003d [[NET_A_S1], [NET_B_S1]]"},{"line_number":257,"context_line":"        for (name, subnet_cidrs) in zip(names, subnet_cidrs):"},{"line_number":258,"context_line":"            network \u003d self._create_network(namestart\u003d\u0027network-\u0027 + name)"},{"line_number":259,"context_line":"            self.networks[name] \u003d network"},{"line_number":260,"context_line":"            self.subnets[name] \u003d []"},{"line_number":261,"context_line":"            for (j, cidr) in enumerate(subnet_cidrs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_f7494832","line":258,"range":{"start_line":258,"start_character":43,"end_line":258,"end_character":70},"updated":"2017-11-09 10:34:13.000000000","message":"Since we don\u0027t really need  to have \u0027network-\u0027 in the network name, then you could do namestart\u003dname I think","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"02105329ea6a258543c701ac38a54c6c26f02b56","unresolved":false,"context_lines":[{"line_number":255,"context_line":"        if not subnet_cidrs:"},{"line_number":256,"context_line":"            subnet_cidrs \u003d [[NET_A_S1], [NET_B_S1]]"},{"line_number":257,"context_line":"        for (name, subnet_cidrs) in zip(names, subnet_cidrs):"},{"line_number":258,"context_line":"            network \u003d self._create_network(namestart\u003d\u0027network-\u0027 + name)"},{"line_number":259,"context_line":"            self.networks[name] \u003d network"},{"line_number":260,"context_line":"            self.subnets[name] \u003d []"},{"line_number":261,"context_line":"            for (j, cidr) in enumerate(subnet_cidrs):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_98e00199","line":258,"range":{"start_line":258,"start_character":43,"end_line":258,"end_character":70},"in_reply_to":"1f485f77_f7494832","updated":"2017-11-09 13:58:42.000000000","message":"OK","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"b8712187db93022d9304f7f48707484f75d14ce6","unresolved":false,"context_lines":[{"line_number":382,"context_line":""},{"line_number":383,"context_line":"    def _associate_all_nets_to_bgpvpn(self, bgpvpn\u003dNone):"},{"line_number":384,"context_line":"        bgpvpn \u003d bgpvpn or self.bgpvpn"},{"line_number":385,"context_line":"        for net_name in self.networks:"},{"line_number":386,"context_line":"            self.bgpvpn_client.create_network_association("},{"line_number":387,"context_line":"                bgpvpn[\u0027id\u0027], self.networks[net_name][\u0027id\u0027])"},{"line_number":388,"context_line":"        LOG.debug(\u0027BGPVPN network associations completed\u0027)"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"    def _setup_ssh_client(self, server):"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_2adac5e8","line":387,"range":{"start_line":385,"start_character":0,"end_line":387,"end_character":60},"updated":"2017-11-10 11:11:54.000000000","message":"even slightly better:\n\n        for network in self.networks.values():\n            self.bgpvpn_client.create_network_association(\n                bgpvpn[\u0027id\u0027], network[\u0027id\u0027])","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":12021,"name":"Thomas Morin","email":"tmmorin.orange@gmail.com","username":"tmorin"},"change_message_id":"0ec1722c794d4fce4fce59e964636ec647807e48","unresolved":false,"context_lines":[{"line_number":428,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":429,"context_line":"                                                     should_be_reachable)"},{"line_number":430,"context_line":"            if should_be_reachable and not result:"},{"line_number":431,"context_line":"                subnet_id \u003d self.ports[from_server[\u0027id\u0027]][\u0027fixed_ips\u0027][0]"},{"line_number":432,"context_line":"                subnet_id \u003d subnet_id[\u0027subnet_id\u0027]"},{"line_number":433,"context_line":"                gateway_ip \u003d \u0027\u0027"},{"line_number":434,"context_line":"                for net_name in self.subnets:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_d71d2c10","line":431,"range":{"start_line":431,"start_character":16,"end_line":431,"end_character":25},"updated":"2017-11-09 10:34:13.000000000","message":"this variable does not contain a subnet_id, but an allocation, so calling it \"allocation\" will be better","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"},{"author":{"_account_id":26038,"name":"Łukasz Rajewski","email":"lukasz.rajewski@orange.com","username":"rajewluk"},"change_message_id":"02105329ea6a258543c701ac38a54c6c26f02b56","unresolved":false,"context_lines":[{"line_number":428,"context_line":"            result \u003d self._check_remote_connectivity(ssh_client, server_2_ip,"},{"line_number":429,"context_line":"                                                     should_be_reachable)"},{"line_number":430,"context_line":"            if should_be_reachable and not result:"},{"line_number":431,"context_line":"                subnet_id \u003d self.ports[from_server[\u0027id\u0027]][\u0027fixed_ips\u0027][0]"},{"line_number":432,"context_line":"                subnet_id \u003d subnet_id[\u0027subnet_id\u0027]"},{"line_number":433,"context_line":"                gateway_ip \u003d \u0027\u0027"},{"line_number":434,"context_line":"                for net_name in self.subnets:"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_7861c539","line":431,"range":{"start_line":431,"start_character":16,"end_line":431,"end_character":25},"in_reply_to":"1f485f77_d71d2c10","updated":"2017-11-09 13:58:42.000000000","message":"OK","commit_id":"b0fafe592b319e646daa91dc2971def14fba86b5"}]}
