)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"92fbf5d7646b83a294e921f93b790376d5dab056","unresolved":false,"context_lines":[{"line_number":11,"context_line":"qg device is still in qrouter namespace."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is due to ovs-vsctl del qg port is execuated together"},{"line_number":14,"context_line":"with add port operation. This fix separate the two ovs-vsctl"},{"line_number":15,"context_line":"operations."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I82ea89f1695f1e6e7c7b8ab4e39ee969d7312a6d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da86d52c_45b48b34","line":14,"updated":"2015-02-05 05:00:40.000000000","message":"why does this matter if they are executed together? \n\nnit: executed *","commit_id":"3d95c32623bc71ba7171fd975869c437e7d31408"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"d074b9bbef8825858f5aa72f6ed42d7f3f88863f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"qg device is still in qrouter namespace."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is due to ovs-vsctl del qg port is execuated together"},{"line_number":14,"context_line":"with add port operation. This fix separate the two ovs-vsctl"},{"line_number":15,"context_line":"operations."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I82ea89f1695f1e6e7c7b8ab4e39ee969d7312a6d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da86d52c_79cd21b7","line":14,"in_reply_to":"da86d52c_170f0038","updated":"2015-02-10 02:27:07.000000000","message":"gotcha thanks.","commit_id":"3d95c32623bc71ba7171fd975869c437e7d31408"},{"author":{"_account_id":7183,"name":"Xu Han Peng","email":"xuhanp@linux.vnet.ibm.com","username":"xuhanp"},"change_message_id":"8ce10fbbef3f5cb67f810f172a9ef87bd8d38da3","unresolved":false,"context_lines":[{"line_number":11,"context_line":"qg device is still in qrouter namespace."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This is due to ovs-vsctl del qg port is execuated together"},{"line_number":14,"context_line":"with add port operation. This fix separate the two ovs-vsctl"},{"line_number":15,"context_line":"operations."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I82ea89f1695f1e6e7c7b8ab4e39ee969d7312a6d"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da86d52c_170f0038","line":14,"in_reply_to":"da86d52c_45b48b34","updated":"2015-02-06 02:21:07.000000000","message":"I am not an openvswitch expert but when delete port and add port operation are executed together, the qg device doesn\u0027t get \"removed\" from br-ex in original namespace. We actually expect the port can be outside any namespaces after replace_port so this device can be added into the new namespace (snat namespace) later in plug method of OVSInterfaceDriver:\n\nhttps://github.com/openstack/neutron/blob/b6fd124cb0c7d1cbcdf650b210292c9cc49aee5d/neutron/agent/linux/interface.py#L308\n\nWhen we run delete and add separately, the port is removed and added to br-ex as expected.","commit_id":"3d95c32623bc71ba7171fd975869c437e7d31408"}],"neutron/agent/linux/ovs_lib.py":[{"author":{"_account_id":13667,"name":"ZongKai LI","email":"onionpiece@163.com","username":"lzklibj"},"change_message_id":"23beebaea15c11037e644938af239bfdbeb93934","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Replace existing port or create it, and configure port interface.\"\"\""},{"line_number":182,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":183,"context_line":"            txn.add(self.ovsdb.del_port(port_name))"},{"line_number":184,"context_line":"        self.add_port(port_name, *interface_attr_tuples)"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def delete_port(self, port_name):"},{"line_number":187,"context_line":"        self.ovsdb.del_port(port_name, self.br_name).execute()"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_ff863c64","line":184,"updated":"2015-01-29 16:16:06.000000000","message":"with self.ovsdb.transaction() as txn:\n    txn.add(self.ovsdb.del_port(port_name))\nwith self.ovsdb.transaction() as txn:\n    txn.add(self.ovsdb.add_port(self.br_name, port_name,\n                                                 may_exist\u003dFalse))\n    if interface_attr_tuples:\n        txn.add(self.ovsdb.db_set(\u0027Interface\u0027, port_name,\n                                                  *interface_attr_tuples))\nthis will works","commit_id":"89751a8d5b8426d0bdfd47c0607694e8788f71d0"},{"author":{"_account_id":13667,"name":"ZongKai LI","email":"onionpiece@163.com","username":"lzklibj"},"change_message_id":"090984f9c5829a2960eaedc7513e2945cd238d6a","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Replace existing port or create it, and configure port interface.\"\"\""},{"line_number":182,"context_line":"        with self.ovsdb.transaction() as txn:"},{"line_number":183,"context_line":"            txn.add(self.ovsdb.del_port(port_name))"},{"line_number":184,"context_line":"        self.add_port(port_name, *interface_attr_tuples)"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    def delete_port(self, port_name):"},{"line_number":187,"context_line":"        self.ovsdb.del_port(port_name, self.br_name).execute()"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_49121d58","line":184,"in_reply_to":"fa81d914_ff863c64","updated":"2015-01-30 02:04:52.000000000","message":"Sorry for my rash comment above, Logical, your code works the same to min.","commit_id":"89751a8d5b8426d0bdfd47c0607694e8788f71d0"}]}
