)]}'
{"nova_powervm/tests/virt/powervm/test_vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"26fc658f960882041b89e0a593089b38de81b763","unresolved":false,"context_lines":[{"line_number":908,"context_line":"    @mock.patch(\u0027nova.network.linux_net.create_ovs_vif_port\u0027)"},{"line_number":909,"context_line":"    @mock.patch(\u0027nova.utils.execute\u0027)"},{"line_number":910,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_trunk_with_free_vlan\u0027)"},{"line_number":911,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.find_orphaned_trunks\u0027)"},{"line_number":912,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_this_partition\u0027)"},{"line_number":913,"context_line":"    def test_pre_live_migrate_at_destination("},{"line_number":914,"context_line":"            self, mock_part_get, mock_find_trunks, mock_trunk_crt,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_01e1d0fe","line":911,"updated":"2017-05-19 21:43:34.000000000","message":"Autospec this.","commit_id":"9614b7dd18802ca4023525bad2b55897d712cdba"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"a5d728094c561d1f0e1c69d90121158d3c5fc342","unresolved":false,"context_lines":[{"line_number":908,"context_line":"    @mock.patch(\u0027nova.network.linux_net.create_ovs_vif_port\u0027)"},{"line_number":909,"context_line":"    @mock.patch(\u0027nova.utils.execute\u0027)"},{"line_number":910,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_trunk_with_free_vlan\u0027)"},{"line_number":911,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.find_orphaned_trunks\u0027)"},{"line_number":912,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_this_partition\u0027)"},{"line_number":913,"context_line":"    def test_pre_live_migrate_at_destination("},{"line_number":914,"context_line":"            self, mock_part_get, mock_find_trunks, mock_trunk_crt,"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_7bced082","line":911,"in_reply_to":"ff0f0b1f_01e1d0fe","updated":"2017-05-22 17:48:41.000000000","message":"Done","commit_id":"9614b7dd18802ca4023525bad2b55897d712cdba"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"26fc658f960882041b89e0a593089b38de81b763","unresolved":false,"context_lines":[{"line_number":940,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003d\u0027tap-dev\u0027)"},{"line_number":941,"context_line":"        mock_find_trunks.assert_called_once_with("},{"line_number":942,"context_line":"            self.adpt, CONF.powervm.pvm_vswitch_for_novalink_io)"},{"line_number":943,"context_line":"        mock_orphan_wrap.delete.assert_called_once()"},{"line_number":944,"context_line":"        mock_crt_ovs_port.assert_called_once_with("},{"line_number":945,"context_line":"            \u0027br-int\u0027, \u0027tap-dev\u0027, \u0027vif_id\u0027, \u0027aa:bb:cc:dd:ee:ff\u0027, self.inst.uuid)"},{"line_number":946,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_e1e7fc11","line":943,"updated":"2017-05-19 21:43:34.000000000","message":"May as well assert_called_once_with()","commit_id":"9614b7dd18802ca4023525bad2b55897d712cdba"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"a5d728094c561d1f0e1c69d90121158d3c5fc342","unresolved":false,"context_lines":[{"line_number":940,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003d\u0027tap-dev\u0027)"},{"line_number":941,"context_line":"        mock_find_trunks.assert_called_once_with("},{"line_number":942,"context_line":"            self.adpt, CONF.powervm.pvm_vswitch_for_novalink_io)"},{"line_number":943,"context_line":"        mock_orphan_wrap.delete.assert_called_once()"},{"line_number":944,"context_line":"        mock_crt_ovs_port.assert_called_once_with("},{"line_number":945,"context_line":"            \u0027br-int\u0027, \u0027tap-dev\u0027, \u0027vif_id\u0027, \u0027aa:bb:cc:dd:ee:ff\u0027, self.inst.uuid)"},{"line_number":946,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff0f0b1f_3bc4d85e","line":943,"in_reply_to":"ff0f0b1f_e1e7fc11","updated":"2017-05-22 17:48:41.000000000","message":"Done","commit_id":"9614b7dd18802ca4023525bad2b55897d712cdba"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"da112bc2e79d861c7c77a547c88c5be8d9c1c187","unresolved":false,"context_lines":[{"line_number":933,"context_line":"        self.assertEqual(vea_vlan_mappings[\u0027aa:bb:cc:dd:ee:ff\u0027], 2)"},{"line_number":934,"context_line":""},{"line_number":935,"context_line":"        # Now validate it called the things it needed to"},{"line_number":936,"context_line":"        self.assertEqual(2, mock_execute.call_count)"},{"line_number":937,"context_line":"        mock_execute.assert_called_with(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, \u0027tap-dev\u0027,"},{"line_number":938,"context_line":"                                        \u0027up\u0027, run_as_root\u003dTrue)"},{"line_number":939,"context_line":"        mock_trunk_crt.assert_called_once_with("},{"line_number":940,"context_line":"            self.adpt, \u0027host_uuid\u0027, [\u0027mgmt_uuid\u0027],"},{"line_number":941,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003d\u0027tap-dev\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_4ea3d301","line":938,"range":{"start_line":936,"start_character":0,"end_line":938,"end_character":63},"updated":"2017-05-25 17:02:33.000000000","message":"Assuming it gets called with the same thing both times, you can do this more succinctly \u0026 thoroughly as:\n\n mock_execute.assert_has_calls([mock.call(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, \u0027tap-dev\u0027, \u0027up\u0027, run_as_root\u003dTrue)] * 2)","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":933,"context_line":"        self.assertEqual(vea_vlan_mappings[\u0027aa:bb:cc:dd:ee:ff\u0027], 2)"},{"line_number":934,"context_line":""},{"line_number":935,"context_line":"        # Now validate it called the things it needed to"},{"line_number":936,"context_line":"        self.assertEqual(2, mock_execute.call_count)"},{"line_number":937,"context_line":"        mock_execute.assert_called_with(\u0027ip\u0027, \u0027link\u0027, \u0027set\u0027, \u0027tap-dev\u0027,"},{"line_number":938,"context_line":"                                        \u0027up\u0027, run_as_root\u003dTrue)"},{"line_number":939,"context_line":"        mock_trunk_crt.assert_called_once_with("},{"line_number":940,"context_line":"            self.adpt, \u0027host_uuid\u0027, [\u0027mgmt_uuid\u0027],"},{"line_number":941,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003d\u0027tap-dev\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_299c195c","line":938,"range":{"start_line":936,"start_character":0,"end_line":938,"end_character":63},"in_reply_to":"ff0f0b1f_4ea3d301","updated":"2017-05-25 19:31:50.000000000","message":"The calls are a bit different, but I used this technique instead of the one I had previously.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"da112bc2e79d861c7c77a547c88c5be8d9c1c187","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        # Value: overhead (int MB)"},{"line_number":141,"context_line":"        self._inst_overhead_cache \u003d {}"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        # Clean-up any orphan adapters"},{"line_number":144,"context_line":"        self._cleanup_orphan_adapters(CONF.powervm.pvm_vswitch_for_novalink_io)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        LOG.info(_LI(\"The compute driver has been initialized.\"))"},{"line_number":147,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_cee4833f","line":144,"range":{"start_line":143,"start_character":0,"end_line":144,"end_character":79},"updated":"2017-05-25 17:02:33.000000000","message":"Add UT for this.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"56628e07dcac3c791f415dcb21f4349bc51d93dc","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        # Value: overhead (int MB)"},{"line_number":141,"context_line":"        self._inst_overhead_cache \u003d {}"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        # Clean-up any orphan adapters"},{"line_number":144,"context_line":"        self._cleanup_orphan_adapters(CONF.powervm.pvm_vswitch_for_novalink_io)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        LOG.info(_LI(\"The compute driver has been initialized.\"))"},{"line_number":147,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_3520e749","line":144,"range":{"start_line":143,"start_character":0,"end_line":144,"end_character":79},"in_reply_to":"ff0f0b1f_a97b89bc","updated":"2017-05-25 21:50:19.000000000","message":"You\u0027re right - that\u0027s a backport from in-tree that we need to get done (increase UT coverage in general).  You can ignore it for now, and I\u0027ll add it to the to-do list.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":140,"context_line":"        # Value: overhead (int MB)"},{"line_number":141,"context_line":"        self._inst_overhead_cache \u003d {}"},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        # Clean-up any orphan adapters"},{"line_number":144,"context_line":"        self._cleanup_orphan_adapters(CONF.powervm.pvm_vswitch_for_novalink_io)"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        LOG.info(_LI(\"The compute driver has been initialized.\"))"},{"line_number":147,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_a97b89bc","line":144,"range":{"start_line":143,"start_character":0,"end_line":144,"end_character":79},"in_reply_to":"ff0f0b1f_cee4833f","updated":"2017-05-25 19:31:50.000000000","message":"This call is mocked in fixtures.py, is there some further way this should be tested?  Do you just want me to verify that it\u0027s being called?  I don\u0027t see any specific init_host testing other than the mocks in fixtures.py.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"da112bc2e79d861c7c77a547c88c5be8d9c1c187","unresolved":false,"context_lines":[{"line_number":1821,"context_line":"        \"\"\""},{"line_number":1822,"context_line":"        return True"},{"line_number":1823,"context_line":""},{"line_number":1824,"context_line":"    def _cleanup_orphan_adapters(self, vswitch_name):"},{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_aee14f2d","line":1828,"range":{"start_line":1824,"start_character":0,"end_line":1828,"end_character":27},"updated":"2017-05-25 17:02:33.000000000","message":"UT for this.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":1821,"context_line":"        \"\"\""},{"line_number":1822,"context_line":"        return True"},{"line_number":1823,"context_line":""},{"line_number":1824,"context_line":"    def _cleanup_orphan_adapters(self, vswitch_name):"},{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_b45e4010","line":1828,"range":{"start_line":1824,"start_character":0,"end_line":1828,"end_character":27},"in_reply_to":"ff0f0b1f_0954b553","updated":"2017-05-25 19:31:50.000000000","message":"Done","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":1821,"context_line":"        \"\"\""},{"line_number":1822,"context_line":"        return True"},{"line_number":1823,"context_line":""},{"line_number":1824,"context_line":"    def _cleanup_orphan_adapters(self, vswitch_name):"},{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_495aad83","line":1828,"range":{"start_line":1824,"start_character":0,"end_line":1828,"end_character":27},"in_reply_to":"ff0f0b1f_aee14f2d","updated":"2017-05-25 19:31:50.000000000","message":"Done","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e3be6040db4f5fbb8b3e24c1255a1c4e649ecb40","unresolved":false,"context_lines":[{"line_number":1821,"context_line":"        \"\"\""},{"line_number":1822,"context_line":"        return True"},{"line_number":1823,"context_line":""},{"line_number":1824,"context_line":"    def _cleanup_orphan_adapters(self, vswitch_name):"},{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_0954b553","line":1828,"range":{"start_line":1824,"start_character":0,"end_line":1828,"end_character":27},"in_reply_to":"ff0f0b1f_aee14f2d","updated":"2017-05-25 17:53:12.000000000","message":"Log as well.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"06125703028d628dbffdca3e45fc8ecf747f482b","unresolved":false,"context_lines":[{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            LOG.info(_LI(\"Deleting orphan CNA: %s\"), orphan.dev_name)"},{"line_number":1829,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":4,"id":"ff0f0b1f_041db70e","line":1828,"range":{"start_line":1828,"start_character":21,"end_line":1828,"end_character":51},"updated":"2017-05-25 19:52:51.000000000","message":"Log messages in openstack are no longer translated.  We don\u0027t do this for new ones anymore.","commit_id":"f7003b2dfa21bb00bdc0470dda4d10672f914d6d"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"a9a52edacba0e66cef696ad586ad0cb4666a64bc","unresolved":false,"context_lines":[{"line_number":1825,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":1826,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":1827,"context_line":"        for orphan in orphans:"},{"line_number":1828,"context_line":"            LOG.info(_LI(\"Deleting orphan CNA: %s\"), orphan.dev_name)"},{"line_number":1829,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":4,"id":"ff0f0b1f_56d91020","line":1828,"range":{"start_line":1828,"start_character":21,"end_line":1828,"end_character":51},"in_reply_to":"ff0f0b1f_041db70e","updated":"2017-05-26 12:12:27.000000000","message":"Done","commit_id":"f7003b2dfa21bb00bdc0470dda4d10672f914d6d"}],"nova_powervm/virt/powervm/vif.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"bfb91ccc41b2158d2f8cd1c901a99af2290643b5","unresolved":false,"context_lines":[{"line_number":909,"context_line":"        \"\"\""},{"line_number":910,"context_line":"        linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":911,"context_line":"                                      self.get_trunk_dev_name(vif))"},{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":916,"context_line":"        # Delete orphaned adapters"},{"line_number":917,"context_line":"        for orphan in orphans:"},{"line_number":918,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_36450d44","line":918,"range":{"start_line":912,"start_character":0,"end_line":918,"end_character":27},"updated":"2017-05-22 18:00:37.000000000","message":"I remember the issue with this...\n\nWhen you start a LPM, you\u0027re going to create a hanging adapter.  If another were to start, you\u0027d delete the hanging adapter for that next migration.  Because its a temporary orphan.\n\nI think the fix here is two fold.\n\n1) At nova-compute start up, clean up the orphan adapters.  At that point in time, you shouldn\u0027t have any active migrations.  We do something similar to this with scsi mappings.\n\n2) At pre-live migrate time, see if the adapter is already there for this name.  If so, delete it (as you are).","commit_id":"24723877706f70c1a27361f07a2473d66be4d549"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"bfb91ccc41b2158d2f8cd1c901a99af2290643b5","unresolved":false,"context_lines":[{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":916,"context_line":"        # Delete orphaned adapters"},{"line_number":917,"context_line":"        for orphan in orphans:"},{"line_number":918,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_f67c3584","line":918,"range":{"start_line":917,"start_character":0,"end_line":918,"end_character":27},"updated":"2017-05-22 18:00:37.000000000","message":"You may need to bring down the port before you delete it.","commit_id":"24723877706f70c1a27361f07a2473d66be4d549"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"86c10125a1431014f5e39ade0c9489fed7e01ae4","unresolved":false,"context_lines":[{"line_number":909,"context_line":"        \"\"\""},{"line_number":910,"context_line":"        linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":911,"context_line":"                                      self.get_trunk_dev_name(vif))"},{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":916,"context_line":"        # Delete orphaned adapters"},{"line_number":917,"context_line":"        for orphan in orphans:"},{"line_number":918,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_2e0c1f3a","line":918,"range":{"start_line":912,"start_character":0,"end_line":918,"end_character":27},"in_reply_to":"ff0f0b1f_36450d44","updated":"2017-05-25 16:56:11.000000000","message":"Done","commit_id":"24723877706f70c1a27361f07a2473d66be4d549"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"86c10125a1431014f5e39ade0c9489fed7e01ae4","unresolved":false,"context_lines":[{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":916,"context_line":"        # Delete orphaned adapters"},{"line_number":917,"context_line":"        for orphan in orphans:"},{"line_number":918,"context_line":"            orphan.delete()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ff0f0b1f_0e115b54","line":918,"range":{"start_line":917,"start_character":0,"end_line":918,"end_character":27},"in_reply_to":"ff0f0b1f_f67c3584","updated":"2017-05-25 16:56:11.000000000","message":"Done","commit_id":"24723877706f70c1a27361f07a2473d66be4d549"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e3be6040db4f5fbb8b3e24c1255a1c4e649ecb40","unresolved":false,"context_lines":[{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        if vif:"},{"line_number":916,"context_line":"            # Delete port from OVS"},{"line_number":917,"context_line":"            linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":918,"context_line":"                                          self.get_trunk_dev_name(vif))"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_69657145","line":915,"range":{"start_line":915,"start_character":8,"end_line":915,"end_character":15},"updated":"2017-05-25 17:53:12.000000000","message":"When would vif be none?","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        if vif:"},{"line_number":916,"context_line":"            # Delete port from OVS"},{"line_number":917,"context_line":"            linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":918,"context_line":"                                          self.get_trunk_dev_name(vif))"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_4912ad64","line":915,"range":{"start_line":915,"start_character":8,"end_line":915,"end_character":15},"in_reply_to":"ff0f0b1f_69657145","updated":"2017-05-25 19:31:50.000000000","message":"You\u0027re right it should never be None, I\u0027ve removed this check.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e3be6040db4f5fbb8b3e24c1255a1c4e649ecb40","unresolved":false,"context_lines":[{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        if vif:"},{"line_number":916,"context_line":"            # Delete port from OVS"},{"line_number":917,"context_line":"            linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":918,"context_line":"                                          self.get_trunk_dev_name(vif))"},{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_a971490f","line":918,"range":{"start_line":915,"start_character":2,"end_line":918,"end_character":71},"updated":"2017-05-25 17:53:12.000000000","message":"I\u0027d think you\u0027d only call this if the orphan existed on the system.  Right after line 922, but before 923 (the actual delete)","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    def _cleanup_orphan_adapters(self, vif, vswitch_name):"},{"line_number":914,"context_line":"        \"\"\"Finds and removes trunk VEAs that have no corresponding CNA.\"\"\""},{"line_number":915,"context_line":"        if vif:"},{"line_number":916,"context_line":"            # Delete port from OVS"},{"line_number":917,"context_line":"            linux_net.delete_ovs_vif_port(vif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":918,"context_line":"                                          self.get_trunk_dev_name(vif))"},{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_a902690a","line":918,"range":{"start_line":915,"start_character":2,"end_line":918,"end_character":71},"in_reply_to":"ff0f0b1f_a971490f","updated":"2017-05-25 19:31:50.000000000","message":"Done","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"da112bc2e79d861c7c77a547c88c5be8d9c1c187","unresolved":false,"context_lines":[{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"},{"line_number":922,"context_line":"            if orphan.mac_address \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":923,"context_line":"                orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_4ef19301","line":922,"range":{"start_line":922,"start_character":15,"end_line":922,"end_character":33},"updated":"2017-05-25 17:02:33.000000000","message":"Does this need to be normalized?","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"},{"line_number":922,"context_line":"            if orphan.mac_address \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":923,"context_line":"                orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_e99d0158","line":922,"range":{"start_line":922,"start_character":15,"end_line":922,"end_character":33},"in_reply_to":"ff0f0b1f_4ef19301","updated":"2017-05-25 19:31:50.000000000","message":"Done","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e3be6040db4f5fbb8b3e24c1255a1c4e649ecb40","unresolved":false,"context_lines":[{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"},{"line_number":922,"context_line":"            if orphan.mac_address \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":923,"context_line":"                orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_8977a509","line":922,"range":{"start_line":922,"start_character":15,"end_line":922,"end_character":33},"in_reply_to":"ff0f0b1f_4ef19301","updated":"2017-05-25 17:53:12.000000000","message":"Yes it does.  I actually think the vif[\u0027address\u0027] needs normalization.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"},{"author":{"_account_id":9572,"name":"Eric Larese","email":"erlarese@us.ibm.com","username":"erlarese"},"change_message_id":"2ec98c38df7e8239b4bd3ac269db46e2784edaa1","unresolved":false,"context_lines":[{"line_number":919,"context_line":"        # Find and delete orphan adapters with macs matching our vif"},{"line_number":920,"context_line":"        orphans \u003d pvm_cna.find_orphaned_trunks(self.adapter, vswitch_name)"},{"line_number":921,"context_line":"        for orphan in orphans:"},{"line_number":922,"context_line":"            if orphan.mac_address \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":923,"context_line":"                orphan.delete()"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_94269cba","line":922,"range":{"start_line":922,"start_character":15,"end_line":922,"end_character":33},"in_reply_to":"ff0f0b1f_8977a509","updated":"2017-05-25 19:31:50.000000000","message":"I did the normalization to match line 409 earlier in this same file.","commit_id":"1c86e24c1f85bff7fe19b6044b35ac92c0977a4b"}]}
