)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-09-27 05:52:38 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"fullstack: VLAN aware VMs test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Patch tests basic life-cycle of a trunk associated with a port. Test"},{"line_number":10,"context_line":"creates a trunk with one subport - this tests interaction between"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"5a8bc5a2_5af814c5","line":7,"updated":"2016-09-27 21:54:12.000000000","message":"This is great work and provides us coverage we otherwise do not and could not have. The only remaining sticking point is that we still don\u0027t have coverage for Nova\u0027s plugging code (Which it now gets from os-vif?)\n\nDo we have plans to use the same code?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"9c9d7bbab4c00769960679fd1b701ae47a92073e","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Jakub Libosvar \u003clibosvar@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-09-27 05:52:38 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"fullstack: VLAN aware VMs test"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Patch tests basic life-cycle of a trunk associated with a port. Test"},{"line_number":10,"context_line":"creates a trunk with one subport - this tests interaction between"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"3a98d1f4_66e51436","line":7,"in_reply_to":"5a8bc5a2_5af814c5","updated":"2016-09-29 08:17:45.000000000","message":"Formally we don\u0027t. Though I think I have already mention this maybe in in this very same patch series.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"agent and ovsdb handler that calls via RPC to server."},{"line_number":12,"context_line":"Later a new subport is added which tests RPC interaction between"},{"line_number":13,"context_line":"server and agent. Then deletes the first created subport. Finally trunk"},{"line_number":14,"context_line":"is removed and checked that no patch ports remaind on the integration"},{"line_number":15,"context_line":"bridge."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Future work:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"5a8bc5a2_c65e1379","line":14,"updated":"2016-09-27 21:54:12.000000000","message":"remaind -\u003e remain","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"52094ed8dff138dbab514dfff9d06615046e6dee","unresolved":false,"context_lines":[{"line_number":11,"context_line":"agent and ovsdb handler that calls via RPC to server."},{"line_number":12,"context_line":"Later a new subport is added which tests RPC interaction between"},{"line_number":13,"context_line":"server and agent. Then deletes the first created subport. Finally trunk"},{"line_number":14,"context_line":"is removed and checked that no patch ports remaind on the integration"},{"line_number":15,"context_line":"bridge."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Future work:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"3a98d1f4_df0b3f7c","line":14,"in_reply_to":"5a8bc5a2_c65e1379","updated":"2016-09-28 13:23:48.000000000","message":"Done","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"}],"neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"e7ecd45780261dfc574c763066450d68bbe05555","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            self._update_trunk_metadata("},{"line_number":284,"context_line":"                trunk_bridge, parent_port, trunk_id, subport_ids)"},{"line_number":285,"context_line":"        except RuntimeError as e:"},{"line_number":286,"context_line":"            LOG.error(_LE(\"Failed to store metadata for trunk %(trunk_id)s: \""},{"line_number":287,"context_line":"                          \"%(reason)s\"), {\u0027trunk_id\u0027: trunk_id, \u0027reason\u0027: e})"},{"line_number":288,"context_line":"            # NOTE(status_police): Trunk bridge has stale metadata now, it"}],"source_content_type":"text/x-python","patch_set":17,"id":"5a8bc5a2_c92aa42f","line":285,"updated":"2016-09-27 20:54:20.000000000","message":"incidentally these were the only two places that did not log the error message.","commit_id":"26d0a5910f8e9102636b42492971f2051a897c42"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"e22bc54b5f7fc9601c3979ca40d8e8700c6e875a","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            self._update_trunk_metadata("},{"line_number":284,"context_line":"                trunk_bridge, parent_port, trunk_id, subport_ids)"},{"line_number":285,"context_line":"        except RuntimeError as e:"},{"line_number":286,"context_line":"            LOG.error(_LE(\"Failed to store metadata for trunk %(trunk_id)s: \""},{"line_number":287,"context_line":"                          \"%(reason)s\"), {\u0027trunk_id\u0027: trunk_id, \u0027reason\u0027: e})"},{"line_number":288,"context_line":"            # NOTE(status_police): Trunk bridge has stale metadata now, it"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a98d1f4_721df50e","line":285,"updated":"2016-09-28 15:35:10.000000000","message":"feel free to revert these changes, I can roll them out into [1]. Sorry if I tainted your patch ;)\n\n[1] https://review.openstack.org/#/c/378081/","commit_id":"a9de95c7eeeac2adcce88ab3e1d1e572fd6157a4"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c6b62ac5c946efd73b5cff635588d5145a4a95b4","unresolved":false,"context_lines":[{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            self._update_trunk_metadata("},{"line_number":284,"context_line":"                trunk_bridge, parent_port, trunk_id, subport_ids)"},{"line_number":285,"context_line":"        except RuntimeError as e:"},{"line_number":286,"context_line":"            LOG.error(_LE(\"Failed to store metadata for trunk %(trunk_id)s: \""},{"line_number":287,"context_line":"                          \"%(reason)s\"), {\u0027trunk_id\u0027: trunk_id, \u0027reason\u0027: e})"},{"line_number":288,"context_line":"            # NOTE(status_police): Trunk bridge has stale metadata now, it"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a98d1f4_6d1d1a0f","line":285,"in_reply_to":"3a98d1f4_721df50e","updated":"2016-09-28 15:48:17.000000000","message":"Done","commit_id":"a9de95c7eeeac2adcce88ab3e1d1e572fd6157a4"}],"neutron/tests/common/conn_testers.py":[{"author":{"_account_id":9200,"name":"IWAMOTO Toshihiro","email":"iwamoto@valinux.co.jp","username":"toshii"},"change_message_id":"53926bea2374c772223d35ff77b185719fc3a205","unresolved":false,"context_lines":[{"line_number":465,"context_line":""},{"line_number":466,"context_line":"        self._ip_vlan \u003d ip_cidr.partition(\u0027/\u0027)[0]"},{"line_number":467,"context_line":"        net_helpers.create_vlan_interface("},{"line_number":468,"context_line":"            self._vm.namespace, self._vm.port.name, self._ip_vlan,"},{"line_number":469,"context_line":"            netaddr.IPNetwork(ip_cidr), vlan)"},{"line_number":470,"context_line":"        ip_cidr \u003d net_helpers.increment_ip_cidr(ip_cidr, 1)"},{"line_number":471,"context_line":"        self._peer2 \u003d self.useFixture(machine_fixtures.FakeMachine("}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_b500b602","line":468,"updated":"2016-09-16 08:25:53.000000000","message":"Shouldn\u0027t we keep the prefixlen so that we get correct netmask for vlan interface?","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"7aaec0e519d6ce7d934797579e19fe445830877b","unresolved":false,"context_lines":[{"line_number":465,"context_line":""},{"line_number":466,"context_line":"        self._ip_vlan \u003d ip_cidr.partition(\u0027/\u0027)[0]"},{"line_number":467,"context_line":"        net_helpers.create_vlan_interface("},{"line_number":468,"context_line":"            self._vm.namespace, self._vm.port.name, self._ip_vlan,"},{"line_number":469,"context_line":"            netaddr.IPNetwork(ip_cidr), vlan)"},{"line_number":470,"context_line":"        ip_cidr \u003d net_helpers.increment_ip_cidr(ip_cidr, 1)"},{"line_number":471,"context_line":"        self._peer2 \u003d self.useFixture(machine_fixtures.FakeMachine("}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_1b85cdcd","line":468,"in_reply_to":"7a8ec9b2_b500b602","updated":"2016-09-19 09:36:25.000000000","message":"Done","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"}],"neutron/tests/common/machine_fixtures.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5f74cf007b14a74b1acf7aac7c22674fdd37ee48","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        return True"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def no_ping_predicate(self, dst_ip):"},{"line_number":62,"context_line":"        try:"},{"line_number":63,"context_line":"            self.assert_ping(dst_ip)"},{"line_number":64,"context_line":"        except RuntimeError:"},{"line_number":65,"context_line":"            return True"},{"line_number":66,"context_line":"        return False"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def block_until_ping(self, dst_ip):"},{"line_number":69,"context_line":"        predicate \u003d functools.partial(self.ping_predicate, dst_ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_19b107e2","line":66,"range":{"start_line":62,"start_character":8,"end_line":66,"end_character":20},"updated":"2016-09-14 16:06:46.000000000","message":"Maybe\n\n return not ping_predicate(dst_ip)","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"566f1f007c2f3ce88fdd75da81d89967c65707b3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        return True"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def no_ping_predicate(self, dst_ip):"},{"line_number":62,"context_line":"        try:"},{"line_number":63,"context_line":"            self.assert_ping(dst_ip)"},{"line_number":64,"context_line":"        except RuntimeError:"},{"line_number":65,"context_line":"            return True"},{"line_number":66,"context_line":"        return False"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def block_until_ping(self, dst_ip):"},{"line_number":69,"context_line":"        predicate \u003d functools.partial(self.ping_predicate, dst_ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_998fc122","line":66,"range":{"start_line":62,"start_character":8,"end_line":66,"end_character":20},"in_reply_to":"7a8ec9b2_19b107e2","updated":"2016-09-15 00:27:02.000000000","message":"+1 to that it would be same and no need to repeat the code,\nactually this function is not needed.\nif you use not self.ping_predicate(self, dst_ip)","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"21513c37d53d5ddc8fac6fae962766169d60dd6d","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        return True"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def no_ping_predicate(self, dst_ip):"},{"line_number":62,"context_line":"        try:"},{"line_number":63,"context_line":"            self.assert_ping(dst_ip)"},{"line_number":64,"context_line":"        except RuntimeError:"},{"line_number":65,"context_line":"            return True"},{"line_number":66,"context_line":"        return False"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    def block_until_ping(self, dst_ip):"},{"line_number":69,"context_line":"        predicate \u003d functools.partial(self.ping_predicate, dst_ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_e0ce3ab3","line":66,"range":{"start_line":62,"start_character":8,"end_line":66,"end_character":20},"in_reply_to":"7a8ec9b2_998fc122","updated":"2016-09-15 07:39:24.000000000","message":"I still need this method.","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"566f1f007c2f3ce88fdd75da81d89967c65707b3","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def block_until_no_ping(self, dst_ip):"},{"line_number":73,"context_line":"        predicate \u003d functools.partial(self.no_ping_predicate, dst_ip)"},{"line_number":74,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def assert_ping(self, dst_ip):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_599459e1","line":73,"range":{"start_line":73,"start_character":38,"end_line":73,"end_character":60},"updated":"2016-09-15 00:27:02.000000000","message":"not self.ping_predicate ??","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"21513c37d53d5ddc8fac6fae962766169d60dd6d","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def block_until_no_ping(self, dst_ip):"},{"line_number":73,"context_line":"        predicate \u003d functools.partial(self.no_ping_predicate, dst_ip)"},{"line_number":74,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def assert_ping(self, dst_ip):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_80d1f659","line":73,"range":{"start_line":73,"start_character":38,"end_line":73,"end_character":60},"in_reply_to":"7a8ec9b2_599459e1","updated":"2016-09-15 07:39:24.000000000","message":"no, first argument must be callable.","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a096813868ecd5ff6166b36f9a581ad17bc3c8fa","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    def block_until_no_ping(self, dst_ip):"},{"line_number":73,"context_line":"        predicate \u003d functools.partial(self.no_ping_predicate, dst_ip)"},{"line_number":74,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def assert_ping(self, dst_ip):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_039890bf","line":73,"range":{"start_line":73,"start_character":38,"end_line":73,"end_character":60},"in_reply_to":"7a8ec9b2_80d1f659","updated":"2016-09-15 08:03:13.000000000","message":"You\u0027re right, I could use lambda here","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"8bfc5ee20ab5a01ae78d1331bee2963e08333a1b","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        predicate \u003d functools.partial(self.ping_predicate, dst_ip)"},{"line_number":67,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def block_until_no_ping(self, dst_ip):"},{"line_number":70,"context_line":"        predicate \u003d functools.partial("},{"line_number":71,"context_line":"            lambda ip: not self.ping_predicate(ip), dst_ip)"},{"line_number":72,"context_line":"        utils.wait_until_true("}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_c57f5e64","line":69,"updated":"2016-09-15 22:19:09.000000000","message":"This is going to lengthen the test duration by 60 seconds every time it\u0027s used... We should probably use a significantly smaller timeout.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c56f597f1916aa72bab98c1ac1ad97bd053442c3","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        predicate \u003d functools.partial(self.ping_predicate, dst_ip)"},{"line_number":67,"context_line":"        utils.wait_until_true(predicate)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def block_until_no_ping(self, dst_ip):"},{"line_number":70,"context_line":"        predicate \u003d functools.partial("},{"line_number":71,"context_line":"            lambda ip: not self.ping_predicate(ip), dst_ip)"},{"line_number":72,"context_line":"        utils.wait_until_true("}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_08b07289","line":69,"in_reply_to":"7a8ec9b2_c57f5e64","updated":"2016-09-16 08:07:29.000000000","message":"It will lengthen only if the ping still passses. Once the ping is unsuccessful, it returns.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"}],"neutron/tests/common/net_helpers.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5f74cf007b14a74b1acf7aac7c22674fdd37ee48","unresolved":false,"context_lines":[{"line_number":239,"context_line":"def create_vlan_interface(namespace, port_name, ip_addr, network, vlan_tag):"},{"line_number":240,"context_line":"    \"\"\"Create a VLAN interface in namespace with IP address."},{"line_number":241,"context_line":""},{"line_number":242,"context_line":"    :param namespace:"},{"line_number":243,"context_line":"    :param port_name:"},{"line_number":244,"context_line":"    :param ip_cidr:"},{"line_number":245,"context_line":"    :param network:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_b9c0132c","line":242,"updated":"2016-09-14 16:06:46.000000000","message":"Missing docs","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":252,"context_line":"    dev.addr.add(str(ip_address))"},{"line_number":253,"context_line":"    dev.link.set_address(mac_address)"},{"line_number":254,"context_line":"    dev.link.set_up()"},{"line_number":255,"context_line":"    dev.route.add_route(cidr\u003dstr(ip_address.cidr), via\u003dstr(ip_address.ip))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    return dev"},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_69c0b07d","line":255,"updated":"2016-09-27 21:54:12.000000000","message":"For the record this wasn\u0027t done by add_vlan_interface_and_peer and it is now because it uses this new function.\n\nThis will replace this type of route:\n172.16.0.0/16 dev dummy  proto kernel  scope link  src 172.16.0.1\n\nWith this type of route:\n172.16.0.0/16 via 172.16.0.1 dev dummy\n\nCan you explain why this is needed?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":252,"context_line":"    dev.addr.add(str(ip_address))"},{"line_number":253,"context_line":"    dev.link.set_address(mac_address)"},{"line_number":254,"context_line":"    dev.link.set_up()"},{"line_number":255,"context_line":"    dev.route.add_route(cidr\u003dstr(ip_address.cidr), via\u003dstr(ip_address.ip))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    return dev"},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_83cdc788","line":255,"in_reply_to":"5a8bc5a2_69c0b07d","updated":"2016-09-28 10:42:11.000000000","message":"Hm, IIRC I didn\u0027t see any route for this network. Maybe I did something wrong previously. I\u0027ll remove this line. Thanks for catching this.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"52094ed8dff138dbab514dfff9d06615046e6dee","unresolved":false,"context_lines":[{"line_number":252,"context_line":"    dev.addr.add(str(ip_address))"},{"line_number":253,"context_line":"    dev.link.set_address(mac_address)"},{"line_number":254,"context_line":"    dev.link.set_up()"},{"line_number":255,"context_line":"    dev.route.add_route(cidr\u003dstr(ip_address.cidr), via\u003dstr(ip_address.ip))"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"    return dev"},{"line_number":258,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_2526d416","line":255,"in_reply_to":"5a8bc5a2_83cdc788","updated":"2016-09-28 13:23:48.000000000","message":"So apparently I used /32 netmask before for ip address which doesn\u0027t add any route.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"}],"neutron/tests/fullstack/resources/client.py":[{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"566f1f007c2f3ce88fdd75da81d89967c65707b3","unresolved":false,"context_lines":[{"line_number":176,"context_line":"    def create_trunk(self, tenant_id, port_id, name\u003dNone,"},{"line_number":177,"context_line":"                     admin_state_up\u003dNone, sub_ports\u003dNone, clean_subports\u003dTrue):"},{"line_number":178,"context_line":"        \"\"\"Create a trunk via API."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        :param tenant_id: ID of the tenant."},{"line_number":181,"context_line":"        :param port_id: Parent port of trunk."},{"line_number":182,"context_line":"        :param name: Name of the trunk."},{"line_number":183,"context_line":"        :param admin_state_up: Status of the trunk."},{"line_number":184,"context_line":"        :param sub_ports: List of subport dictionaries in format"},{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"},{"line_number":187,"context_line":"                 \u0027segmentation_id\u0027: \u003cVLAN tag\u003e}"},{"line_number":188,"context_line":"        :param clean_subports: Decide whether passed sub_ports should be"},{"line_number":189,"context_line":"                               removed when trunk is deleted."},{"line_number":190,"context_line":"        \"\"\""},{"line_number":191,"context_line":"        spec \u003d {"},{"line_number":192,"context_line":"            \u0027port_id\u0027: port_id,"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_eb3aa897","line":189,"range":{"start_line":179,"start_character":0,"end_line":189,"end_character":61},"updated":"2016-09-15 00:27:02.000000000","message":"consider adding a little description for return here","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"566f1f007c2f3ce88fdd75da81d89967c65707b3","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            \u0027tenant_id\u0027: tenant_id,"},{"line_number":242,"context_line":"            \u0027sub_ports\u0027: sub_ports,"},{"line_number":243,"context_line":"        }"},{"line_number":244,"context_line":"        return self.client.trunk_remove_subports(trunk_id, spec)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_eb3468fc","line":244,"range":{"start_line":244,"start_character":15,"end_line":244,"end_character":64},"updated":"2016-09-15 00:27:02.000000000","message":"before firing api isn\u0027t it better to make sure tenant_id and sub_ports are not \u0027\u0027 or None ?","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"21513c37d53d5ddc8fac6fae962766169d60dd6d","unresolved":false,"context_lines":[{"line_number":241,"context_line":"            \u0027tenant_id\u0027: tenant_id,"},{"line_number":242,"context_line":"            \u0027sub_ports\u0027: sub_ports,"},{"line_number":243,"context_line":"        }"},{"line_number":244,"context_line":"        return self.client.trunk_remove_subports(trunk_id, spec)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a8ec9b2_803816a2","line":244,"range":{"start_line":244,"start_character":15,"end_line":244,"end_character":64},"in_reply_to":"7a8ec9b2_eb3468fc","updated":"2016-09-15 07:39:24.000000000","message":"Why? What if you want to test passing \u0027\u0027 or None?","commit_id":"7dd0c622ea9d2debbc4e8b9a4a8d5542c8ce3d04"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"8bfc5ee20ab5a01ae78d1331bee2963e08333a1b","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"},{"line_number":187,"context_line":"                 \u0027segmentation_id\u0027: \u003cVLAN tag\u003e}"},{"line_number":188,"context_line":"        :param clean_subports: Decide whether passed sub_ports should be"},{"line_number":189,"context_line":"                               removed when trunk is deleted."},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        :return: Dictionary with trunk\u0027s data returned from Neutron API."}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_c5f67ef8","line":188,"updated":"2016-09-15 22:19:09.000000000","message":"Unused.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"7aaec0e519d6ce7d934797579e19fe445830877b","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"},{"line_number":187,"context_line":"                 \u0027segmentation_id\u0027: \u003cVLAN tag\u003e}"},{"line_number":188,"context_line":"        :param clean_subports: Decide whether passed sub_ports should be"},{"line_number":189,"context_line":"                               removed when trunk is deleted."},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        :return: Dictionary with trunk\u0027s data returned from Neutron API."}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_3e6b57b8","line":188,"in_reply_to":"7a8ec9b2_48a6fa53","updated":"2016-09-19 09:36:25.000000000","message":"Done","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c56f597f1916aa72bab98c1ac1ad97bd053442c3","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"},{"line_number":187,"context_line":"                 \u0027segmentation_id\u0027: \u003cVLAN tag\u003e}"},{"line_number":188,"context_line":"        :param clean_subports: Decide whether passed sub_ports should be"},{"line_number":189,"context_line":"                               removed when trunk is deleted."},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"        :return: Dictionary with trunk\u0027s data returned from Neutron API."}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_48a6fa53","line":188,"in_reply_to":"7a8ec9b2_c5f67ef8","updated":"2016-09-16 08:07:29.000000000","message":"Whoops","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        :param tenant_id: ID of the tenant."},{"line_number":181,"context_line":"        :param port_id: Parent port of trunk."},{"line_number":182,"context_line":"        :param name: Name of the trunk."},{"line_number":183,"context_line":"        :param admin_state_up: Status of the trunk."},{"line_number":184,"context_line":"        :param sub_ports: List of subport dictionaries in format"},{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_8e4932d3","line":183,"updated":"2016-09-20 17:55:40.000000000","message":"strictly speaking this is the admin_state of the trunk.","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        :param tenant_id: ID of the tenant."},{"line_number":181,"context_line":"        :param port_id: Parent port of trunk."},{"line_number":182,"context_line":"        :param name: Name of the trunk."},{"line_number":183,"context_line":"        :param admin_state_up: Status of the trunk."},{"line_number":184,"context_line":"        :param sub_ports: List of subport dictionaries in format"},{"line_number":185,"context_line":"                {\u0027port_id\u0027: \u003cID of neutron port for subport\u003e,"},{"line_number":186,"context_line":"                 \u0027segmentation_type\u0027: \u0027vlan\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_12cd0385","line":183,"in_reply_to":"7a8ec9b2_8e4932d3","updated":"2016-09-21 16:18:06.000000000","message":"Done","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"        trunk \u003d self.client.create_trunk({\u0027trunk\u0027: spec})[\u0027trunk\u0027]"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        self.addCleanup("},{"line_number":205,"context_line":"            _safe_method(self.trunk_remove_subports),"},{"line_number":206,"context_line":"            tenant_id, trunk[\u0027id\u0027], trunk[\u0027sub_ports\u0027])"},{"line_number":207,"context_line":"        self.addCleanup(_safe_method(self.client.delete_trunk), trunk[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_ae726e0f","line":204,"updated":"2016-09-20 17:55:40.000000000","message":"should this be added only if sub_ports is not None, to avoid clashing with the next one in case they are called separately?","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"        trunk \u003d self.client.create_trunk({\u0027trunk\u0027: spec})[\u0027trunk\u0027]"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        self.addCleanup("},{"line_number":205,"context_line":"            _safe_method(self.trunk_remove_subports),"},{"line_number":206,"context_line":"            tenant_id, trunk[\u0027id\u0027], trunk[\u0027sub_ports\u0027])"},{"line_number":207,"context_line":"        self.addCleanup(_safe_method(self.client.delete_trunk), trunk[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_f296d74a","line":204,"in_reply_to":"7a8ec9b2_ae726e0f","updated":"2016-09-21 16:18:06.000000000","message":"Done","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bae52eb594d70dac936c747982e2fec000b85cb1","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        return self._create_resource(resource_type, spec)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def create_port(self, tenant_id, network_id, hostname\u003dNone,"},{"line_number":92,"context_line":"                    qos_policy_id\u003dNone):"},{"line_number":93,"context_line":"        spec \u003d {"},{"line_number":94,"context_line":"            \u0027network_id\u0027: network_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_961699a5","line":91,"updated":"2016-09-23 18:14:36.000000000","message":"we should consider adding the MAC here too.","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1c3485c691f57cd77828d3afed649558ce7a9863","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        return self._create_resource(resource_type, spec)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    def create_port(self, tenant_id, network_id, hostname\u003dNone,"},{"line_number":92,"context_line":"                    qos_policy_id\u003dNone):"},{"line_number":93,"context_line":"        spec \u003d {"},{"line_number":94,"context_line":"            \u0027network_id\u0027: network_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_bfac3836","line":91,"in_reply_to":"5a8bc5a2_961699a5","updated":"2016-09-24 11:15:05.000000000","message":"I\u0027d add it once it\u0027s used (in patch where we get rid of disabling arp spoofing protection maybe).","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"}],"neutron/tests/fullstack/resources/config.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            env_desc, host_desc, temp_dir, base_filename\u003d\u0027neutron.conf\u0027)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        service_plugins \u003d [\u0027router\u0027, \u0027trunk\u0027]"},{"line_number":58,"context_line":"        if env_desc.qos:"},{"line_number":59,"context_line":"            service_plugins.append(\u0027qos\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        self.config.update({"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_4edbaaed","line":58,"updated":"2016-09-20 17:55:40.000000000","message":"should we do something similar to qos ie. add trunk conditionally?","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            env_desc, host_desc, temp_dir, base_filename\u003d\u0027neutron.conf\u0027)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        service_plugins \u003d [\u0027router\u0027, \u0027trunk\u0027]"},{"line_number":58,"context_line":"        if env_desc.qos:"},{"line_number":59,"context_line":"            service_plugins.append(\u0027qos\u0027)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        self.config.update({"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_927f53df","line":58,"in_reply_to":"7a8ec9b2_4edbaaed","updated":"2016-09-21 16:18:06.000000000","message":"We can play ping-pong here :) Look at https://review.openstack.org/#/c/369001/4/neutron/tests/fullstack/resources/environment.py\n\nAs qos requires a lot of other configurations (agent extensions, extension drivers) we should define it conditionally. Trunk doesn\u0027t need any other configuration so I agree it\u0027s no harm to always have it here.","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bae52eb594d70dac936c747982e2fec000b85cb1","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            \u0027agent\u0027: {"},{"line_number":160,"context_line":"                \u0027l2_population\u0027: str(self.env_desc.l2_pop),"},{"line_number":161,"context_line":"                \u0027arp_responder\u0027: str(self.env_desc.arp_responder),"},{"line_number":162,"context_line":"                \u0027prevent_arp_spoofing\u0027: str("},{"line_number":163,"context_line":"                    self.env_desc.prevent_arp_spoofing),"},{"line_number":164,"context_line":"            }"},{"line_number":165,"context_line":"        })"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_36c0657b","line":162,"updated":"2016-09-23 18:14:36.000000000","message":"As the option [1] says, we need to figure out a way to deal with this once this variable goes away, but I am okay to have it for now. \n\n[1] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/conf/plugins/ml2/drivers/agent.py#n33","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1c3485c691f57cd77828d3afed649558ce7a9863","unresolved":false,"context_lines":[{"line_number":159,"context_line":"            \u0027agent\u0027: {"},{"line_number":160,"context_line":"                \u0027l2_population\u0027: str(self.env_desc.l2_pop),"},{"line_number":161,"context_line":"                \u0027arp_responder\u0027: str(self.env_desc.arp_responder),"},{"line_number":162,"context_line":"                \u0027prevent_arp_spoofing\u0027: str("},{"line_number":163,"context_line":"                    self.env_desc.prevent_arp_spoofing),"},{"line_number":164,"context_line":"            }"},{"line_number":165,"context_line":"        })"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_dfabc41b","line":162,"in_reply_to":"5a8bc5a2_36c0657b","updated":"2016-09-24 11:15:05.000000000","message":"I\u0027ll put TODO here","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"}],"neutron/tests/fullstack/resources/environment.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"8bfc5ee20ab5a01ae78d1331bee2963e08333a1b","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    Does the setup, as a whole, support tunneling? How about l2pop?"},{"line_number":35,"context_line":"    \"\"\""},{"line_number":36,"context_line":"    def __init__(self, network_type\u003d\u0027vxlan\u0027, l2_pop\u003dTrue, qos\u003dFalse,"},{"line_number":37,"context_line":"                 mech_drivers\u003d\u0027openvswitch,linuxbridge\u0027, trunk\u003dFalse):"},{"line_number":38,"context_line":"        self.network_type \u003d network_type"},{"line_number":39,"context_line":"        self.l2_pop \u003d l2_pop"},{"line_number":40,"context_line":"        self.qos \u003d qos"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_a5c892a9","line":37,"updated":"2016-09-15 22:19:09.000000000","message":"Meh. I suggest we always add \u0027trunk\u0027 to service_plugins and be done with it.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"7aaec0e519d6ce7d934797579e19fe445830877b","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    Does the setup, as a whole, support tunneling? How about l2pop?"},{"line_number":35,"context_line":"    \"\"\""},{"line_number":36,"context_line":"    def __init__(self, network_type\u003d\u0027vxlan\u0027, l2_pop\u003dTrue, qos\u003dFalse,"},{"line_number":37,"context_line":"                 mech_drivers\u003d\u0027openvswitch,linuxbridge\u0027, trunk\u003dFalse):"},{"line_number":38,"context_line":"        self.network_type \u003d network_type"},{"line_number":39,"context_line":"        self.l2_pop \u003d l2_pop"},{"line_number":40,"context_line":"        self.qos \u003d qos"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_7e615fd2","line":37,"in_reply_to":"7a8ec9b2_a5c892a9","updated":"2016-09-19 09:36:25.000000000","message":"Done","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"}],"neutron/tests/fullstack/resources/machine.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"ef93d5bf12ad2275bf20d279d71d28dbff9fb5b8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def _get_bridge(self):"},{"line_number":61,"context_line":"        if self.bridge_name is None:"},{"line_number":62,"context_line":"            return self.host.get_bridge(self.network_id)"},{"line_number":63,"context_line":"        new_bridge \u003d ovs_lib.OVSBridge(self.bridge_name)"},{"line_number":64,"context_line":"        new_bridge.create()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        return new_bridge"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a89bdaa_3d890227","line":63,"updated":"2016-09-12 18:33:51.000000000","message":"This bridge is created and is not cleaned up by the test code. Who is responsible to delete the OVS bridge that os-vif creates in a non-test environment?","commit_id":"aa0b7c74c91fa6a829dafc686cbbab2fdfbd3650"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"9695e2c585dfe09c2e08459964bc0f317bd718c8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def _get_bridge(self):"},{"line_number":61,"context_line":"        if self.bridge_name is None:"},{"line_number":62,"context_line":"            return self.host.get_bridge(self.network_id)"},{"line_number":63,"context_line":"        new_bridge \u003d ovs_lib.OVSBridge(self.bridge_name)"},{"line_number":64,"context_line":"        new_bridge.create()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        return new_bridge"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a89bdaa_c1df5438","line":63,"in_reply_to":"9a89bdaa_3d890227","updated":"2016-09-12 18:54:16.000000000","message":"Trunk manager - https://github.com/openstack/neutron/blob/master/neutron/services/trunk/drivers/openvswitch/agent/trunk_manager.py#L146","commit_id":"aa0b7c74c91fa6a829dafc686cbbab2fdfbd3650"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"119170447372644791c6d1d78a1ff202c0eb5804","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def _get_bridge(self):"},{"line_number":61,"context_line":"        if self.bridge_name is None:"},{"line_number":62,"context_line":"            return self.host.get_bridge(self.network_id)"},{"line_number":63,"context_line":"        new_bridge \u003d ovs_lib.OVSBridge(self.bridge_name)"},{"line_number":64,"context_line":"        new_bridge.create()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        return new_bridge"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a89bdaa_e1037840","line":63,"in_reply_to":"9a89bdaa_419a646f","updated":"2016-09-12 19:07:02.000000000","message":"I\u0027ll add a bridgefixture here.","commit_id":"aa0b7c74c91fa6a829dafc686cbbab2fdfbd3650"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1481a5e3b931d5bfa03ad069bc553f4e9deb63ae","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    def _get_bridge(self):"},{"line_number":61,"context_line":"        if self.bridge_name is None:"},{"line_number":62,"context_line":"            return self.host.get_bridge(self.network_id)"},{"line_number":63,"context_line":"        new_bridge \u003d ovs_lib.OVSBridge(self.bridge_name)"},{"line_number":64,"context_line":"        new_bridge.create()"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        return new_bridge"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a89bdaa_419a646f","line":63,"in_reply_to":"9a89bdaa_c1df5438","updated":"2016-09-12 18:55:50.000000000","message":"We should strive to clean up after ourselves even if the code under test is faulty.","commit_id":"aa0b7c74c91fa6a829dafc686cbbab2fdfbd3650"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        self.vlan_interfaces.append(vlan_interface)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def destroy(self):"},{"line_number":137,"context_line":"        \"\"\"Destroy this fake machines.\"\"\""},{"line_number":138,"context_line":"        self.safe_client.client.update_port("},{"line_number":139,"context_line":"            self.neutron_port[\u0027id\u0027],"},{"line_number":140,"context_line":"            {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}}"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_6efdc63a","line":137,"updated":"2016-09-20 17:55:40.000000000","message":"machine","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        self.vlan_interfaces.append(vlan_interface)"},{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    def destroy(self):"},{"line_number":137,"context_line":"        \"\"\"Destroy this fake machines.\"\"\""},{"line_number":138,"context_line":"        self.safe_client.client.update_port("},{"line_number":139,"context_line":"            self.neutron_port[\u0027id\u0027],"},{"line_number":140,"context_line":"            {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}}"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_9266734f","line":137,"in_reply_to":"7a8ec9b2_6efdc63a","updated":"2016-09-21 16:18:06.000000000","message":"Done","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1c3485c691f57cd77828d3afed649558ce7a9863","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def port_is_bound(client, port_id):"},{"line_number":29,"context_line":"    port \u003d client.show_port(port_id)"},{"line_number":30,"context_line":"    return port[\u0027port\u0027][pbs.VIF_TYPE] !\u003d pbs.VIF_TYPE_UNBOUND"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class FakeFullstackMachine(machine_fixtures.FakeMachineBase):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_3f64a847","line":30,"range":{"start_line":30,"start_character":4,"end_line":30,"end_character":61},"updated":"2016-09-24 11:15:05.000000000","message":"I\u0027m wondering whether this is safe. Maybe we should rather check on ovs/bridge binding as if binding fails, we\u0027ll return True while port is not bound.","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"835c11bc9af447a6e0480e7d953fbb57b7906a18","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def port_is_bound(client, port_id):"},{"line_number":29,"context_line":"    port \u003d client.show_port(port_id)"},{"line_number":30,"context_line":"    return port[\u0027port\u0027][pbs.VIF_TYPE] !\u003d pbs.VIF_TYPE_UNBOUND"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class FakeFullstackMachine(machine_fixtures.FakeMachineBase):"}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_744712bc","line":30,"range":{"start_line":30,"start_character":4,"end_line":30,"end_character":61},"in_reply_to":"5a8bc5a2_3f64a847","updated":"2016-09-26 11:34:39.000000000","message":"Done","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bae52eb594d70dac936c747982e2fec000b85cb1","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    def add_vlan_interface(self, mac_address, ip_address, segmentation_id):"},{"line_number":140,"context_line":"        \"\"\"Add VLAN interface to VM\u0027s namespace."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        :param ip_address: The IPNetwork instance containing IP address"},{"line_number":143,"context_line":"                           assigned to the interface."},{"line_number":144,"context_line":"        :param segmentation_id: VLAN tag added to the interface."},{"line_number":145,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_56c5f158","line":142,"updated":"2016-09-23 18:14:36.000000000","message":"forgot the mac address","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1c3485c691f57cd77828d3afed649558ce7a9863","unresolved":false,"context_lines":[{"line_number":139,"context_line":"    def add_vlan_interface(self, mac_address, ip_address, segmentation_id):"},{"line_number":140,"context_line":"        \"\"\"Add VLAN interface to VM\u0027s namespace."},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        :param ip_address: The IPNetwork instance containing IP address"},{"line_number":143,"context_line":"                           assigned to the interface."},{"line_number":144,"context_line":"        :param segmentation_id: VLAN tag added to the interface."},{"line_number":145,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_7f71d0df","line":142,"in_reply_to":"5a8bc5a2_56c5f158","updated":"2016-09-24 11:15:05.000000000","message":"Done","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        self.safe_client \u003d safe_client"},{"line_number":61,"context_line":"        self.neutron_port \u003d neutron_port"},{"line_number":62,"context_line":"        self.bridge_name \u003d bridge_name"},{"line_number":63,"context_line":"        self.vlan_ips \u003d {}"},{"line_number":64,"context_line":"        self.vlan_interfaces \u003d []"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def _setUp(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_dcf1846c","line":63,"updated":"2016-09-27 21:54:12.000000000","message":"Consider renaming to:\n\nvlan_ids_to_ips\n\n?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        self.safe_client \u003d safe_client"},{"line_number":61,"context_line":"        self.neutron_port \u003d neutron_port"},{"line_number":62,"context_line":"        self.bridge_name \u003d bridge_name"},{"line_number":63,"context_line":"        self.vlan_ips \u003d {}"},{"line_number":64,"context_line":"        self.vlan_interfaces \u003d []"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def _setUp(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_cae6fb15","line":63,"in_reply_to":"5a8bc5a2_dcf1846c","updated":"2016-09-28 10:42:11.000000000","message":"Done","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":91,"context_line":"            self.safe_client.client.update_port("},{"line_number":92,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":93,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: self.host.hostname}})"},{"line_number":94,"context_line":"            self.addCleanup(self.safe_client.client.update_port,"},{"line_number":95,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":96,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}})"},{"line_number":97,"context_line":"            port_bound_predicate \u003d functools.partial("}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_3c88a8c6","line":94,"updated":"2016-09-27 21:54:12.000000000","message":"Why do we need to \"unbind\" a port? That\u0027s not usually done when deleting a VM... You just delete the port.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"eae2a66c7795c88038606744fb127b3ffadb54cc","unresolved":false,"context_lines":[{"line_number":91,"context_line":"            self.safe_client.client.update_port("},{"line_number":92,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":93,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: self.host.hostname}})"},{"line_number":94,"context_line":"            self.addCleanup(self.safe_client.client.update_port,"},{"line_number":95,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":96,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}})"},{"line_number":97,"context_line":"            port_bound_predicate \u003d functools.partial("}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_7085f1ab","line":94,"in_reply_to":"5a8bc5a2_3c88a8c6","updated":"2016-09-27 23:36:06.000000000","message":"Nova does not delete a port when it\u0027s passed during the boot command. This is mirroring the real life use case.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":91,"context_line":"            self.safe_client.client.update_port("},{"line_number":92,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":93,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: self.host.hostname}})"},{"line_number":94,"context_line":"            self.addCleanup(self.safe_client.client.update_port,"},{"line_number":95,"context_line":"                self.neutron_port[\u0027id\u0027],"},{"line_number":96,"context_line":"                {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}})"},{"line_number":97,"context_line":"            port_bound_predicate \u003d functools.partial("}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_559a90c6","line":94,"in_reply_to":"5a8bc5a2_7085f1ab","updated":"2016-09-28 10:42:11.000000000","message":"That\u0027s because this is parent port of trunk so during cleanup it tries to delete trunk first but it fails because it\u0027s still in use (bound).","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_3c25080a","line":102,"updated":"2016-09-27 21:54:12.000000000","message":"Using a wait_until_true loop here implies that port binding is asynchronous somehow? Why is this needed? The update_port should either succeed in binding the port or fail on its first try. The test only begins once all agents send their first report states and the server sees all of them, so binding should never fail then recover... I can\u0027t think of a reason for this loop.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"ec6ee2903a557a75f37a7748e53a9682dc459630","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_add8021f","line":102,"in_reply_to":"3a98d1f4_120f51e2","updated":"2016-09-28 15:50:52.000000000","message":"The parent port must be bound when we call update_subport_binding from agent to server. I played with it and I couldn\u0027t get \u0027unbound\u0027 after I call update_port(). It might be thought that my system is faster than gate.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bf628bfbee62656de93bdf855ab0cccf35a3be5b","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_956df206","line":102,"in_reply_to":"3a98d1f4_171d7c73","updated":"2016-09-29 01:33:33.000000000","message":"on a closer inspection, I can see where the confusion comes from. I thought that neutron port was the parent or the subport depending on how the fake VM was spawned, but I can see that for the non-aware VM [2], we don\u0027t pass the port. So yeah, this seems redundant. Either that, or there\u0027s something else we don\u0027t understand :)\n\n[1] https://review.openstack.org/#/c/369001/16/neutron/tests/fullstack/test_trunk.py@92\n[2] https://review.openstack.org/#/c/369001/16/neutron/tests/fullstack/test_trunk.py@179","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f0298ef0e9deac304a73de78fc81bd2fde9f8cc0","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_b7ee8fea","line":102,"in_reply_to":"3a98d1f4_57c46b91","updated":"2016-09-28 15:25:17.000000000","message":"a subport must be bound, and that sets the binding.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"9c9d7bbab4c00769960679fd1b701ae47a92073e","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_a6bb9cc3","line":102,"in_reply_to":"3a98d1f4_5bae3186","updated":"2016-09-29 08:17:45.000000000","message":"Looking at https://review.openstack.org/#/c/369001/12/neutron/tests/fullstack/resources/machine.py - port binding was called after the physical port was created in OVS. That explains the race I guess. Thanks Assaf for leading us back to correct road :)","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"9923c8caf057a20754e2b2dcca9feecbd105a64b","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_57c46b91","line":102,"in_reply_to":"3a98d1f4_5cc73245","updated":"2016-09-28 15:22:52.000000000","message":"port_bound_predicate doesn\u0027t look at the status field, not at VIF_TYPE, which is why I found this loop weird. I would expect this to either succeed on the first iteration or fail entirely.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"e0de374a1ede5109c3f5b639981450b9b31732e8","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_5bae3186","line":102,"in_reply_to":"3a98d1f4_956df206","updated":"2016-09-29 08:00:12.000000000","message":"So I\u0027m gonna remove that and run the test in the loop.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"f35c902d109b0b56b734b179d68fede163c71691","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_120f51e2","line":102,"in_reply_to":"3a98d1f4_979fd35e","updated":"2016-09-28 15:34:58.000000000","message":"self.neutron_port is the parent port though no?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"011632cf4a394a85a098c5a0ae19fd00172fe585","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_5cc73245","line":102,"in_reply_to":"3a98d1f4_ab4c7577","updated":"2016-09-28 15:16:59.000000000","message":"update_port is definitely synchronous, i.e. when it returns the port binding details are set, but the port\u0027s status may not yet be set to ACTIVE. However, I thought this was needed for when the VM is bound to a subport, and this whole end-to-end operation does not happen instantaneously.\n\nI may have gotten this wrong though.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"be5de500386809af7e47d07d9839e2ee62f0bfcd","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_171d7c73","line":102,"in_reply_to":"3a98d1f4_add8021f","updated":"2016-09-28 16:57:29.000000000","message":"You run bind_port_if_needed before you plug the port in to br-int, meaning that the parent port is bound (synchronously, so I don\u0027t understand the loop), and then the port is plugged in to br-int, at which point the parent port is already bound, so the subports shouldn\u0027t face any issues.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"73c6744ad6c938a8cc167a8bbb1b3792b9e3b9b0","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_979fd35e","line":102,"in_reply_to":"3a98d1f4_b7ee8fea","updated":"2016-09-28 15:26:05.000000000","message":"http://git.openstack.org/cgit/openstack/neutron/tree/neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py#n253","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1e1e977e9ab730db987757389333e9b3c4e1fdc2","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_a0cd4b88","line":102,"in_reply_to":"5a8bc5a2_3517c4ee","updated":"2016-09-28 11:34:00.000000000","message":"I must be missing something but the asynchronous part is when Nova plugs devices in to br-int, at which point the OVS agent grabs info form the server, does its works and then finally changes the port status to ACTIVE. This part here, port binding, is a synchronous call, no?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_3517c4ee","line":102,"in_reply_to":"5a8bc5a2_3c25080a","updated":"2016-09-28 10:42:11.000000000","message":"Yes, port update port is asynchronous (remember this race between nova and neutron?). It succeeds on the first try to set hostname into HOST_ID, then the binding itself happens while we already get response from the API. So we need to wait until the port binding is finished. This was one reason of intermittent failures we saw on the gate.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"535f80c0580c0ab26461d6f126ed200c77dc36f4","unresolved":false,"context_lines":[{"line_number":99,"context_line":"                self.safe_client.client,"},{"line_number":100,"context_line":"                self.neutron_port[\u0027id\u0027]"},{"line_number":101,"context_line":"            )"},{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_ab4c7577","line":102,"in_reply_to":"5a8bc5a2_a0cd4b88","updated":"2016-09-28 13:46:35.000000000","message":"From the experience we got and the race it doesn\u0027t seem it\u0027s synchronous. Lemme go through the code.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"},{"line_number":106,"context_line":"            )"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _get_bridge(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_9525f85d","line":105,"range":{"start_line":105,"start_character":26,"end_line":105,"end_character":28},"updated":"2016-09-28 10:42:11.000000000","message":"Doh! Which port","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"535f80c0580c0ab26461d6f126ed200c77dc36f4","unresolved":false,"context_lines":[{"line_number":102,"context_line":"            utils.wait_until_true("},{"line_number":103,"context_line":"                port_bound_predicate,"},{"line_number":104,"context_line":"                exception\u003dRuntimeError("},{"line_number":105,"context_line":"                    \"Port %s hasn\u0027t been bound in 60 seconds\")"},{"line_number":106,"context_line":"            )"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def _get_bridge(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a98d1f4_4b10514f","line":105,"range":{"start_line":105,"start_character":26,"end_line":105,"end_character":28},"in_reply_to":"5a8bc5a2_9525f85d","updated":"2016-09-28 13:46:35.000000000","message":"Done","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        self.vlan_ips[segmentation_id] \u003d str(ip_address.ip)"},{"line_number":170,"context_line":"        self.vlan_interfaces.append(vlan_interface)"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_7ca95024","line":172,"updated":"2016-09-27 21:54:12.000000000","message":"This seems like a bad idea, we\u0027ll need to remember to add cleanups here every time we add something new to the class setUp. Perhaps the caller can just execute cleanUp on the fixture it has in hand instead of calling this method?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0626fb3a5cf67c14f4ec10c2aef86240e096cea6","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        self.vlan_ips[segmentation_id] \u003d str(ip_address.ip)"},{"line_number":170,"context_line":"        self.vlan_interfaces.append(vlan_interface)"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_0ae29e9f","line":172,"in_reply_to":"5a8bc5a2_558e1028","updated":"2016-09-28 11:00:06.000000000","message":"We can\u0027t cleanup this fixtures as it also removes the BridgeFixture. This method is just to simulate VM destroy, not to cleanup resources. So if we create a new resource in setUp() it doesn\u0027t mean we should delete it here.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":169,"context_line":"        self.vlan_ips[segmentation_id] \u003d str(ip_address.ip)"},{"line_number":170,"context_line":"        self.vlan_interfaces.append(vlan_interface)"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_558e1028","line":172,"in_reply_to":"5a8bc5a2_7ca95024","updated":"2016-09-28 10:42:11.000000000","message":"I remember I tired that. I\u0027ll try it out and update here.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"},{"line_number":176,"context_line":"            {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}}"},{"line_number":177,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_fa77209d","line":174,"updated":"2016-09-27 21:54:12.000000000","message":"Looking at how this method is used, the port should be deleted, not unbound?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"},{"line_number":176,"context_line":"            {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}}"},{"line_number":177,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_d594e045","line":174,"in_reply_to":"5a8bc5a2_30ba896f","updated":"2016-09-28 10:42:11.000000000","message":"The port is deleted implicitly by using safe_client.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"eae2a66c7795c88038606744fb127b3ffadb54cc","unresolved":false,"context_lines":[{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    def destroy(self):"},{"line_number":173,"context_line":"        \"\"\"Destroy this fake machine.\"\"\""},{"line_number":174,"context_line":"        self.safe_client.client.update_port("},{"line_number":175,"context_line":"            self.neutron_port[\u0027id\u0027],"},{"line_number":176,"context_line":"            {\u0027port\u0027: {pbs.HOST_ID: \u0027\u0027}}"},{"line_number":177,"context_line":"        )"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_30ba896f","line":174,"in_reply_to":"5a8bc5a2_fa77209d","updated":"2016-09-27 23:36:06.000000000","message":"the port stays, that\u0027s what Nova does.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"}],"neutron/tests/fullstack/test_trunk.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"8bfc5ee20ab5a01ae78d1331bee2963e08333a1b","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from neutron.tests.fullstack.resources import machine"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def trunk_bridge_does_not_exist(trunk_id):"},{"line_number":31,"context_line":"    \"\"\"Return true if trunk bridge for given ID does not exists.\"\"\""},{"line_number":32,"context_line":"    bridge \u003d trunk_manager.TrunkBridge(trunk_id)"},{"line_number":33,"context_line":"    return not bridge.exists()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_853e368a","line":30,"updated":"2016-09-15 22:19:09.000000000","message":"Uber nit: I find it more intuitive to do something like:\n\nself.assertFalse(trunk_bridge_exists(trunk_id))\n\nIt\u0027s highly subjective obviously.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"c56f597f1916aa72bab98c1ac1ad97bd053442c3","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from neutron.tests.fullstack.resources import machine"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def trunk_bridge_does_not_exist(trunk_id):"},{"line_number":31,"context_line":"    \"\"\"Return true if trunk bridge for given ID does not exists.\"\"\""},{"line_number":32,"context_line":"    bridge \u003d trunk_manager.TrunkBridge(trunk_id)"},{"line_number":33,"context_line":"    return not bridge.exists()"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8ec9b2_0825d2bf","line":30,"in_reply_to":"7a8ec9b2_853e368a","updated":"2016-09-16 08:07:29.000000000","message":"It\u0027s in active loop, so it would need to be done via lambda which could be less readable.","commit_id":"778ec9a9b7890756ec707407598f5ebecd62c55e"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        :param trunk_network: Instance of Network where trunk port should be"},{"line_number":147,"context_line":"                              created."},{"line_number":148,"context_line":"        :param vlan_network: List of Network instances where subports should be"},{"line_number":149,"context_line":"                             created."},{"line_number":150,"context_line":"        \"\"\""},{"line_number":151,"context_line":"        trunk_parent_port \u003d self.safe_client.create_port("}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_ee65561d","line":148,"updated":"2016-09-20 17:55:40.000000000","message":"networks","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        :param trunk_network: Instance of Network where trunk port should be"},{"line_number":147,"context_line":"                              created."},{"line_number":148,"context_line":"        :param vlan_network: List of Network instances where subports should be"},{"line_number":149,"context_line":"                             created."},{"line_number":150,"context_line":"        \"\"\""},{"line_number":151,"context_line":"        trunk_parent_port \u003d self.safe_client.create_port("}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_32e3dfa5","line":148,"in_reply_to":"7a8ec9b2_ee65561d","updated":"2016-09-21 16:18:06.000000000","message":"Done","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"42005d902eb1c3c503582e174149c00dcdb1a59a","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        ip_network \u003d create_ip_network(subport, subport_network.network)"},{"line_number":218,"context_line":"        vm.add_vlan_interface(ip_network, subport_network.tag)"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def test_trunk_lifecycle(self):"},{"line_number":221,"context_line":"        vlan_aware_vm \u003d self.create_vlan_aware_vm("},{"line_number":222,"context_line":"            self.trunk_network,"},{"line_number":223,"context_line":"            [self.vlan1_network]"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_c1030b75","line":220,"updated":"2016-09-20 17:55:40.000000000","message":"it\u0027d be nice to have a brief description of the topology here and a high level description of the test. If I understand this correctly you\u0027re creating the following:\n\n4 VMs: A that connects to both trunk_net and vlan_1, B that connects to trunk_net only, C that connects to vlan_1, and lastly D that connects to vlan2. Then you add a leg to vlan_2 to A. Then you remove leg vlan_1 from A.\n\nYou\u0027re testing the following:\n\n  * A can talk to B (both ways on trunk_net)\n  * A can talk to C (both ways on vlan_1)\n  * A cannot talk to D (when there\u0027s no leg on vlan_2)\n  * A can talk to D (both ways on vlan_2)\n  * A cannot talk to C (when leg on vlan_1 is removed)\n  * A should continue to talk to B (both ways)\n  * A should continue to talk to C (both ways)\n\nIs that right?","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0fa92bb4ded320de99e34280cf938ccb446f1c43","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        ip_network \u003d create_ip_network(subport, subport_network.network)"},{"line_number":218,"context_line":"        vm.add_vlan_interface(ip_network, subport_network.tag)"},{"line_number":219,"context_line":""},{"line_number":220,"context_line":"    def test_trunk_lifecycle(self):"},{"line_number":221,"context_line":"        vlan_aware_vm \u003d self.create_vlan_aware_vm("},{"line_number":222,"context_line":"            self.trunk_network,"},{"line_number":223,"context_line":"            [self.vlan1_network]"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a8ec9b2_125d0347","line":220,"in_reply_to":"7a8ec9b2_c1030b75","updated":"2016-09-21 16:18:06.000000000","message":"Correct. And at the end vm using trunk is removed and we check that integration bridge doesn\u0027t have any leftovers.","commit_id":"2923077df7eb6948a6d6028ddee40c69bf4c72eb"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"e26ff46552ffede93171e573b66b575d61af5d97","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        vlan2_network_vm \u003d self.create_vm_in_network(self.vlan2_network)"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"        for vm in trunk_network_vm, vlan1_network_vm, vlan2_network_vm:"},{"line_number":261,"context_line":"            vm.block_until_boot()"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"        # Test connectivity to trunk and subport"},{"line_number":264,"context_line":"        trunk_network_vm.block_until_ping(vlan_aware_vm.ip)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a8ec9b2_07ce982c","line":261,"updated":"2016-09-21 19:26:04.000000000","message":"why don\u0027t you make this call in method 188?","commit_id":"398f435f07e2e1232a0ade8e62398f1c551a7abf"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1183eecdca44b4dbce5810c0a5b8a5494c76aaad","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        vlan2_network_vm \u003d self.create_vm_in_network(self.vlan2_network)"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"        for vm in trunk_network_vm, vlan1_network_vm, vlan2_network_vm:"},{"line_number":261,"context_line":"            vm.block_until_boot()"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"        # Test connectivity to trunk and subport"},{"line_number":264,"context_line":"        trunk_network_vm.block_until_ping(vlan_aware_vm.ip)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a8ec9b2_39e57c08","line":261,"in_reply_to":"7a8ec9b2_07ce982c","updated":"2016-09-21 19:43:29.000000000","message":"In previous patch I had it like that. Then I realized it would \"create vm, wait, create vm, wait\". So instead of waiting for vm1 to finish processing, we can already start creating other vms as they don\u0027t depend on the previous one. So they are being created in paralel and then we wait for all.","commit_id":"398f435f07e2e1232a0ade8e62398f1c551a7abf"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"7407fa17d668a643c3876f62cd8f9785f1b68a64","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        vlan2_network_vm \u003d self.create_vm_in_network(self.vlan2_network)"},{"line_number":259,"context_line":""},{"line_number":260,"context_line":"        for vm in trunk_network_vm, vlan1_network_vm, vlan2_network_vm:"},{"line_number":261,"context_line":"            vm.block_until_boot()"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"        # Test connectivity to trunk and subport"},{"line_number":264,"context_line":"        trunk_network_vm.block_until_ping(vlan_aware_vm.ip)"}],"source_content_type":"text/x-python","patch_set":10,"id":"7a8ec9b2_d9957832","line":261,"in_reply_to":"7a8ec9b2_39e57c08","updated":"2016-09-21 19:45:36.000000000","message":"true, but these are bleeding fast. That said if you want to squeeze concurrency more out of this, fine by me.","commit_id":"398f435f07e2e1232a0ade8e62398f1c551a7abf"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"bae52eb594d70dac936c747982e2fec000b85cb1","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    return not bridge.exists()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def bridge_has_no_trunk_patch_ports(bridge):"},{"line_number":37,"context_line":"    \"\"\"Return True if there are not patch ports to any trunk bridge on given"},{"line_number":38,"context_line":"    bridge."},{"line_number":39,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_16f52982","line":36,"updated":"2016-09-23 18:14:36.000000000","message":"could use Rossella\u0027s patch utility func [1], no?\n\nIn fact, it would be nice to rebase the two one on top of the other to check early that they don\u0027t clash for some reason.\n\n[1] https://review.openstack.org/#/c/365176/7/neutron/services/trunk/drivers/openvswitch/agent/ovsdb_handler.py@104","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1c3485c691f57cd77828d3afed649558ce7a9863","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    return not bridge.exists()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def bridge_has_no_trunk_patch_ports(bridge):"},{"line_number":37,"context_line":"    \"\"\"Return True if there are not patch ports to any trunk bridge on given"},{"line_number":38,"context_line":"    bridge."},{"line_number":39,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_1f4b6c88","line":36,"in_reply_to":"5a8bc5a2_16f52982","updated":"2016-09-24 11:15:05.000000000","message":"Do we expect it to get merged soon?","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"a387908d9106a5289f829dd0a30cf21c96a0884a","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    return not bridge.exists()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def bridge_has_no_trunk_patch_ports(bridge):"},{"line_number":37,"context_line":"    \"\"\"Return True if there are not patch ports to any trunk bridge on given"},{"line_number":38,"context_line":"    bridge."},{"line_number":39,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_cdbcf908","line":36,"in_reply_to":"5a8bc5a2_1f4b6c88","updated":"2016-09-24 15:30:31.000000000","message":"I would certainly hope so, it\u0027s an RC2 bug fix.","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"835c11bc9af447a6e0480e7d953fbb57b7906a18","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    return not bridge.exists()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def bridge_has_no_trunk_patch_ports(bridge):"},{"line_number":37,"context_line":"    \"\"\"Return True if there are not patch ports to any trunk bridge on given"},{"line_number":38,"context_line":"    bridge."},{"line_number":39,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"5a8bc5a2_f706c41a","line":36,"in_reply_to":"5a8bc5a2_cdbcf908","updated":"2016-09-26 11:34:39.000000000","message":"Done","commit_id":"ccdf169180d74e3b125014db81c6e10b3f7b7f96"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    return not bridge.exists()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def create_ip_network(port, network):"},{"line_number":38,"context_line":"    \"\"\"Create IPNetwork object from port and network."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    Function returns IPNetwork object containing fixed IP address from port"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_5f21e6b3","line":37,"updated":"2016-09-27 21:54:12.000000000","message":"I\u0027d advise get instead of create. This just translates from this object to that object, it doesn\u0027t actually create anything (Via the API or via interacting with the host), I just find the name a bit deceiving / not intuitive.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":34,"context_line":"    return not bridge.exists()"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def create_ip_network(port, network):"},{"line_number":38,"context_line":"    \"\"\"Create IPNetwork object from port and network."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    Function returns IPNetwork object containing fixed IP address from port"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_b59d945b","line":37,"in_reply_to":"5a8bc5a2_5f21e6b3","updated":"2016-09-28 10:42:11.000000000","message":"Agreed.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    pass"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class Network(object):"},{"line_number":57,"context_line":"    \"\"\"A helper class to keep persistent info about assigned addresses.\"\"\""},{"line_number":58,"context_line":"    def __init__(self, prefix, network_cidr, tag\u003dNone):"},{"line_number":59,"context_line":"        self.prefix \u003d prefix"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_dfec162c","line":56,"updated":"2016-09-27 21:54:12.000000000","message":"I\u0027m really confused as to what is this class supposed to represent. Does this wrap a Neutron network? If so why is its name not taken from self.neutron_network[\u0027name\u0027]? Is this basically a bunch of helper methods stuffed together in a namespace? If so maybe a class isn\u0027t the best model here.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1e1e977e9ab730db987757389333e9b3c4e1fdc2","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    pass"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class Network(object):"},{"line_number":57,"context_line":"    \"\"\"A helper class to keep persistent info about assigned addresses.\"\"\""},{"line_number":58,"context_line":"    def __init__(self, prefix, network_cidr, tag\u003dNone):"},{"line_number":59,"context_line":"        self.prefix \u003d prefix"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_40a567b3","line":56,"in_reply_to":"5a8bc5a2_3bf9734e","updated":"2016-09-28 11:34:00.000000000","message":"I think so, yes.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"27ce16663ea6ca6f06080b21c7f336d03ab9e59f","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    pass"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class Network(object):"},{"line_number":57,"context_line":"    \"\"\"A helper class to keep persistent info about assigned addresses.\"\"\""},{"line_number":58,"context_line":"    def __init__(self, prefix, network_cidr, tag\u003dNone):"},{"line_number":59,"context_line":"        self.prefix \u003d prefix"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_c30fc12c","line":56,"in_reply_to":"5a8bc5a2_40a567b3","updated":"2016-09-28 11:45:47.000000000","message":"I still need a data structure that groups networks, subnets and tags together. If I break this into functions, it\u0027ll end up passing some data structure into functions which will make it more complicated and less readable.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    pass"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class Network(object):"},{"line_number":57,"context_line":"    \"\"\"A helper class to keep persistent info about assigned addresses.\"\"\""},{"line_number":58,"context_line":"    def __init__(self, prefix, network_cidr, tag\u003dNone):"},{"line_number":59,"context_line":"        self.prefix \u003d prefix"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_3bf9734e","line":56,"in_reply_to":"5a8bc5a2_dfec162c","updated":"2016-09-28 10:42:11.000000000","message":"In previous patches this class held a state for address assignment. That is not currently used as IPAM is handled in Neutron and we read addresses from the port. Do you suggest to just break this class into functions?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        self.network \u003d netaddr.IPNetwork(network_cidr)"},{"line_number":61,"context_line":"        # Simple address assigment, use first available IP after gateway"},{"line_number":62,"context_line":"        self._next_ip_offset \u003d self.network.first + 2"},{"line_number":63,"context_line":"        self.neutron_network \u003d {}"},{"line_number":64,"context_line":"        self.neutron_subnet \u003d {}"},{"line_number":65,"context_line":"        self.tag \u003d tag"},{"line_number":66,"context_line":"        # Currently, only vlan is supported. Pass via __init__ once more are"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_bf866a14","line":63,"updated":"2016-09-27 21:54:12.000000000","message":"The way you use this class you override this attribute anyway. It might be cleaner to set this to None instead but I\u0027m not sure what\u0027s the best practice.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"27ce16663ea6ca6f06080b21c7f336d03ab9e59f","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        self.network \u003d netaddr.IPNetwork(network_cidr)"},{"line_number":61,"context_line":"        # Simple address assigment, use first available IP after gateway"},{"line_number":62,"context_line":"        self._next_ip_offset \u003d self.network.first + 2"},{"line_number":63,"context_line":"        self.neutron_network \u003d {}"},{"line_number":64,"context_line":"        self.neutron_subnet \u003d {}"},{"line_number":65,"context_line":"        self.tag \u003d tag"},{"line_number":66,"context_line":"        # Currently, only vlan is supported. Pass via __init__ once more are"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_4009e7dc","line":63,"in_reply_to":"5a8bc5a2_9b9e0706","updated":"2016-09-28 11:45:47.000000000","message":"Ok, now I see your comment makes more sense :) neutron_network is an API response.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        self.network \u003d netaddr.IPNetwork(network_cidr)"},{"line_number":61,"context_line":"        # Simple address assigment, use first available IP after gateway"},{"line_number":62,"context_line":"        self._next_ip_offset \u003d self.network.first + 2"},{"line_number":63,"context_line":"        self.neutron_network \u003d {}"},{"line_number":64,"context_line":"        self.neutron_subnet \u003d {}"},{"line_number":65,"context_line":"        self.tag \u003d tag"},{"line_number":66,"context_line":"        # Currently, only vlan is supported. Pass via __init__ once more are"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_9b9e0706","line":63,"in_reply_to":"5a8bc5a2_bf866a14","updated":"2016-09-28 10:42:11.000000000","message":"Then you\u0027d get two behaviors where an attribute is either None or a dict. Initialized empty dict doesn\u0027t seem to harm.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":95,"context_line":"            l3_agent\u003dFalse,"},{"line_number":96,"context_line":"            l2_agent_type\u003dconstants.AGENT_TYPE_OVS)]"},{"line_number":97,"context_line":"        env_desc \u003d environment.EnvironmentDescription("},{"line_number":98,"context_line":"            prevent_arp_spoofing\u003dFalse)"},{"line_number":99,"context_line":"        env \u003d environment.Environment(env_desc, host_desc)"},{"line_number":100,"context_line":"        super(TestTrunkPlugin, self).setUp(env)"},{"line_number":101,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_1c45ac16","line":98,"updated":"2016-09-27 21:54:12.000000000","message":"Can you explain why we must disable ARP spoofing and document it here please?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            self.create_network_and_subnet(network)"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def create_network_and_subnet(self, network):"},{"line_number":114,"context_line":"        \"\"\"Create network and subnet resources in Neutorn based on network"},{"line_number":115,"context_line":"           object."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        The resource names will be \u003cprefix\u003e-network and \u003cprefix\u003e-subnet, where"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_7f0222b6","line":114,"updated":"2016-09-27 21:54:12.000000000","message":"Neutorn -\u003e Neutron, although it\u0027s never too late for a rename.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            self.create_network_and_subnet(network)"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    def create_network_and_subnet(self, network):"},{"line_number":114,"context_line":"        \"\"\"Create network and subnet resources in Neutorn based on network"},{"line_number":115,"context_line":"           object."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        The resource names will be \u003cprefix\u003e-network and \u003cprefix\u003e-subnet, where"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_5b62bf17","line":114,"in_reply_to":"5a8bc5a2_7f0222b6","updated":"2016-09-28 10:42:11.000000000","message":"I don\u0027t know why I write in 80% Neutorn and sometimes I notice it :) I would agree with renaming, let\u0027s start a revolution on ML.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":115,"context_line":"           object."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        The resource names will be \u003cprefix\u003e-network and \u003cprefix\u003e-subnet, where"},{"line_number":118,"context_line":"        prefix is taken from network obejct."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        :param network: Network object from this module."},{"line_number":121,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_df2fb63c","line":118,"updated":"2016-09-27 21:54:12.000000000","message":"obejct -\u003e object, although it might be easier to submit a request to change the spelling of the word.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":115,"context_line":"           object."},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"        The resource names will be \u003cprefix\u003e-network and \u003cprefix\u003e-subnet, where"},{"line_number":118,"context_line":"        prefix is taken from network obejct."},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        :param network: Network object from this module."},{"line_number":121,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_9b6c470a","line":118,"in_reply_to":"5a8bc5a2_df2fb63c","updated":"2016-09-28 10:42:11.000000000","message":"Someone can get a free pass to summits for fixing this :)","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                self.safe_client,"},{"line_number":167,"context_line":"                neutron_port\u003dtrunk_parent_port,"},{"line_number":168,"context_line":"                bridge_name\u003dtrunk_ovs_utils.gen_trunk_br_name(trunk[\u0027id\u0027])))"},{"line_number":169,"context_line":"        vm.trunk \u003d trunk"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        for port, vlan_network in zip(vlan_subports, vlan_networks):"},{"line_number":172,"context_line":"            ip_network \u003d create_ip_network(port, vlan_network.network)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_ff0ab278","line":169,"updated":"2016-09-27 21:54:12.000000000","message":"Eek, this doesn\u0027t seem very clean. Should we get the trunk via the API instead? Or at least not store it like this in the FakeFullstackMachine? It\u0027s a class, with a design and feelings, not a dumping ground for random attributes :(","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"27ce16663ea6ca6f06080b21c7f336d03ab9e59f","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                self.safe_client,"},{"line_number":167,"context_line":"                neutron_port\u003dtrunk_parent_port,"},{"line_number":168,"context_line":"                bridge_name\u003dtrunk_ovs_utils.gen_trunk_br_name(trunk[\u0027id\u0027])))"},{"line_number":169,"context_line":"        vm.trunk \u003d trunk"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        for port, vlan_network in zip(vlan_subports, vlan_networks):"},{"line_number":172,"context_line":"            ip_network \u003d create_ip_network(port, vlan_network.network)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_a0246bc6","line":169,"in_reply_to":"5a8bc5a2_00735f4e","updated":"2016-09-28 11:45:47.000000000","message":"But TrunkVM has different capabilities.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"1e1e977e9ab730db987757389333e9b3c4e1fdc2","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                self.safe_client,"},{"line_number":167,"context_line":"                neutron_port\u003dtrunk_parent_port,"},{"line_number":168,"context_line":"                bridge_name\u003dtrunk_ovs_utils.gen_trunk_br_name(trunk[\u0027id\u0027])))"},{"line_number":169,"context_line":"        vm.trunk \u003d trunk"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        for port, vlan_network in zip(vlan_subports, vlan_networks):"},{"line_number":172,"context_line":"            ip_network \u003d create_ip_network(port, vlan_network.network)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_00735f4e","line":169,"in_reply_to":"5a8bc5a2_7664f248","updated":"2016-09-28 11:34:00.000000000","message":"Subclassing is incorrect as a VM is a VM... Something is wrong in the modeling but I can\u0027t quite place it.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":166,"context_line":"                self.safe_client,"},{"line_number":167,"context_line":"                neutron_port\u003dtrunk_parent_port,"},{"line_number":168,"context_line":"                bridge_name\u003dtrunk_ovs_utils.gen_trunk_br_name(trunk[\u0027id\u0027])))"},{"line_number":169,"context_line":"        vm.trunk \u003d trunk"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        for port, vlan_network in zip(vlan_subports, vlan_networks):"},{"line_number":172,"context_line":"            ip_network \u003d create_ip_network(port, vlan_network.network)"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_7664f248","line":169,"in_reply_to":"5a8bc5a2_ff0ab278","updated":"2016-09-28 10:42:11.000000000","message":"The trunk is tied to vm. Would it make the vm feel better if that\u0027s passed in __init__? I didn\u0027t want to extend the __init__ just because of that which is already rich for parameters. Maybe subclassing FakeFullstackMachine to FakeFullstackTrunkMachine?","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3c8f3e29705c85b08e724258a3ca2247096d7a5d","unresolved":false,"context_lines":[{"line_number":253,"context_line":"            vm.block_until_boot()"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"        # Test connectivity to trunk and subport"},{"line_number":256,"context_line":"        trunk_network_vm.block_until_ping(vlan_aware_vm.ip)"},{"line_number":257,"context_line":"        vlan_aware_vm.block_until_ping(trunk_network_vm.ip)"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        vlan1_network_vm.block_until_ping("}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_babaf808","line":256,"updated":"2016-09-27 21:54:12.000000000","message":"Do we really need to ping both ways? It adds a lot of clutter to the test.","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"5a42ff84ec525b90dfb842db4bfbc742bb4cb927","unresolved":false,"context_lines":[{"line_number":253,"context_line":"            vm.block_until_boot()"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"        # Test connectivity to trunk and subport"},{"line_number":256,"context_line":"        trunk_network_vm.block_until_ping(vlan_aware_vm.ip)"},{"line_number":257,"context_line":"        vlan_aware_vm.block_until_ping(trunk_network_vm.ip)"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"        vlan1_network_vm.block_until_ping("}],"source_content_type":"text/x-python","patch_set":16,"id":"5a8bc5a2_b65e7a74","line":256,"in_reply_to":"5a8bc5a2_babaf808","updated":"2016-09-28 10:42:11.000000000","message":"Done","commit_id":"91f63d14e843b7a1542f33cec74389ce1949448c"}]}
