)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6598,"name":"Berezovsky Irena","email":"irenab.dev@gmail.com","username":"irenab"},"change_message_id":"265a51e1461e1578797647a4c36ad19eb64931b8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Steven Weston \u003csteve.weston@cheerful.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-27 03:11:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Closes-Bug: 1163569"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_4b9c7e0e","line":7,"updated":"2014-07-27 11:23:25.000000000","message":"please rearrange commit message according to guidelines at:\nhttps://wiki.openstack.org/wiki/Gerrit_Workflow#Commiting Changes.","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"73e2479b631f1c8fcd99cc07054f83d60cc13603","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Steven Weston \u003csteve.weston@cheerful.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-07-27 03:11:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Closes-Bug: 1163569"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"baada198_0b4b6687","line":7,"in_reply_to":"baada198_4b9c7e0e","updated":"2014-07-27 11:43:30.000000000","message":"+1","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Steven Weston \u003csteve.weston@triniplex.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-11-13 20:10:19 -0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_ee1aed7b","line":7,"updated":"2014-11-14 05:36:26.000000000","message":"This like should go at the bottom of the commit message","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Steven Weston \u003csteve.weston@triniplex.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-11-13 20:10:19 -0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_83e049fb","line":7,"in_reply_to":"5a890539_ee1aed7b","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"},{"line_number":11,"context_line":"in /etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini"},{"line_number":12,"context_line":"from:"},{"line_number":13,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSInterfaceDriver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_4e16a156","line":10,"updated":"2014-11-14 05:36:26.000000000","message":"I think it\u0027s unnecessary to describe how to test the patch in the commit message","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"},{"line_number":11,"context_line":"in /etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini"},{"line_number":12,"context_line":"from:"},{"line_number":13,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSInterfaceDriver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_a396254a","line":10,"in_reply_to":"5a890539_2d65c41d","updated":"2014-11-14 20:30:05.000000000","message":"I voted -1 in the workflow.","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"},{"line_number":11,"context_line":"in /etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini"},{"line_number":12,"context_line":"from:"},{"line_number":13,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSInterfaceDriver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_03c37957","line":10,"in_reply_to":"5a890539_4e16a156","updated":"2014-11-14 20:30:05.000000000","message":"I removed this from the commit message.  However, I do not see how changing the lbaas_agent.ini file in the tree will cause this to be tested in the gate.  Please provide direction on how to do this.","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09d6a9b773ee71be9d5621977f8a6558af3c52b8","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Closes-Bug: 1163569 security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on"},{"line_number":10,"context_line":"loadbalancer VIP.  Test by changing the interface_driver"},{"line_number":11,"context_line":"in /etc/neutron/services/loadbalancer/haproxy/lbaas_agent.ini"},{"line_number":12,"context_line":"from:"},{"line_number":13,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSInterfaceDriver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_2d65c41d","line":10,"in_reply_to":"5a890539_4e16a156","updated":"2014-11-14 18:11:17.000000000","message":"and it\u0027s confusing ... the default interface_driver has been changed for testing the change? If so, you should add WIP in the title or vote -1 in workflow category.","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09d6a9b773ee71be9d5621977f8a6558af3c52b8","unresolved":false,"context_lines":[{"line_number":15,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSHybridInterfaceDriver"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Loadbalancer VIP tap device is now plugged into a linux bridge first,"},{"line_number":18,"context_line":"so that iptables rules are created appropriately.  A veth pair is"},{"line_number":19,"context_line":"created to connect the linux bridge to the ovs bridge."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Change-Id: I064e3c0713000bd0c53f375a7f56a0dfb82c1ecd"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_4d513035","line":18,"updated":"2014-11-14 18:11:17.000000000","message":"Why using a veth? an OVS \"internal\" port should work","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":15,"context_line":"interface_driver \u003d neutron.agent.linux.interface.OVSHybridInterfaceDriver"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Loadbalancer VIP tap device is now plugged into a linux bridge first,"},{"line_number":18,"context_line":"so that iptables rules are created appropriately.  A veth pair is"},{"line_number":19,"context_line":"created to connect the linux bridge to the ovs bridge."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Change-Id: I064e3c0713000bd0c53f375a7f56a0dfb82c1ecd"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5a890539_437bc18b","line":18,"in_reply_to":"5a890539_4d513035","updated":"2014-11-14 20:30:05.000000000","message":"Using a veth pair is necessary.  The veth pair connects the tap device from the load balancer VIP to the linux bridge, and then to the ovs integration bridge.  This is what allows the iptables rules to be applied.  An OVS \"internal\" port should be used in the case that the tap device is plugged directly into the ovs bridge. See the discussion here for details: https://ask.openstack.org/en/question/4276/what-is-the-internal-interface-and-port-for-on-openvswitch/","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"57a948f608af953fd6dd6f3ee1713384af103c83","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Steven Weston \u003csteve.weston@triniplex.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-12-03 16:39:51 -0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Security groups don\u0027t work with vip and ovs plugin"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Implements OVSHybridInterfaceDriver for port security on loadbalancer"},{"line_number":10,"context_line":"VIP. Loadbalancer VIP tap device is now plugged into a linux bridge"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"3a961159_506ef72f","line":7,"updated":"2015-01-08 07:20:39.000000000","message":"This should be a description of the code change","commit_id":"c47923652860556949af65435258b323dc8964c6"}],"neutron/agent/linux/interface.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"20108c00fb5acbf321f73f6837e266f05417c6d7","unresolved":false,"context_lines":[{"line_number":154,"context_line":"        return (\"tap%s\" % port_id)[:self.DEV_NAME_LEN]"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    def _get_veth_pair_names(self, port_id):"},{"line_number":158,"context_line":"        return ((\"qvb%s\" % port_id)[:self.DEV_NAME_LEN],"},{"line_number":159,"context_line":"                (\"qvo%s\" % port_id)[:self.DEV_NAME_LEN])"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_7f300ee9","line":157,"updated":"2014-07-28 08:40:41.000000000","message":"nova currently uses veth pair to interconnect br-int and qbrXXX, do we need to do the same (currently veth are no more used by neutron)?","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"20108c00fb5acbf321f73f6837e266f05417c6d7","unresolved":false,"context_lines":[{"line_number":236,"context_line":"            ns_dev \u003d ip.device(device_name)"},{"line_number":237,"context_line":"            ns_dev.link.set_up()"},{"line_number":238,"context_line":"        else:"},{"line_number":239,"context_line":"            LOG.info(_(\"tap device %s already exists\"), tap_dev)"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"        # Create linux bridge veth device and ovs bridge veth device"},{"line_number":242,"context_line":"        qvb_dev, qvo_dev \u003d ip.add_veth(veth_qvb_name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_0c09b283","line":239,"updated":"2014-07-28 08:40:41.000000000","message":"could you avoid _() use and use instead _LI, _LW, _LE, _LC?\n\nsee https://review.openstack.org/107137","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"20108c00fb5acbf321f73f6837e266f05417c6d7","unresolved":false,"context_lines":[{"line_number":284,"context_line":"            qvo_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    def unplug(self, device_name, bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":287,"context_line":"        \"\"\"Unplug the interface.\"\"\""},{"line_number":288,"context_line":"        tap_name \u003d device_name"},{"line_number":289,"context_line":"        veth_qvb_dev \u003d device_name.replace(\u0027tap\u0027, \u0027qvb\u0027)"},{"line_number":290,"context_line":"        veth_qvo_dev \u003d device_name.replace(\u0027tap\u0027, \u0027qvo\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_1fcab29f","line":287,"updated":"2014-07-28 08:40:41.000000000","message":"nova sometimes fails to destroy qvoXXX, qvbXXX and qbrXXX, any intention to provide a safer unplug","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"73e2479b631f1c8fcd99cc07054f83d60cc13603","unresolved":false,"context_lines":[{"line_number":300,"context_line":"                device \u003d ip_lib.IPDevice(veth_qvo_dev,"},{"line_number":301,"context_line":"                                         self.root_helper)"},{"line_number":302,"context_line":"                device.link.delete()"},{"line_number":303,"context_line":"                LOG.debug(_(\"Unplugged interface \u0027%s\u0027\"), veth_qvo_dev)"},{"line_number":304,"context_line":"        except RuntimeError:"},{"line_number":305,"context_line":"            LOG.error(_(\"Failed unplugging interface \u0027%s\u0027\"),"},{"line_number":306,"context_line":"                      device_name)"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_cb7deeb3","line":303,"updated":"2014-07-27 11:43:30.000000000","message":"debug messages don\u0027t need translation","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"73e2479b631f1c8fcd99cc07054f83d60cc13603","unresolved":false,"context_lines":[{"line_number":312,"context_line":"            device \u003d ip_lib.IPDevice(tap_name,"},{"line_number":313,"context_line":"                                     self.root_helper)"},{"line_number":314,"context_line":"            device.link.delete()"},{"line_number":315,"context_line":"            LOG.debug(_(\"Unplugged interface \u0027%s\u0027\"), tap_name)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        if ip_lib.device_exists(br_name):"},{"line_number":318,"context_line":"            device \u003d ip_lib.IPDevice(br_name,"}],"source_content_type":"text/x-python","patch_set":1,"id":"baada198_eb78f2c2","line":315,"updated":"2014-07-27 11:43:30.000000000","message":"same as above","commit_id":"5747c978be2c89378efdf9b99771b488e2dbeb09"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09d6a9b773ee71be9d5621977f8a6558af3c52b8","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    # Get the names of the interfaces"},{"line_number":201,"context_line":"    def _get_tap_name(self, port_id):"},{"line_number":202,"context_line":"        return (\"tap%s\" % port_id)[:self.DEV_NAME_LEN]"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def _get_veth_pair_names(self, port_id):"},{"line_number":205,"context_line":"        return ((\"qvb%s\" % port_id)[:self.DEV_NAME_LEN],"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_ad2614cc","line":202,"updated":"2014-11-14 18:11:17.000000000","message":"you should define a constant for tap/qvb/qvo/qbr prefixes","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    # Get the names of the interfaces"},{"line_number":201,"context_line":"    def _get_tap_name(self, port_id):"},{"line_number":202,"context_line":"        return (\"tap%s\" % port_id)[:self.DEV_NAME_LEN]"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def _get_veth_pair_names(self, port_id):"},{"line_number":205,"context_line":"        return ((\"qvb%s\" % port_id)[:self.DEV_NAME_LEN],"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_19a84a76","line":202,"in_reply_to":"5a890539_ad2614cc","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":274,"context_line":"            ns_dev \u003d ip.device(device_name)"},{"line_number":275,"context_line":"            ns_dev.link.set_up()"},{"line_number":276,"context_line":"        else:"},{"line_number":277,"context_line":"            LOG.info(_(\"tap device %s already exists\"), tap_dev)"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"        # Create linux bridge veth device and ovs bridge veth device"},{"line_number":280,"context_line":"        qvb_dev, qvo_dev \u003d ip.add_veth(veth_qvb_name,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_510d6636","line":277,"updated":"2014-11-14 05:36:26.000000000","message":"no logging i18n should follow the new rules (here and below):\n LOG.info(_LI( ... ))\nSee usage in other files","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":274,"context_line":"            ns_dev \u003d ip.device(device_name)"},{"line_number":275,"context_line":"            ns_dev.link.set_up()"},{"line_number":276,"context_line":"        else:"},{"line_number":277,"context_line":"            LOG.info(_(\"tap device %s already exists\"), tap_dev)"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"        # Create linux bridge veth device and ovs bridge veth device"},{"line_number":280,"context_line":"        qvb_dev, qvo_dev \u003d ip.add_veth(veth_qvb_name,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_c37a5123","line":277,"in_reply_to":"5a890539_510d6636","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"09d6a9b773ee71be9d5621977f8a6558af3c52b8","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        if not ip_lib.device_exists(br_name):"},{"line_number":285,"context_line":"            self._br_add_bridge(br_name)"},{"line_number":286,"context_line":"        else:"},{"line_number":287,"context_line":"            LOG.info(_(\"Linux Bridge %s already exists\"), br_name)"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        # Attach the tap device to the linux bridge"},{"line_number":290,"context_line":"        self._br_add_port(br_name, tap_dev)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_6d10ac59","line":287,"updated":"2014-11-14 18:11:17.000000000","message":"use _LI() instead of _()","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        if not ip_lib.device_exists(br_name):"},{"line_number":285,"context_line":"            self._br_add_bridge(br_name)"},{"line_number":286,"context_line":"        else:"},{"line_number":287,"context_line":"            LOG.info(_(\"Linux Bridge %s already exists\"), br_name)"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        # Attach the tap device to the linux bridge"},{"line_number":290,"context_line":"        self._br_add_port(br_name, tap_dev)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_e373cd4b","line":287,"in_reply_to":"5a890539_6d10ac59","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        if ip_lib.device_exists(qvb_dev):"},{"line_number":297,"context_line":"            self._br_add_port(br_name, qvb_dev)"},{"line_number":298,"context_line":"            qvb_dev.link.set_up()"},{"line_number":299,"context_line":"        else:"},{"line_number":300,"context_line":"            LOG.info(_(\"Linux bridge veth interface %s was not created\"),"},{"line_number":301,"context_line":"                     qvb_dev)"},{"line_number":302,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_d1187677","line":299,"updated":"2014-11-14 05:36:26.000000000","message":"Is it fine to continue?","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        if ip_lib.device_exists(qvb_dev):"},{"line_number":297,"context_line":"            self._br_add_port(br_name, qvb_dev)"},{"line_number":298,"context_line":"            qvb_dev.link.set_up()"},{"line_number":299,"context_line":"        else:"},{"line_number":300,"context_line":"            LOG.info(_(\"Linux bridge veth interface %s was not created\"),"},{"line_number":301,"context_line":"                     qvb_dev)"},{"line_number":302,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_23915547","line":299,"in_reply_to":"5a890539_d1187677","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ovs \u003d ovs_lib.OVSBridge(ovs_bridge, self.root_helper)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"        # Create the ovs bridge if it does not exist"},{"line_number":308,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":309,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_311ffa5c","line":308,"updated":"2014-11-14 05:36:26.000000000","message":"Are you sure VIF driver called within lbaas agent is a good place to create OVS integration bridge?","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        ovs \u003d ovs_lib.OVSBridge(ovs_bridge, self.root_helper)"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"        # Create the ovs bridge if it does not exist"},{"line_number":308,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":309,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":310,"context_line":""},{"line_number":311,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_03ed39b7","line":308,"in_reply_to":"5a890539_311ffa5c","updated":"2014-11-14 20:30:05.000000000","message":"How do you suggest this should be handled?  if the bridge does not exist, then raise an exception(I believe this is how other drivers handle this situation).  I can do that, but I would prefer to handle this in a more sophisticated fashion .. i.e. calling the ovs agent to create the bridge.  Suggestions?","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"d02216c35c8cf1b8eceada679144125afea11587","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"},{"line_number":314,"context_line":"                               internal\u003dFalse)"},{"line_number":315,"context_line":"            qvo_dev.link.set_up()"},{"line_number":316,"context_line":"        else:"},{"line_number":317,"context_line":"            LOG.info(_(\"OVS veth interface %s was not created\"), qvo_dev)"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        if self.conf.network_device_mtu:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_91398ed9","line":316,"updated":"2014-11-14 05:36:26.000000000","message":"same as above: I think exception should be raised in this case.","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"82d19e05016d83aa2e6c8ae1a1c9c5a6fea6221f","unresolved":false,"context_lines":[{"line_number":313,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"},{"line_number":314,"context_line":"                               internal\u003dFalse)"},{"line_number":315,"context_line":"            qvo_dev.link.set_up()"},{"line_number":316,"context_line":"        else:"},{"line_number":317,"context_line":"            LOG.info(_(\"OVS veth interface %s was not created\"), qvo_dev)"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        if self.conf.network_device_mtu:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_a3270511","line":316,"in_reply_to":"5a890539_91398ed9","updated":"2014-11-14 20:30:05.000000000","message":"Done","commit_id":"584d2c93838cbc8e6ca9ae66580ea2eb68eb3da9"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":220,"context_line":"               \u0027add-port\u0027, bridge, device_name]"},{"line_number":221,"context_line":"        if internal:"},{"line_number":222,"context_line":"            cmd +\u003d [\u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name, \u0027type\u003dinternal\u0027]"},{"line_number":223,"context_line":"        cmd +\u003d [\u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name,"},{"line_number":224,"context_line":"                \u0027external-ids:iface-id\u003d%s\u0027 % port_id,"},{"line_number":225,"context_line":"                \u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name,"},{"line_number":226,"context_line":"                \u0027external-ids:iface-status\u003dactive\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_59f57255","line":223,"updated":"2014-11-14 21:00:33.000000000","message":"iirc, OVS allows to specify all updates using a unique \"set\" command:\n\n  os-vsctl ... -- set Interface $device_name type\u003dinternal external-ids:iface-id\u003d%s ...","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":220,"context_line":"               \u0027add-port\u0027, bridge, device_name]"},{"line_number":221,"context_line":"        if internal:"},{"line_number":222,"context_line":"            cmd +\u003d [\u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name, \u0027type\u003dinternal\u0027]"},{"line_number":223,"context_line":"        cmd +\u003d [\u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name,"},{"line_number":224,"context_line":"                \u0027external-ids:iface-id\u003d%s\u0027 % port_id,"},{"line_number":225,"context_line":"                \u0027--\u0027, \u0027set\u0027, \u0027Interface\u0027, device_name,"},{"line_number":226,"context_line":"                \u0027external-ids:iface-status\u003dactive\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_449c9e6a","line":223,"in_reply_to":"5a890539_59f57255","updated":"2014-12-05 10:18:20.000000000","message":"I don\u0027t quite understand your comment, are you suggesting a change to the code here?","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":228,"context_line":"                \u0027external-ids:attached-mac\u003d%s\u0027 % mac_address]"},{"line_number":229,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def _br_add_bridge(self, bridge):"},{"line_number":232,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027addbr\u0027, bridge]"},{"line_number":233,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":234,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, bridge, \u0027up\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_d4ada9ea","line":231,"updated":"2014-11-14 21:00:33.000000000","message":"The method shares lots of code with linuxbridge agent[1], certainly because there is no equivalent of ovs_lib module for brctl commands.\n\n\n[1]https://github.com/openstack/neutron/blob/master/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py#L290-L319","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":228,"context_line":"                \u0027external-ids:attached-mac\u003d%s\u0027 % mac_address]"},{"line_number":229,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"    def _br_add_bridge(self, bridge):"},{"line_number":232,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027addbr\u0027, bridge]"},{"line_number":233,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":234,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, bridge, \u0027up\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_24e5d208","line":231,"in_reply_to":"5a890539_d4ada9ea","updated":"2014-12-05 10:18:20.000000000","message":"That\u0027s correct.  In your opinion, should there be a lib module for brctl commands?  I did not create one in this patch for two reasons:\n1.  that would introduce an additional change to this patch set, and I do not know if this follows the proper workflow.\n2.  currently, afaik, there is no other code in neutron which would need this.\n\nIf there is an objective need for this to be a library(i.e. something else in neutron will use it), then please suggest how you would proceed.","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":249,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027delif\u0027, bridge, device_name]"},{"line_number":250,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    def _namespace_delete(self, namespace):"},{"line_number":253,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027delete\u0027, namespace]"},{"line_number":254,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":255,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_b92656cc","line":252,"updated":"2014-11-14 21:00:33.000000000","message":"already defined as ip_lib IpNetnsCommand.delete","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":249,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027delif\u0027, bridge, device_name]"},{"line_number":250,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":251,"context_line":""},{"line_number":252,"context_line":"    def _namespace_delete(self, namespace):"},{"line_number":253,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027netns\u0027, \u0027delete\u0027, namespace]"},{"line_number":254,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":255,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_84c84623","line":252,"in_reply_to":"5a890539_b92656cc","updated":"2014-12-05 10:18:20.000000000","message":"will remove the method","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":304,"context_line":"            self._br_add_port(br_name, qvb_dev)"},{"line_number":305,"context_line":"            qvb_dev.link.set_up()"},{"line_number":306,"context_line":"        except RuntimeError:"},{"line_number":307,"context_line":"            LOG.error(_LI(\"Linux bridge veth interface %s was not created\"),"},{"line_number":308,"context_line":"                     qvb_dev)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        ovs_bridge \u003d self.conf.ovs_integration_bridge"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_14b9f114","line":307,"updated":"2014-11-14 21:00:33.000000000","message":"you should use \n\n* _LI in LOG.info\n* _LW in LOG.warning\n* _LE in LOG.exception/error\n* _LC in LOG.critical\n* nothing in LOG.debug","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":304,"context_line":"            self._br_add_port(br_name, qvb_dev)"},{"line_number":305,"context_line":"            qvb_dev.link.set_up()"},{"line_number":306,"context_line":"        except RuntimeError:"},{"line_number":307,"context_line":"            LOG.error(_LI(\"Linux bridge veth interface %s was not created\"),"},{"line_number":308,"context_line":"                     qvb_dev)"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"        ovs_bridge \u003d self.conf.ovs_integration_bridge"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_24d952f3","line":307,"in_reply_to":"5a890539_14b9f114","updated":"2014-12-05 10:18:20.000000000","message":"Done","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"9ca2ee0dcc27db728645a09fce13fb3cc5183621","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        ovs \u003d ovs_lib.OVSBridge(ovs_bridge, self.root_helper)"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        # Create the ovs bridge if it does not exist"},{"line_number":314,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":315,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_37e70e14","line":314,"updated":"2014-11-21 08:29:18.000000000","message":"I don\u0027t see any other VIF driver trying to create integration bridge.\nIt\u0027s not VIF driver\u0027s task.\nIf there\u0027s no integration bridge - raise an exception","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        ovs \u003d ovs_lib.OVSBridge(ovs_bridge, self.root_helper)"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        # Create the ovs bridge if it does not exist"},{"line_number":314,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":315,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_242312be","line":314,"in_reply_to":"5a890539_37e70e14","updated":"2014-12-05 10:18:20.000000000","message":"Done","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":315,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"},{"line_number":318,"context_line":"        try:"},{"line_number":319,"context_line":"            ip_lib.device_exists(qvo_dev, self.root_helper)"},{"line_number":320,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_b4e81de3","line":317,"updated":"2014-11-14 21:00:33.000000000","message":"Why do we need a veth? It seems we can bind qbr to the br-int using an internal interface?","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":314,"context_line":"        if not ovs.bridge_exists(ovs_bridge):"},{"line_number":315,"context_line":"            ovs.add_bridge(ovs_bridge)"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"},{"line_number":318,"context_line":"        try:"},{"line_number":319,"context_line":"            ip_lib.device_exists(qvo_dev, self.root_helper)"},{"line_number":320,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_bb06401a","line":317,"in_reply_to":"5a890539_b4e81de3","updated":"2014-12-05 10:18:20.000000000","message":"reviewing the ovs vport code here: https://github.com/openvswitch/ovs/blob/master/datapath/vport-internal_dev.c \n\nthis must be a veth pair for iptables rules to be applied as inbound and outbound rules","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"},{"line_number":318,"context_line":"        try:"},{"line_number":319,"context_line":"            ip_lib.device_exists(qvo_dev, self.root_helper)"},{"line_number":320,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"},{"line_number":321,"context_line":"                               internal\u003dFalse)"},{"line_number":322,"context_line":"            qvo_dev.link.set_up()"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_74db154f","line":319,"updated":"2014-11-14 21:00:33.000000000","message":"it should be \n\n  if ip_lib ...","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        # Attach the OVS veth side of the pair to the OVS bridge"},{"line_number":318,"context_line":"        try:"},{"line_number":319,"context_line":"            ip_lib.device_exists(qvo_dev, self.root_helper)"},{"line_number":320,"context_line":"            self._ovs_add_port(ovs_bridge, qvo_dev, port_id, mac_address,"},{"line_number":321,"context_line":"                               internal\u003dFalse)"},{"line_number":322,"context_line":"            qvo_dev.link.set_up()"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_181e7a0c","line":319,"in_reply_to":"5a890539_74db154f","updated":"2014-12-05 10:18:20.000000000","message":"Done","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        if self.conf.network_device_mtu:"},{"line_number":327,"context_line":"            tap_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":328,"context_line":"            qvb_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":329,"context_line":"            qvo_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    def unplug(self, device_name, bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":332,"context_line":"        \"\"\"Unplug the interface.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_f452a5dc","line":329,"updated":"2014-11-14 21:00:33.000000000","message":"Do we need to set qbr mtu?","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":326,"context_line":"        if self.conf.network_device_mtu:"},{"line_number":327,"context_line":"            tap_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":328,"context_line":"            qvb_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":329,"context_line":"            qvo_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"    def unplug(self, device_name, bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":332,"context_line":"        \"\"\"Unplug the interface.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_78b77ed8","line":329,"in_reply_to":"5a890539_f452a5dc","updated":"2014-12-05 10:18:20.000000000","message":"this is a good question, the answer is no.\nhttps://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/bridge/br.c?id\u003drefs/tags/v3.18-rc6\n\nthe mtu of the bridge is set to the mtu of the device on the bridge with the smallest value.  Setting the mtu of the devices on the bridge seems like the correct approach here.","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        if ip_lib.device_exists(br_name):"},{"line_number":364,"context_line":"            device \u003d ip_lib.IPDevice(br_name,"},{"line_number":365,"context_line":"                                     self.root_helper)"},{"line_number":366,"context_line":"            device.link.set_down()"},{"line_number":367,"context_line":"            self._br_del_bridge(br_name)"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        if namespace:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_b473bd7e","line":366,"updated":"2014-11-14 21:00:33.000000000","message":"IMHO, device.link.set_down() should be done in _br_del_bridge","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":363,"context_line":"        if ip_lib.device_exists(br_name):"},{"line_number":364,"context_line":"            device \u003d ip_lib.IPDevice(br_name,"},{"line_number":365,"context_line":"                                     self.root_helper)"},{"line_number":366,"context_line":"            device.link.set_down()"},{"line_number":367,"context_line":"            self._br_del_bridge(br_name)"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        if namespace:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_9bc0a451","line":366,"in_reply_to":"5a890539_b473bd7e","updated":"2014-12-05 10:18:20.000000000","message":"Done","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            self._br_del_bridge(br_name)"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        if namespace:"},{"line_number":370,"context_line":"            self._namespace_delete(namespace)"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"class OVSInterfaceDriver(LinuxInterfaceDriver):"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_1446514f","line":370,"updated":"2014-11-14 21:00:33.000000000","message":"you should use IpWrapper.netns.delete","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":9278,"name":"Steven Weston","email":"steve.weston@triniplex.com","username":"steven-weston"},"change_message_id":"10c4118f589fab26b8ade60ef4f23752fecae96f","unresolved":false,"context_lines":[{"line_number":367,"context_line":"            self._br_del_bridge(br_name)"},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        if namespace:"},{"line_number":370,"context_line":"            self._namespace_delete(namespace)"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"class OVSInterfaceDriver(LinuxInterfaceDriver):"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_bb1d6064","line":370,"in_reply_to":"5a890539_1446514f","updated":"2014-12-05 10:18:20.000000000","message":"Done","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":443,"context_line":"            if self.conf.ovs_use_veth:"},{"line_number":444,"context_line":"                root_dev.link.set_up()"},{"line_number":445,"context_line":"        else:"},{"line_number":446,"context_line":"            LOG.info(_LI(\"Device %s already exists\"), device_name)"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"    def unplug(self, device_name, bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":449,"context_line":"        \"\"\"Unplug the interface.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_146731b8","line":446,"updated":"2014-11-14 21:00:33.000000000","message":"out of scope","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"f8a5d05908a9c3edbaec1fd980f61b688afc6aaa","unresolved":false,"context_lines":[{"line_number":461,"context_line":"                                         self.root_helper,"},{"line_number":462,"context_line":"                                         namespace)"},{"line_number":463,"context_line":"                device.link.delete()"},{"line_number":464,"context_line":"                LOG.debug(_LI(\"Unplugged interface \u0027%s\u0027\"), device_name)"},{"line_number":465,"context_line":"        except RuntimeError:"},{"line_number":466,"context_line":"            LOG.error(_LI(\"Failed unplugging interface \u0027%s\u0027\"),"},{"line_number":467,"context_line":"                      device_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_540c59ed","line":464,"updated":"2014-11-14 21:00:33.000000000","message":"itto\n\nditto","commit_id":"217bf19971d27226ff18b821e9ae9d23c2dad5df"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":196,"context_line":"    VETH_OVS_NAME_PREFIX \u003d \u0027qvo\u0027"},{"line_number":197,"context_line":"    LINUX_BRIDGE_NAME_PREFIX \u003d \u0027qbr\u0027"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"    def __init__(self, conf):"},{"line_number":200,"context_line":"        super(OVSHybridInterfaceDriver, self).__init__(conf)"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    # Get the names of the interfaces"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_5170cba3","line":199,"updated":"2014-12-22 20:53:09.000000000","message":"This method is unnecessary - the parent class\u0027s __init__ will be called automatically if this class doesn\u0027t define it.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":199,"context_line":"    def __init__(self, conf):"},{"line_number":200,"context_line":"        super(OVSHybridInterfaceDriver, self).__init__(conf)"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    # Get the names of the interfaces"},{"line_number":203,"context_line":"    def _get_tap_name(self, port_id):"},{"line_number":204,"context_line":"        return (\"%s%s\" % (self.DEV_NAME_PREFIX,"},{"line_number":205,"context_line":"                          port_id))[:self.DEV_NAME_LEN]"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_f19d37bd","line":202,"updated":"2014-12-22 20:53:09.000000000","message":"Please avoid documenting methods outside of their scope.  Docstrings are preferable.  In this case, though, the purpose of the method is obvious from looking at it, so additional documentation should not be necessary.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def _br_add_bridge(self, bridge):"},{"line_number":229,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027addbr\u0027, bridge]"},{"line_number":230,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":231,"context_line":"        cmd \u003d [\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, bridge, \u0027up\u0027]"},{"line_number":232,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":233,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027setfd\u0027, bridge, 0]"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_91923355","line":230,"updated":"2014-12-22 20:53:09.000000000","message":"If bridge addition succeeds but subsequent configuration fails, the system will be left in an unusable state.  The bridge will be detected as existing in plug() and this method will never be called again.  I think this situation can and should be improved, such that transient failure does not require manual intervention to resolve it.\n\nIt probably makes sense to think about how similar failures will affect other aspects of device management that this change relies on.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":246,"context_line":"        cmd \u003d [\u0027brctl\u0027, \u0027delif\u0027, bridge, device_name]"},{"line_number":247,"context_line":"        utils.execute(cmd, self.root_helper)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def _br_del_bridge(self, bridge, veth_qvb_dev):"},{"line_number":250,"context_line":"        device \u003d ip_lib.IPDevice(veth_qvb_dev,"},{"line_number":251,"context_line":"                                 self.root_helper)"},{"line_number":252,"context_line":"        device.link.set_down()"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_f107f7c7","line":249,"updated":"2014-12-22 20:53:09.000000000","message":"Please avoid the use of opaque abbreviations or short-forms in variables names (i.e. \u0027qvb\u0027)\n\nAlso, consider checking whether the bridge needs to be deleted in this method rather than separately.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":256,"context_line":"        device.link.set_down()"},{"line_number":257,"context_line":"        device.link.delete()"},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"    def plug(self, network_id, port_id, device_name, mac_address,"},{"line_number":260,"context_line":"             bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":261,"context_line":"        \"\"\"Plug the interface.\"\"\""},{"line_number":262,"context_line":"        tap_name \u003d self._get_tap_name(port_id)"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_3ec94eac","line":259,"updated":"2014-12-22 20:53:09.000000000","message":"This method is too long and will be difficult to test.  Please refactor for testability (i.e. into chunks that can be tested independently).","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":258,"context_line":""},{"line_number":259,"context_line":"    def plug(self, network_id, port_id, device_name, mac_address,"},{"line_number":260,"context_line":"             bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":261,"context_line":"        \"\"\"Plug the interface.\"\"\""},{"line_number":262,"context_line":"        tap_name \u003d self._get_tap_name(port_id)"},{"line_number":263,"context_line":"        veth_qvb_name, veth_qvo_name \u003d self._get_veth_pair_names(port_id)"},{"line_number":264,"context_line":"        br_name \u003d self._get_br_name(port_id)"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_51f52beb","line":261,"updated":"2014-12-22 20:53:09.000000000","message":"This docstring doesn\u0027t appear to add any value.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        ip \u003d ip_lib.IPWrapper(self.root_helper)"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        if not ip_lib.device_exists(device_name,"},{"line_number":276,"context_line":"                                self.root_helper,"},{"line_number":277,"context_line":"                                namespace\u003dnamespace):"},{"line_number":278,"context_line":"            self.check_bridge_exists(ovs_bridge)"},{"line_number":279,"context_line":"            ns_dev, tap_dev \u003d ip.add_veth(device_name,"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_3125ff5b","line":276,"updated":"2014-12-22 20:53:09.000000000","message":"Please align parameters with the opening bracket.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        # Create veth devices and attach the ovs bridge veth device"},{"line_number":301,"context_line":"        if not ip_lib.device_exists(veth_qvb_name,"},{"line_number":302,"context_line":"                                self.root_helper):"},{"line_number":303,"context_line":"            qvb_dev, qvo_dev \u003d ip.add_veth(veth_qvb_name, veth_qvo_name)"},{"line_number":304,"context_line":"            self._br_add_port(br_name, qvb_dev)"},{"line_number":305,"context_line":"            qvb_dev.link.set_up()"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_f191b747","line":302,"updated":"2014-12-22 20:53:09.000000000","message":"Please align to opening bracket.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":310,"context_line":"            LOG.info(_LI(\"qvb device %s already exists\"), qvb_dev)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        if self.conf.network_device_mtu:"},{"line_number":313,"context_line":"            tap_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":314,"context_line":"            qvb_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":315,"context_line":"            qvo_dev.link.set_mtu(self.conf.network_device_mtu)"},{"line_number":316,"context_line":""}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_11bc83ba","line":313,"updated":"2014-12-22 20:53:09.000000000","message":"(No action required) code golf\n\nfor dev in (tap_dev, qvb_dev, qvo_dev):\n  dev.link.set_mtu(self.conf.network_device_mtu)","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    def unplug(self, device_name, bridge\u003dNone, namespace\u003dNone, prefix\u003dNone):"},{"line_number":318,"context_line":"        \"\"\"Unplug the interface.\"\"\""},{"line_number":319,"context_line":"        tap_name \u003d device_name"},{"line_number":320,"context_line":"        veth_qvb_dev \u003d device_name.replace(\u0027tap\u0027, \u0027qvb\u0027)"},{"line_number":321,"context_line":"        veth_qvo_dev \u003d device_name.replace(\u0027tap\u0027, \u0027qvo\u0027)"},{"line_number":322,"context_line":"        br_name \u003d device_name.replace(\u0027tap\u0027, \u0027qbr\u0027)"},{"line_number":323,"context_line":"        ovs_bridge \u003d self.conf.ovs_integration_bridge"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_b1abaf73","line":320,"updated":"2014-12-22 20:53:09.000000000","message":"Please use the class-level constants defining the prefixes.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":327,"context_line":""},{"line_number":328,"context_line":"        try:"},{"line_number":329,"context_line":"            ovs.delete_port(veth_qvo_dev)"},{"line_number":330,"context_line":"            if self.conf.ovs_use_veth:"},{"line_number":331,"context_line":"                device \u003d ip_lib.IPDevice(veth_qvo_dev,"},{"line_number":332,"context_line":"                                         self.root_helper)"},{"line_number":333,"context_line":"                device.link.delete()"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_117f23e1","line":330,"updated":"2014-12-22 20:53:09.000000000","message":"Given that this class doesn\u0027t otherwise reference this configuration setting, I\u0027m surprised to see its use here.  Given that ovs_use_veth indicates that explicit rather than implicit veth creation must be performed, and thus cleaned up, and explicit veth creation is required by this class, I suspect the qvo device should always be deleted rather than conditionally.","commit_id":"c47923652860556949af65435258b323dc8964c6"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"7dc7f4ca123fef7d043fbda16b7190a27c8651b1","unresolved":false,"context_lines":[{"line_number":331,"context_line":"                device \u003d ip_lib.IPDevice(veth_qvo_dev,"},{"line_number":332,"context_line":"                                         self.root_helper)"},{"line_number":333,"context_line":"                device.link.delete()"},{"line_number":334,"context_line":"                LOG.debug(\"Unplugged interface \u0027%s\u0027\", veth_qvo_dev)"},{"line_number":335,"context_line":"        except RuntimeError:"},{"line_number":336,"context_line":"            LOG.error(_LE(\"Failed unplugging interface \u0027%s\u0027\"),"},{"line_number":337,"context_line":"                      device_name)"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a961159_d1475ba1","line":334,"updated":"2014-12-22 20:53:09.000000000","message":"Please try to minimize the scope of try blocks by externalizing unnecessary statements, e.g.\n\ntry:\n ...\nexcept:\n ...\n# executes only on successful exit of try block\nelse:\n LOG.debug(\"Unplugged interface\")","commit_id":"c47923652860556949af65435258b323dc8964c6"}]}
