)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"5cbe11e4fe27b02db33cf06bd4d12d628b77a533","unresolved":false,"context_lines":[{"line_number":9,"context_line":"If the port device to be added is in a wrong or deleted namespace,"},{"line_number":10,"context_line":"`ovs-vsctl del-port ... -- add-port ...` won\u0027t re-create the device"},{"line_number":11,"context_line":"because ovs-vsctl performs \"a single atomic transaction against the"},{"line_number":12,"context_line":"database\". The device will be left in an unexcepted namespace and"},{"line_number":13,"context_line":"all `ip` commands trying to operate it will fail."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch moves out the del-port part from the long `ovs-vsctl`"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_27dae41d","line":12,"updated":"2014-07-22 09:36:18.000000000","message":"It\u0027s not clear to me. What you call \"device\" is the device that is plugged into the port? add-port and del-port shouldn\u0027t modify that device, they take care only of creating or removing the ovs port that is connected to it.","commit_id":"e2e0d619ee1b0454155e1e022adf7f64064b79b6"},{"author":{"_account_id":11280,"name":"Jun Wu","email":"quark@lihdd.net","username":"quark"},"change_message_id":"96ff7ca0fa554a52428a00d90c0793c208c7ca28","unresolved":false,"context_lines":[{"line_number":9,"context_line":"If the port device to be added is in a wrong or deleted namespace,"},{"line_number":10,"context_line":"`ovs-vsctl del-port ... -- add-port ...` won\u0027t re-create the device"},{"line_number":11,"context_line":"because ovs-vsctl performs \"a single atomic transaction against the"},{"line_number":12,"context_line":"database\". The device will be left in an unexcepted namespace and"},{"line_number":13,"context_line":"all `ip` commands trying to operate it will fail."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch moves out the del-port part from the long `ovs-vsctl`"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_bf1c3816","line":12,"in_reply_to":"baada198_27dae41d","updated":"2014-07-22 10:34:11.000000000","message":"Yes, it is the device which can be seen by `ip link`. `del-port` should remove the device, while `add-port` followed by `set type\u003dinternal` should create the device if I am not mistaken.","commit_id":"e2e0d619ee1b0454155e1e022adf7f64064b79b6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"5cbe11e4fe27b02db33cf06bd4d12d628b77a533","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch moves out the del-port part from the long `ovs-vsctl`"},{"line_number":16,"context_line":"command, make sure the device is deleted first so the new device"},{"line_number":17,"context_line":"created won\u0027t belong to any namespace."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I13f6386f66305575262233703f6c616e7214f704"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_07d5e0e4","line":17,"updated":"2014-07-22 09:36:18.000000000","message":"I don\u0027t understand the relationship between the namespace and the ovs port. Can you elaborate further please?","commit_id":"e2e0d619ee1b0454155e1e022adf7f64064b79b6"},{"author":{"_account_id":11280,"name":"Jun Wu","email":"quark@lihdd.net","username":"quark"},"change_message_id":"96ff7ca0fa554a52428a00d90c0793c208c7ca28","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This patch moves out the del-port part from the long `ovs-vsctl`"},{"line_number":16,"context_line":"command, make sure the device is deleted first so the new device"},{"line_number":17,"context_line":"created won\u0027t belong to any namespace."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I13f6386f66305575262233703f6c616e7214f704"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_1f7b64bf","line":17,"in_reply_to":"baada198_07d5e0e4","updated":"2014-07-22 10:34:11.000000000","message":"ovs port is not directly related to a namespace but if the port\u0027s type is \"internal\", it has a device. And the device may belong to a namespace.\n\nIn fact, _ovs_add_port is used by \"OVSInterfaceDriver.plug\". And it will set a namespace to the device:\n\n    self._ovs_add_port(bridge, tap_name, port_id, mac_address,\n                       internal\u003dinternal)\n    ....\n    # Add an interface created by ovs to the namespace.\n    if not self.conf.ovs_use_veth and namespace:\n        namespace_obj \u003d ip.ensure_namespace(namespace)\n        namespace_obj.add_device_to_namespace(ns_dev)\n\nIf the device belongs to  a wrong or deleted namespace, all `ip` commands will fail including `namespace_obj.add_device_to_namespace(ns_dev)`.","commit_id":"e2e0d619ee1b0454155e1e022adf7f64064b79b6"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"5cbe11e4fe27b02db33cf06bd4d12d628b77a533","unresolved":false,"context_lines":[{"line_number":15,"context_line":"This patch moves out the del-port part from the long `ovs-vsctl`"},{"line_number":16,"context_line":"command, make sure the device is deleted first so the new device"},{"line_number":17,"context_line":"created won\u0027t belong to any namespace."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Change-Id: I13f6386f66305575262233703f6c616e7214f704"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_67321c60","line":18,"updated":"2014-07-22 09:36:18.000000000","message":"Please file a bug and add the bug number here:\n\nFixes-bug: ###","commit_id":"e2e0d619ee1b0454155e1e022adf7f64064b79b6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"ce3b7fd56ea07db1a236c64b0edadbb3a2d9881a","unresolved":false,"context_lines":[{"line_number":12,"context_line":"`ip` is used to set mac address, mtu, namespace for the device."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Current usage of `ip` commands requires the created device to not"},{"line_number":15,"context_line":"belong to any namespace. This cannot be guarnteed if the device"},{"line_number":16,"context_line":"is already in a wrong or deleted namespace before the `ovs-vsctl`"},{"line_number":17,"context_line":"command. `ovs-vsctl` can delete devices managed by ovs even if the"},{"line_number":18,"context_line":"device is in a deleted namespace but it will ignore the delete"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"fa98f980_03c938ac","line":15,"updated":"2014-09-17 12:52:35.000000000","message":"guarnteed -\u003e quaranteed","commit_id":"e60b0c6addf8544bb11663f3ba10def8640802dd"}],"neutron/tests/unit/test_linux_interface.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3ab10517c14036cc53e79013678bf39a9962b709","unresolved":false,"context_lines":[{"line_number":232,"context_line":"                     bridge\u003dbridge,"},{"line_number":233,"context_line":"                     namespace\u003dnamespace)"},{"line_number":234,"context_line":"            execute.assert_any_call(vsctl_del_cmd, \u0027sudo\u0027)"},{"line_number":235,"context_line":"            execute.assert_called_with(vsctl_add_cmd, \u0027sudo\u0027)"},{"line_number":236,"context_line":"            self.assertEqual(2, execute.call_count)"},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"        expected \u003d [mock.call(\u0027sudo\u0027),"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa98f980_7550fbd4","line":235,"updated":"2014-09-17 13:58:32.000000000","message":"why don\u0027t you use assert_has_calls?","commit_id":"31206aafe29fd1591d0be80efc24e1d914e99476"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3ab10517c14036cc53e79013678bf39a9962b709","unresolved":false,"context_lines":[{"line_number":319,"context_line":"                     namespace\u003dnamespace,"},{"line_number":320,"context_line":"                     prefix\u003dprefix)"},{"line_number":321,"context_line":"            execute.assert_any_call(vsctl_del_cmd, \u0027sudo\u0027)"},{"line_number":322,"context_line":"            execute.assert_called_with(vsctl_add_cmd, \u0027sudo\u0027)"},{"line_number":323,"context_line":"            self.assertEqual(2, execute.call_count)"},{"line_number":324,"context_line":""},{"line_number":325,"context_line":"        ns_dev.assert_has_calls("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa98f980_b56183aa","line":322,"updated":"2014-09-17 13:58:32.000000000","message":"ditto","commit_id":"31206aafe29fd1591d0be80efc24e1d914e99476"}]}
