)]}'
{".zuul.yaml":[{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"4a5d55ff5c469617bd2629db4033314aa9beabd1","unresolved":false,"context_lines":[{"line_number":172,"context_line":"    vars:"},{"line_number":173,"context_line":"      branch_override: stable/queens"},{"line_number":174,"context_line":"      devstack_localrc:"},{"line_number":175,"context_line":"        NETWORK_API_EXTENSIONS: address-scope,agent,allowed-address-pairs,auto-allocated-topology,availability_zone,binding,default-subnetpools,dhcp_agent_scheduler,dns-integration,ext-gw-mode,external-net,extra_dhcp_opt,extraroute,flavors,ip-substring-filtering,l3-flavors,l3-ha,l3_agent_scheduler,logging,metering,multi-provider,net-mtu,net-mtu-writable,network-ip-availability,network_availability_zone,pagination,port-security,project-id,provider,qos,qos-fip,quotas,quota_details,rbac-policies,router,router_availability_zone,security-group,port-security-groups-filtering,segment,service-type,sorting,standard-attr-description,standard-attr-revisions,standard-attr-timestamp,standard-attr-tag,subnet_allocation,tag,tag-ext,trunk,trunk-details"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"- job:"},{"line_number":178,"context_line":"    name: neutron-tempest-plugin-scenario-linuxbridge-rocky"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_806d8931","line":175,"updated":"2018-11-06 20:28:18.000000000","message":"This job will fail unless https://review.openstack.org/#/c/605589/ is backport to stable/queens. I guess a walk-around is to setting q_agent: None in here to disable the new test.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"4a5d55ff5c469617bd2629db4033314aa9beabd1","unresolved":false,"context_lines":[{"line_number":181,"context_line":"    vars:"},{"line_number":182,"context_line":"      branch_override: stable/rocky"},{"line_number":183,"context_line":"      devstack_localrc:"},{"line_number":184,"context_line":"        NETWORK_API_EXTENSIONS: address-scope,agent,allowed-address-pairs,auto-allocated-topology,availability_zone,binding,default-subnetpools,dhcp_agent_scheduler,dns-domain-ports,dns-integration,ext-gw-mode,external-net,extra_dhcp_opt,extraroute,fip-port-details,flavors,ip-substring-filtering,l3-flavors,l3-ha,l3_agent_scheduler,logging,metering,multi-provider,net-mtu,net-mtu-writable,network-ip-availability,network_availability_zone,pagination,port-security,project-id,provider,qos,qos-fip,quotas,quota_details,rbac-policies,router,router_availability_zone,security-group,port-security-groups-filtering,segment,service-type,sorting,standard-attr-description,standard-attr-revisions,standard-attr-timestamp,standard-attr-tag,subnet_allocation,tag,tag-ext,trunk,trunk-details"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"- job:"},{"line_number":187,"context_line":"    name: neutron-tempest-plugin-dvr-multinode-scenario"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"3f79a3b5_a06a0515","line":184,"updated":"2018-11-06 20:28:18.000000000","message":"This job will fail unless https://review.openstack.org/#/c/605589/ is backport to stable/rocky. I guess a walk-around is to setting q_agent: None in here to disable the new test.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"756cebe96125cdf2b62c6d187fa77885e2846478","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        test-config:"},{"line_number":178,"context_line":"          $TEMPEST_CONFIG:"},{"line_number":179,"context_line":"            neutron_plugin_options:"},{"line_number":180,"context_line":"              q_agent: None"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"- job:"},{"line_number":183,"context_line":"    name: neutron-tempest-plugin-scenario-linuxbridge-rocky"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3f79a3b5_c2918c52","line":180,"updated":"2018-11-19 10:19:02.000000000","message":"this \"hack\" should be at least described in comment why it is like that","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4fcacb02676a5149f2d8741ec1cad59eb1428901","unresolved":false,"context_lines":[{"line_number":177,"context_line":"        test-config:"},{"line_number":178,"context_line":"          $TEMPEST_CONFIG:"},{"line_number":179,"context_line":"            neutron_plugin_options:"},{"line_number":180,"context_line":"              q_agent: None"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"- job:"},{"line_number":183,"context_line":"    name: neutron-tempest-plugin-scenario-linuxbridge-rocky"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"3f79a3b5_55e20238","line":180,"in_reply_to":"3f79a3b5_c2918c52","updated":"2018-11-20 06:43:30.000000000","message":"Slavic, Thanks for the comments, Will add comment to describe why it need this \"hack\" after other comments got confirmed by you, thanks!","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"}],"/COMMIT_MSG":[{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"057857952c967c88b77ae78cff6efb3ed0c073c8","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Depends-On: https://review.openstack.org/#/c/605589/"},{"line_number":16,"context_line":"Change-Id: Ic2e02f4b5dc8d7930e251340d8be194733b0a4f7"},{"line_number":17,"context_line":"Closes-Bug: #1794424"},{"line_number":18,"context_line":"Story: 2003889"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3f79a3b5_c5183373","line":17,"range":{"start_line":17,"start_character":0,"end_line":17,"end_character":20},"updated":"2018-11-27 12:43:38.000000000","message":"Change this please to Related-Bug","commit_id":"8565dc8e8aa9459da75d4d4430e764dcc99cfd28"}],"neutron_tempest_plugin/api/base.py":[{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d529916ce18bfb6b54a078ad5aa5588ba664e12","unresolved":false,"context_lines":[{"line_number":801,"context_line":"        client.delete_trunk(trunk[\u0027id\u0027])"},{"line_number":802,"context_line":""},{"line_number":803,"context_line":"    @classmethod"},{"line_number":804,"context_line":"    def delete_trunk_without_port_detached(cls, trunk, client\u003dNone):"},{"line_number":805,"context_line":"        \"\"\"Delete network trunk without unbound parent port"},{"line_number":806,"context_line":""},{"line_number":807,"context_line":"        :param trunk: dictionary containing trunk ID (trunk[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_76159e94","line":804,"updated":"2018-11-06 14:40:46.000000000","message":"Instead of creating a new method copying half of the code modify existing delete_trunk method adding a boolean parameter to allow skipping the code you want to disable:\n\n  @classmethod\n  def delete_trunk(cls, trunk, client\u003dNone, detach_parent_port\u003dTrue):\n    \n    ...\n\n    if detach_parent_port and not is_parent_port_detached():\n       ...","commit_id":"c3b2315cf2e8add4000b0a23b1bf3afd308f00d3"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d529916ce18bfb6b54a078ad5aa5588ba664e12","unresolved":false,"context_lines":[{"line_number":820,"context_line":"                                     trunk[\u0027sub_ports\u0027])"},{"line_number":821,"context_line":""},{"line_number":822,"context_line":"        client.delete_trunk(trunk[\u0027id\u0027])"},{"line_number":823,"context_line":"        cls.trunks.remove(trunk)"},{"line_number":824,"context_line":""},{"line_number":825,"context_line":"class BaseAdminNetworkTest(BaseNetworkTest):"},{"line_number":826,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_f6cc4e34","line":823,"range":{"start_line":823,"start_character":0,"end_line":823,"end_character":32},"updated":"2018-11-06 14:40:46.000000000","message":"Why you remove trunk from the list? Once the trunk has been deleted any of above method would simply raise NotFound exception, the exception would be captured and therefore this is not necessary. Is it?","commit_id":"c3b2315cf2e8add4000b0a23b1bf3afd308f00d3"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"0b30c3e9f400443d1f4ba986be6087d79468125c","unresolved":false,"context_lines":[{"line_number":769,"context_line":""},{"line_number":770,"context_line":"        :param trunk: dictionary containing trunk ID (trunk[\u0027id\u0027])"},{"line_number":771,"context_line":""},{"line_number":772,"context_line":"        :param client: client to be used for connecting to networking service"},{"line_number":773,"context_line":"        \"\"\""},{"line_number":774,"context_line":"        client \u003d client or trunk.get(\u0027client\u0027) or cls.client"},{"line_number":775,"context_line":"        trunk.update(client.show_trunk(trunk[\u0027id\u0027])[\u0027trunk\u0027])"}],"source_content_type":"text/x-python","patch_set":12,"id":"3f79a3b5_5ab13503","line":772,"updated":"2018-12-11 21:13:08.000000000","message":"You should add doc string for this new parameter","commit_id":"1c9f40b96b7ae2722ef39e10e73a22ecab454c6c"}],"neutron_tempest_plugin/config.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"756cebe96125cdf2b62c6d187fa77885e2846478","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                    \u0027\"mtu\":\u003cMTU\u003e - integer \u0027"},{"line_number":54,"context_line":"                    \u0027\"cidr\"\u003cSUBNET/MASK\u003e - string \u0027"},{"line_number":55,"context_line":"                    \u0027\"provider:segmentation_id\":\u003cVLAN_ID\u003e - integer\u0027),"},{"line_number":56,"context_line":"    cfg.StrOpt(\u0027q_agent\u0027,"},{"line_number":57,"context_line":"               default\u003dNone,"},{"line_number":58,"context_line":"               help\u003d\u0027Agent used for devstack@q-agt.service\u0027),"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_42233c58","line":56,"updated":"2018-11-19 10:19:02.000000000","message":"do we need another config option? Can\u0027t we just list agent\u0027s with Neutron API and skip test if there is no linuxbridge agents?","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4fcacb02676a5149f2d8741ec1cad59eb1428901","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                    \u0027\"mtu\":\u003cMTU\u003e - integer \u0027"},{"line_number":54,"context_line":"                    \u0027\"cidr\"\u003cSUBNET/MASK\u003e - string \u0027"},{"line_number":55,"context_line":"                    \u0027\"provider:segmentation_id\":\u003cVLAN_ID\u003e - integer\u0027),"},{"line_number":56,"context_line":"    cfg.StrOpt(\u0027q_agent\u0027,"},{"line_number":57,"context_line":"               default\u003dNone,"},{"line_number":58,"context_line":"               help\u003d\u0027Agent used for devstack@q-agt.service\u0027),"},{"line_number":59,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_d5437211","line":56,"in_reply_to":"3f79a3b5_42233c58","updated":"2018-11-20 06:43:30.000000000","message":"Slawek,\nThis config option is used to verify E2E flow of the fix: https://review.openstack.org/#/c/605589/, which is applied for agent like linux bridge which allows create/delete trunk on bound port. So setting this config option can help to skip test with other agent such as ovs agent. Do you think it make sense or any other better suggestion? Thanks!","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"d57e5ec38b9ae4f916ecccd65952650a64b56bc2","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                    \u0027\"mtu\":\u003cMTU\u003e - integer \u0027"},{"line_number":54,"context_line":"                    \u0027\"cidr\"\u003cSUBNET/MASK\u003e - string \u0027"},{"line_number":55,"context_line":"                    \u0027\"provider:segmentation_id\":\u003cVLAN_ID\u003e - integer\u0027),"},{"line_number":56,"context_line":"    cfg.StrOpt(\u0027q_agent\u0027,"},{"line_number":57,"context_line":"               default\u003dNone,"},{"line_number":58,"context_line":"               help\u003d\u0027Agent used for devstack@q-agt.service\u0027),"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    # Option for feature to connect via SSH to VMs using an intermediate SSH"},{"line_number":61,"context_line":"    # server"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f79a3b5_c62587ae","line":58,"range":{"start_line":56,"start_character":4,"end_line":58,"end_character":61},"updated":"2018-11-28 08:16:10.000000000","message":"Another small thing: to make the life of the user easier choices would be good to add here, like:\ndefault\u003dNone,\nchoices\u003d[\u0027linuxbridge\u0027, \u0027ovs\u0027, \u0027sriov\u0027],","commit_id":"ef386f0df27b38b2906a30e49abf4e1fd208976b"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"b7471b0fa76a6f5580b2300c0c619b02881f03aa","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                    \u0027\"mtu\":\u003cMTU\u003e - integer \u0027"},{"line_number":54,"context_line":"                    \u0027\"cidr\"\u003cSUBNET/MASK\u003e - string \u0027"},{"line_number":55,"context_line":"                    \u0027\"provider:segmentation_id\":\u003cVLAN_ID\u003e - integer\u0027),"},{"line_number":56,"context_line":"    cfg.StrOpt(\u0027q_agent\u0027,"},{"line_number":57,"context_line":"               default\u003dNone,"},{"line_number":58,"context_line":"               help\u003d\u0027Agent used for devstack@q-agt.service\u0027),"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    # Option for feature to connect via SSH to VMs using an intermediate SSH"},{"line_number":61,"context_line":"    # server"}],"source_content_type":"text/x-python","patch_set":11,"id":"3f79a3b5_0684dfad","line":58,"range":{"start_line":56,"start_character":4,"end_line":58,"end_character":61},"in_reply_to":"3f79a3b5_c62587ae","updated":"2018-11-28 08:54:47.000000000","message":"@Lajos, Thanks much for the comments. Update the code as your suggestion, thanks!","commit_id":"ef386f0df27b38b2906a30e49abf4e1fd208976b"}],"neutron_tempest_plugin/scenario/test_trunk.py":[{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d529916ce18bfb6b54a078ad5aa5588ba664e12","unresolved":false,"context_lines":[{"line_number":306,"context_line":""},{"line_number":307,"context_line":"        # Delete the trunks"},{"line_number":308,"context_line":"        for server in servers:"},{"line_number":309,"context_line":"            self.delete_trunk_without_port_detached(server[\u0027trunk\u0027])"},{"line_number":310,"context_line":"            LOG.debug(\"Trunk %s is deleted.\", server[\u0027trunk\u0027][\u0027id\u0027])"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        # Ping from server1 to server2 via parent port should still be success after trunk deleted"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_764d9e91","line":309,"range":{"start_line":309,"start_character":12,"end_line":309,"end_character":68},"updated":"2018-11-06 14:40:46.000000000","message":"Call instead below method:\n  self.delete_trunk(server[\u0027trunk\u0027], detach_parent_port\u003dFalse)","commit_id":"c3b2315cf2e8add4000b0a23b1bf3afd308f00d3"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"165b668695ee593a3d1a9c658b1dc9e8d811a659","unresolved":false,"context_lines":[{"line_number":302,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":303,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":304,"context_line":"            should_succeed\u003dTrue"},{"line_number":305,"context_line":"        )"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"        # Delete the trunks"},{"line_number":308,"context_line":"        for server in servers:"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_20a7d5bd","line":305,"updated":"2018-11-06 20:21:23.000000000","message":"@Huifeng,\n\nSee if it makes sense to you: in here, we can do one more connectivity check by pinging from server1 to server2 via the vlan interface. This should succeed whenever the trunk is not deleted.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"165b668695ee593a3d1a9c658b1dc9e8d811a659","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_a0920554","line":317,"updated":"2018-11-06 20:21:23.000000000","message":"As I commented in line #305, we can do one more connectivity check by pinging from server1 to server2 via the vlan interface. This should fail since the trunk is deleted.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"cc6a97a6b312542d08af42543eb15a500595077f","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_1ae1c4fd","line":317,"in_reply_to":"3f79a3b5_03c8914a","updated":"2018-11-08 06:24:27.000000000","message":"Initial investigation in my local environment shows the trunk had been really deleted and the tap device created for the vlan interface are also deleted. Looks it may be another issue for LB, I will do more investigation and may submitted a new bug if required. To not blocking this fix, I\u0027ll remove the check first, does it make sense? thanks!","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"ab48e26eb4b8cc7f6db6679e36c49d8d6a3b77c1","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_3456215f","line":317,"in_reply_to":"3f79a3b5_0a470ba6","updated":"2018-11-24 04:20:33.000000000","message":"@Huifeng,\n\nI see. Linuxbridge is indeed a vlan transparent driver so your observation sounds valid.\n\nSo we observed that subports can still connect to each other because they are vlan interfaces inside VMs that belong to the same parent network. However, could we work around this by modifying the setup a little. For example, we can create three VMs (VM1, VM2, VM3). VM1 boot with the trunk parent port and subport. VM2 and VM3 boot with normal ports. Then, after the trunk is deleted, VM1 should still be able to ping VM2 but shouldn\u0027t be able to ping VM3. Is it correct?","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"f12e23138305ebce2cb4f9dc1a03a93a7568d13a","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_fd4dd06f","line":317,"in_reply_to":"3f79a3b5_14c68515","updated":"2018-11-27 01:46:02.000000000","message":"@Hongbin, yes, it is a good idea! Updated the test flow based on your suggestion and please help to review again, thanks!","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"2c3c3cc0fc8da02117c1d3e74c2484dc11fb5451","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_274c923e","line":317,"in_reply_to":"3f79a3b5_1ae1c4fd","updated":"2018-11-09 03:05:39.000000000","message":"@Hongbin, It looks like to be a linux bridge limitation or by design behavior for the issue (e.g. the subport can still be connected after all trunks deleted)\n\nTO my understanding, Linux bridge leverages linux ethernet bridge (e.g. brctl addbr \u003cname\u003e), virtual link (e.g. ip link add link \u003cdev\u003e name \u003cvlan_dev\u003e type vlan id \u003cvlan id\u003e to support trunk feature. In my test environment (e.g. the 2 VMs are in the same host), the bridge and tap device status (e.g. run \u0027brctl show\u0027 in host) like below which will impact the ping result.\n1. create VM1 and VM2 with parent_port1, parent_port2\nbr1: tap\u003cparent_port1\u003e, tap\u003cparent_port2\u003e\n\nPing parent port (non-vlan interface) success\nping parent_port2 (VM2) from parent_port1 (VM1) will go through br1 (in host)\n\n2. create trunk1 with sub_port1 added for parent_port1, and trunk2 with sub_port2 add for parent_port2\nbr1: tap\u003cparent_port1\u003e, tap\u003cparent_port2\u003e\nbr2: tap\u003csub_port1\u003e@tap\u003cparent_port1\u003e, tap\u003csub_port2\u003e@tap\u003cparent_port2\u003e\n\nPing parent port (non-vlan interface)- success\nping parent_port2 (VM2) from parent_port1 (VM1) will go through br1 (in host)\n\nPing sub port (vlan interface)- success\nping sub_port2 (VM2) from sub_port1 (VM1) will go through br2 (in host)\n\n3. delete trunk\nif deleting both trunks, the sub_ports can still be connected, but if delete only one trunk, the sub_ports will not be connected\n\n3.1 delete both trunks (e.g. trunk1 and trunk2)\nbr1: tap\u003cparent_port1\u003e, tap\u003cparent_port2\u003e\nbr2: \n\nPing parent port (non-vlan interface)- success\nping parent_port2 (VM2) from parent_port1 (VM1) will go through br1 (in host)\n\nPing sub port (vlan interface)- will still be success\nping sub_port2 (VM2) from sub_port1 (VM1), it can still be success due to the vlan tag package can pass through br1 (checked by tcpdump monitoring in host)\n\n3.2 delete only trunk1\nbr1: tap\u003cparent_port1\u003e, tap\u003cparent_port2\u003e\nbr2: tap\u003csub_port2\u003e@tap\u003cparent_port2\u003e\nPing parent port (non-vlan interface)- success\nping parent_port2 (VM2) from parent_port1 (VM1) will go through br1 (in host)\n\nPing sub port (vlan interface)- will fail\nping sub_port2 (VM2) from sub_port1 (VM1), the ping request will go to br1 then reached VM2, but the ping reply from VM2 will go to br2 but can not find way to VM1\nping sub_port1 (VM1) from sub_port2 (VM2), the ping request will go to br2, but no path in br2 to VM1 can be found.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"616e14563d3bd6665fd9510c5b4f19d9d206e9ac","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_8a356245","line":317,"in_reply_to":"3f79a3b5_274c923e","updated":"2018-11-09 16:27:12.000000000","message":"@Huifeng,\n\nThanks for the detailed information. I would have to get back to this after the berlin summit (one or two weeks later). Need sometime to setup the environment and verify the scenario you described, or you can ping other reviewers to look into this if you want.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"57f213f484aa1d2e7ea470f512bca460624fb98e","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_03c8914a","line":317,"in_reply_to":"3f79a3b5_31187e70","updated":"2018-11-07 15:13:53.000000000","message":"The Zuul check result showed the vlan interface is still connected as well. That means the trunk deletion doesn\u0027t work as expected. Need to figure out why..","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"266ca8cf89fc66aa0ac4384be3cf6a5ce19a99f3","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_14c68515","line":317,"in_reply_to":"3f79a3b5_3456215f","updated":"2018-11-24 04:27:04.000000000","message":"I mean if VM2 boot with normal port in parent network and VM3 boot with normal port in vlan network. Then, the subport in VM1 should be able to reach VM3 as long as the trunk is not deleted. If the trunk is deleted and VM1 couldn\u0027t reach VM3, it means the trunk deletion works correctly. Does it make sense?","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"ad8df48b72642bd6edaa6f8dac5e70a412df62d9","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_0a470ba6","line":317,"in_reply_to":"3f79a3b5_8a356245","updated":"2018-11-10 01:52:48.000000000","message":"@Hongbin,\n\nThanks much for the check and please let me know the result of verification (BTW, just FYI, my test environment: both VM1 and VM2 in the same host, parent-port/sub-port share the same mac address). \nAnother test you may help to verify is that even without using neutron trunk API, if setting up connection through neutron API between VM1 and VM2(assume ens3 is network interface in VM), after manually creating vlan interface in VM, e.g. ens3.100 over ens3, the ens3.100 interface in VM1 and VM2 can also ping successfully (so it looks to be vlan_transparent feature after both trunks deleted?).","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"e487d5ffcc44bd691288112dd8a84d125a6ab41d","unresolved":false,"context_lines":[{"line_number":314,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":315,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":316,"context_line":"            should_succeed\u003dTrue"},{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_31187e70","line":317,"in_reply_to":"3f79a3b5_a0920554","updated":"2018-11-07 08:01:23.000000000","message":"Looks like the subport still can be connected after trunk deleted in my environment (which all VMs in the same hosts), will check the result of upstream\u0027s Zuul check.","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"165b668695ee593a3d1a9c658b1dc9e8d811a659","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_20a115f7","line":320,"range":{"start_line":320,"start_character":20,"end_line":320,"end_character":46},"updated":"2018-11-06 20:21:23.000000000","message":"It is better to use addCleanup instead. In particular, you can do something like this in line #295:\n\n        rule \u003d self.client.create_security_group_rule(...)\n        self.addCleanup(self.client.delete_security_group_rule,\n                        rule[\u0027security_group_rule\u0027][\u0027id\u0027])","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"165b668695ee593a3d1a9c658b1dc9e8d811a659","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        )"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        # delete group rule"},{"line_number":320,"context_line":"        self.client.delete_security_group_rule (rule[\u0027security_group_rule\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_dd05aa16","line":320,"range":{"start_line":320,"start_character":46,"end_line":320,"end_character":47},"updated":"2018-11-06 20:21:23.000000000","message":"space?","commit_id":"447cb899e14b6d144abe7928f6f666a64bb2e8f8"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"756cebe96125cdf2b62c6d187fa77885e2846478","unresolved":false,"context_lines":[{"line_number":323,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":324,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":325,"context_line":"            should_succeed\u003dTrue"},{"line_number":326,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_22ae40a1","line":326,"updated":"2018-11-19 10:19:02.000000000","message":"this test looks very similar to test_subport_connectivity() above. Maybe You could just add some additional operation/check to this test instead of creating new one? It would IMO safe some time which now it has to spent on spawning VMs and preparing environment for every test.","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"4fcacb02676a5149f2d8741ec1cad59eb1428901","unresolved":false,"context_lines":[{"line_number":323,"context_line":"            servers[0][\u0027ssh_client\u0027],"},{"line_number":324,"context_line":"            servers[1][\u0027parentport\u0027][\u0027fixed_ips\u0027][0][\u0027ip_address\u0027],"},{"line_number":325,"context_line":"            should_succeed\u003dTrue"},{"line_number":326,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_95fbbabd","line":326,"in_reply_to":"3f79a3b5_22ae40a1","updated":"2018-11-20 06:43:30.000000000","message":"Slawek,\nThanks for the comments, this test is special for linux bridge agent and it has some differences compare to test_subport_connectivity(): it will delete trunk on bound port (which is not allowed for ovs agent) and verify the connectivity of both parent/sub port instead of sub-port only (for ovs agent, due to it need unbound parent port first, so after trunk deleted, the parent port should not be connected also). \nor do you think it is make sense to add \n@testtools.skipUnless(\n          CONF.neutron_plugin_options.q_agent is not \"linuxbridge\"\nto skip test_subport_connectivity() when running on linux bridge agent test to save test time?","commit_id":"6bcbce0d1dfa87320c4b58f1f6c7fb843c622c05"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"057857952c967c88b77ae78cff6efb3ed0c073c8","unresolved":false,"context_lines":[{"line_number":287,"context_line":"    @testtools.skipUnless("},{"line_number":288,"context_line":"          CONF.neutron_plugin_options.advanced_image_ref,"},{"line_number":289,"context_line":"          \"Advanced image is required to run this test.\")"},{"line_number":290,"context_line":"    @testtools.skipUnless("},{"line_number":291,"context_line":"          CONF.neutron_plugin_options.q_agent \u003d\u003d \"linuxbridge\","},{"line_number":292,"context_line":"          \"Linux bridge agent is required to run this test.\")"},{"line_number":293,"context_line":"    @decorators.idempotent_id(\u0027d61cbdf6-1896-491c-b4b4-871caf7fbffe\u0027)"},{"line_number":294,"context_line":"    def test_parent_port_connectivity_after_trunk_deleted(self):"},{"line_number":295,"context_line":"        vlan_tag \u003d 10"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        vlan_network \u003d self.create_network()"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_65d83f7c","line":294,"range":{"start_line":290,"start_character":4,"end_line":294,"end_character":64},"updated":"2018-11-27 12:43:38.000000000","message":"Do you plan to add more tests/ or extend this one to work with other agents as well?\nIf not I would think of a solution to detect the agent type (I assume that is not that easy, even if via the API you can fetch the living agents, and with port vnic_type you can affect the bonding to chose linuxbridge for example.)\n\nAnother thing: if this test run against linuxbridge only, than the test name should contain some information for this like: test_parent_port_connectivity_after_trunk_deleted_lb...","commit_id":"8565dc8e8aa9459da75d4d4430e764dcc99cfd28"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"a922cdbaaf4c666170b3a0c57608ae0c35d88e6e","unresolved":false,"context_lines":[{"line_number":287,"context_line":"    @testtools.skipUnless("},{"line_number":288,"context_line":"          CONF.neutron_plugin_options.advanced_image_ref,"},{"line_number":289,"context_line":"          \"Advanced image is required to run this test.\")"},{"line_number":290,"context_line":"    @testtools.skipUnless("},{"line_number":291,"context_line":"          CONF.neutron_plugin_options.q_agent \u003d\u003d \"linuxbridge\","},{"line_number":292,"context_line":"          \"Linux bridge agent is required to run this test.\")"},{"line_number":293,"context_line":"    @decorators.idempotent_id(\u0027d61cbdf6-1896-491c-b4b4-871caf7fbffe\u0027)"},{"line_number":294,"context_line":"    def test_parent_port_connectivity_after_trunk_deleted(self):"},{"line_number":295,"context_line":"        vlan_tag \u003d 10"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"        vlan_network \u003d self.create_network()"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_85d55bba","line":294,"range":{"start_line":290,"start_character":4,"end_line":294,"end_character":64},"in_reply_to":"3f79a3b5_65d83f7c","updated":"2018-11-27 12:59:11.000000000","message":"@Lajos, yes, it is for linux bridge now. and it is not easy to detect the agent type at runtime, so just simply use the configuration to enable it for linux bridge environment only.\nand change the function name as your suggestion which is make more sense, thanks!","commit_id":"8565dc8e8aa9459da75d4d4430e764dcc99cfd28"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"057857952c967c88b77ae78cff6efb3ed0c073c8","unresolved":false,"context_lines":[{"line_number":340,"context_line":"            should_succeed\u003dTrue"},{"line_number":341,"context_line":"        )"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        # Delete the trunks"},{"line_number":344,"context_line":"        self.delete_trunk(trunk_network_server[\u0027trunk\u0027],"},{"line_number":345,"context_line":"            detach_parent_port\u003dFalse)"},{"line_number":346,"context_line":"        LOG.debug(\"Trunk %s is deleted.\", trunk_network_server[\u0027trunk\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"3f79a3b5_4512e3ff","line":343,"range":{"start_line":343,"start_character":21,"end_line":343,"end_character":27},"updated":"2018-11-27 12:43:38.000000000","message":"trunk","commit_id":"8565dc8e8aa9459da75d4d4430e764dcc99cfd28"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"845def0a7f2a644bf19c13e4b9e52e06a7ab5109","unresolved":false,"context_lines":[{"line_number":301,"context_line":"        trunk_network_server \u003d self._create_server_with_port_and_subport("},{"line_number":302,"context_line":"            vlan_network, vlan_tag, use_advanced_image\u003dTrue)"},{"line_number":303,"context_line":"        normal_network_server \u003d self._create_server_with_network("},{"line_number":304,"context_line":"            self.network, use_advanced_image\u003dTrue)"},{"line_number":305,"context_line":"        vlan_network_server \u003d self._create_server_with_network("},{"line_number":306,"context_line":"            vlan_network, use_advanced_image\u003dTrue)"},{"line_number":307,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_1403b7be","line":304,"range":{"start_line":304,"start_character":26,"end_line":304,"end_character":44},"updated":"2018-11-27 16:46:02.000000000","message":"Nit: is it necessary to use advanced image here? This VM won\u0027t configure the vlan interface so it appears to me that normal image is enough.","commit_id":"00ef22748cc63871cf796af656ef1b4fd4e7d814"},{"author":{"_account_id":29093,"name":"Le, Huifeng","email":"huifeng.le@intel.com","username":"hle"},"change_message_id":"fb29be0ed734627038a91833a5ae7ece87d490ab","unresolved":false,"context_lines":[{"line_number":301,"context_line":"        trunk_network_server \u003d self._create_server_with_port_and_subport("},{"line_number":302,"context_line":"            vlan_network, vlan_tag, use_advanced_image\u003dTrue)"},{"line_number":303,"context_line":"        normal_network_server \u003d self._create_server_with_network("},{"line_number":304,"context_line":"            self.network, use_advanced_image\u003dTrue)"},{"line_number":305,"context_line":"        vlan_network_server \u003d self._create_server_with_network("},{"line_number":306,"context_line":"            vlan_network, use_advanced_image\u003dTrue)"},{"line_number":307,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_376cab03","line":304,"range":{"start_line":304,"start_character":26,"end_line":304,"end_character":44},"in_reply_to":"3f79a3b5_1403b7be","updated":"2018-11-28 02:01:15.000000000","message":"@Hongbin, Yes, it is no need to use advanced image, updated the code to simply the test process. Please help to review again.\nBTW, could you please also help to review and comment for https://review.openstack.org/#/c/605589/, thanks much!","commit_id":"00ef22748cc63871cf796af656ef1b4fd4e7d814"},{"author":{"_account_id":27654,"name":"Hongbin Lu","email":"kira034@163.com","username":"hongbin.lu"},"change_message_id":"845def0a7f2a644bf19c13e4b9e52e06a7ab5109","unresolved":false,"context_lines":[{"line_number":303,"context_line":"        normal_network_server \u003d self._create_server_with_network("},{"line_number":304,"context_line":"            self.network, use_advanced_image\u003dTrue)"},{"line_number":305,"context_line":"        vlan_network_server \u003d self._create_server_with_network("},{"line_number":306,"context_line":"            vlan_network, use_advanced_image\u003dTrue)"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        self._wait_for_server(trunk_network_server, advanced_image\u003dTrue)"},{"line_number":309,"context_line":"        # Configure VLAN interfaces on server"}],"source_content_type":"text/x-python","patch_set":10,"id":"3f79a3b5_94eee7fb","line":306,"range":{"start_line":306,"start_character":26,"end_line":306,"end_character":44},"updated":"2018-11-27 16:46:02.000000000","message":"Ditto","commit_id":"00ef22748cc63871cf796af656ef1b4fd4e7d814"}]}
