)]}'
{"openstack_dashboard/dashboards/project/instances/tests.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"0411046b5d6cf3f37f5d338be1ced7e6a2dc9b29","unresolved":false,"context_lines":[{"line_number":4466,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":4467,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,),"},{"line_number":4468,"context_line":"                           workflows.create_instance: ("},{"line_number":4469,"context_line":"                           \u0027_cleanup_ports_on_failed_vm_launch\u0027,)})"},{"line_number":4470,"context_line":"    def test_port_cleanup_called_on_failed_vm_launch(self):"},{"line_number":4471,"context_line":"        flavor \u003d self.flavors.first()"},{"line_number":4472,"context_line":"        image \u003d self.images.first()"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_7c2b2c34","line":4469,"updated":"2015-08-10 05:29:49.000000000","message":"we should be mocking api.neutron.port_delete() rather than this method, so we can check that the delete call is made for each nics","commit_id":"62540510ac610c521cff30cab253c82415623fc7"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"c7554a9f9534113f36776bb5a733f516ba1b20e1","unresolved":false,"context_lines":[{"line_number":4466,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":4467,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,),"},{"line_number":4468,"context_line":"                           workflows.create_instance: ("},{"line_number":4469,"context_line":"                           \u0027_cleanup_ports_on_failed_vm_launch\u0027,)})"},{"line_number":4470,"context_line":"    def test_port_cleanup_called_on_failed_vm_launch(self):"},{"line_number":4471,"context_line":"        flavor \u003d self.flavors.first()"},{"line_number":4472,"context_line":"        image \u003d self.images.first()"}],"source_content_type":"text/x-python","patch_set":10,"id":"1a4dcd0f_b541ab3b","line":4469,"in_reply_to":"1a4dcd0f_7c2b2c34","updated":"2015-08-10 15:56:01.000000000","message":"Done","commit_id":"62540510ac610c521cff30cab253c82415623fc7"}],"openstack_dashboard/dashboards/project/instances/workflows/create_instance.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"68c0d2f119c91beb9bb752ebe5d6f68178a28714","unresolved":false,"context_lines":[{"line_number":945,"context_line":"                    except Exception:"},{"line_number":946,"context_line":"                        msg \u003d (_(\u0027Port not deleted for port-id (%s).\u0027) %"},{"line_number":947,"context_line":"                               nic[\u0027port-id\u0027])"},{"line_number":948,"context_line":"                        exceptions.handle(request, msg)"},{"line_number":949,"context_line":"            return False"},{"line_number":950,"context_line":""},{"line_number":951,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_ef051bc2","line":948,"updated":"2015-07-21 08:19:36.000000000","message":"If we have multiple nics created above, and the removal of the first one fails, for non-wrapped exceptions exceptions.handle will terminate the execution here with the name of the first failed nic in the message, so we will not even try to remove the other nics. Maybe we should first try to remove all and concatenate the names of all failed nics and handle the exception after the loop?","commit_id":"b2ea8ffb8bcf43461c4dd6990806541012f56a45"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"82fa7ef9ee2d44ffb9e8acacba1b265306f4458e","unresolved":false,"context_lines":[{"line_number":945,"context_line":"                    except Exception:"},{"line_number":946,"context_line":"                        msg \u003d (_(\u0027Port not deleted for port-id (%s).\u0027) %"},{"line_number":947,"context_line":"                               nic[\u0027port-id\u0027])"},{"line_number":948,"context_line":"                        exceptions.handle(request, msg)"},{"line_number":949,"context_line":"            return False"},{"line_number":950,"context_line":""},{"line_number":951,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_072a40db","line":948,"in_reply_to":"3a50d1a3_ef051bc2","updated":"2015-07-22 22:06:32.000000000","message":"Done","commit_id":"b2ea8ffb8bcf43461c4dd6990806541012f56a45"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"447a2f0ea0410b21f0a157542bed081c5449b80a","unresolved":false,"context_lines":[{"line_number":938,"context_line":"            return True"},{"line_number":939,"context_line":"        except Exception:"},{"line_number":940,"context_line":"            if port_profiles_supported:"},{"line_number":941,"context_line":"                cleanup_ports_on_failed_vm_launch(request, nics)"},{"line_number":942,"context_line":"            exceptions.handle(request)"},{"line_number":943,"context_line":"        return False"},{"line_number":944,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_51a99e7a","line":941,"updated":"2015-07-23 22:32:36.000000000","message":"what happens to the port_failing_deletes return value?","commit_id":"2075d372e01426516d59544c8a9e1e9dea6fd839"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"955a89f75a6c33f0286d96725c2ea775d7800184","unresolved":false,"context_lines":[{"line_number":938,"context_line":"            return True"},{"line_number":939,"context_line":"        except Exception:"},{"line_number":940,"context_line":"            if port_profiles_supported:"},{"line_number":941,"context_line":"                cleanup_ports_on_failed_vm_launch(request, nics)"},{"line_number":942,"context_line":"            exceptions.handle(request)"},{"line_number":943,"context_line":"        return False"},{"line_number":944,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_71761ada","line":941,"in_reply_to":"3a50d1a3_51a99e7a","updated":"2015-07-23 22:41:33.000000000","message":"Not being directly consumed at the moment, but it\u0027s useful to the unit test for the cleanup, so as to verify a successful cleanup.","commit_id":"2075d372e01426516d59544c8a9e1e9dea6fd839"},{"author":{"_account_id":7018,"name":"Abhishek Raut","email":"rauta@vmware.com","username":"abhiraut"},"change_message_id":"3ef85dca603fa8ed2bb8d5270be196e2260da7d2","unresolved":false,"context_lines":[{"line_number":938,"context_line":"            return True"},{"line_number":939,"context_line":"        except Exception:"},{"line_number":940,"context_line":"            if port_profiles_supported:"},{"line_number":941,"context_line":"                cleanup_ports_on_failed_vm_launch(request, nics)"},{"line_number":942,"context_line":"            exceptions.handle(request)"},{"line_number":943,"context_line":"        return False"},{"line_number":944,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_d9eb9477","line":941,"in_reply_to":"3a50d1a3_71761ada","updated":"2015-07-24 00:42:53.000000000","message":"maybe at least add a note before the return statement","commit_id":"2075d372e01426516d59544c8a9e1e9dea6fd839"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"6d1852a1e728e2f486b5f120e29500e5d60e3659","unresolved":false,"context_lines":[{"line_number":938,"context_line":"            return True"},{"line_number":939,"context_line":"        except Exception:"},{"line_number":940,"context_line":"            if port_profiles_supported:"},{"line_number":941,"context_line":"                cleanup_ports_on_failed_vm_launch(request, nics)"},{"line_number":942,"context_line":"            exceptions.handle(request)"},{"line_number":943,"context_line":"        return False"},{"line_number":944,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3a50d1a3_7c1fce09","line":941,"in_reply_to":"3a50d1a3_d9eb9477","updated":"2015-07-24 01:01:25.000000000","message":"I\u0027ve modified these methods in the new patch to use the returned list.","commit_id":"2075d372e01426516d59544c8a9e1e9dea6fd839"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"5b7180ebcb1a29146ed4e39f7b0de8b54ddec81d","unresolved":false,"context_lines":[{"line_number":946,"context_line":"                           % ports_str)"},{"line_number":947,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":948,"context_line":"            exceptions.handle(request)"},{"line_number":949,"context_line":"        return False"},{"line_number":950,"context_line":""},{"line_number":951,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"},{"line_number":952,"context_line":"        # Create port with Network ID and Port Profile"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_34566f06","line":949,"updated":"2015-08-07 01:56:24.000000000","message":"this function will always return False now, which mean the invocation failed. need to move it back","commit_id":"c81e0a3068e8c3b1ab76bbceb06341efcf1c8f9a"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"05fbc0733442208dcde6e7c4d9e586b80e6b9eb5","unresolved":false,"context_lines":[{"line_number":946,"context_line":"                           % ports_str)"},{"line_number":947,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":948,"context_line":"            exceptions.handle(request)"},{"line_number":949,"context_line":"        return False"},{"line_number":950,"context_line":""},{"line_number":951,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"},{"line_number":952,"context_line":"        # Create port with Network ID and Port Profile"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_32c99fac","line":949,"in_reply_to":"1a4dcd0f_34566f06","updated":"2015-08-07 03:42:41.000000000","message":"my bad, line 936 will short-circuit to return true","commit_id":"c81e0a3068e8c3b1ab76bbceb06341efcf1c8f9a"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"5b7180ebcb1a29146ed4e39f7b0de8b54ddec81d","unresolved":false,"context_lines":[{"line_number":986,"context_line":"        return nics"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":""},{"line_number":989,"context_line":"def cleanup_ports_on_failed_vm_launch(request, nics):"},{"line_number":990,"context_line":"    ports_failing_deletes \u003d []"},{"line_number":991,"context_line":"    LOG.debug(\u0027Cleaning up stale VM ports.\u0027)"},{"line_number":992,"context_line":"    for nic in nics:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_34a42f06","line":989,"updated":"2015-08-07 01:56:24.000000000","message":"put a _ in front to describe this is an private method","commit_id":"c81e0a3068e8c3b1ab76bbceb06341efcf1c8f9a"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"e158bb83ccb09f0f986087ce4be2f0eb0b2f58b0","unresolved":false,"context_lines":[{"line_number":986,"context_line":"        return nics"},{"line_number":987,"context_line":""},{"line_number":988,"context_line":""},{"line_number":989,"context_line":"def cleanup_ports_on_failed_vm_launch(request, nics):"},{"line_number":990,"context_line":"    ports_failing_deletes \u003d []"},{"line_number":991,"context_line":"    LOG.debug(\u0027Cleaning up stale VM ports.\u0027)"},{"line_number":992,"context_line":"    for nic in nics:"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_61c9725a","line":989,"in_reply_to":"1a4dcd0f_34a42f06","updated":"2015-08-07 18:13:18.000000000","message":"Done","commit_id":"c81e0a3068e8c3b1ab76bbceb06341efcf1c8f9a"}],"openstack_dashboard/test/api_tests/neutron_tests.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2714c86cb5847b61e60cbd837d7fca45033a8900","unresolved":false,"context_lines":[{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def test_port_cleanup(self):"},{"line_number":217,"context_line":"        port_data \u003d self.api_ports.first()"},{"line_number":218,"context_line":"        port_data[\u0027port-id\u0027] \u003d port_data.pop(\u0027id\u0027)"},{"line_number":219,"context_line":"        nics \u003d [port_data]"},{"line_number":220,"context_line":"        neutronclient \u003d self.stub_neutronclient()"},{"line_number":221,"context_line":"        neutronclient.delete_port(port_data[\u0027port-id\u0027])"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_be2ce8ac","line":218,"updated":"2015-08-11 17:08:40.000000000","message":"calling pop() modifies the test data, we should not be modifying the master test data otherwise it will impact other tests.","commit_id":"c1cd647fbfa1d69d056210f6c06148dd3b2fa4b3"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"7ddcd14d1eb4a6e2e09f1ebbb93364280877fbc3","unresolved":false,"context_lines":[{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    def test_port_cleanup(self):"},{"line_number":217,"context_line":"        port_data \u003d self.api_ports.first()"},{"line_number":218,"context_line":"        port_data[\u0027port-id\u0027] \u003d port_data.pop(\u0027id\u0027)"},{"line_number":219,"context_line":"        nics \u003d [port_data]"},{"line_number":220,"context_line":"        neutronclient \u003d self.stub_neutronclient()"},{"line_number":221,"context_line":"        neutronclient.delete_port(port_data[\u0027port-id\u0027])"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_2398c0bf","line":218,"in_reply_to":"1a4dcd0f_be2ce8ac","updated":"2015-08-11 18:12:16.000000000","message":"Done","commit_id":"c1cd647fbfa1d69d056210f6c06148dd3b2fa4b3"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2714c86cb5847b61e60cbd837d7fca45033a8900","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        self.mox.ReplayAll()"},{"line_number":223,"context_line":"        ports_failing_deletes \u003d ("},{"line_number":224,"context_line":"            create_instance._cleanup_ports_on_failed_vm_launch(self.request,"},{"line_number":225,"context_line":"                                                               nics))"},{"line_number":226,"context_line":"        self.assertEqual(ports_failing_deletes, [])"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def test_router_list(self):"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_3e41b863","line":225,"updated":"2015-08-11 17:08:40.000000000","message":"the tests in neutron_tests.py is just focused on testing, that calling api.neutron.delete_port correctly calls neutronclient.delete_port()","commit_id":"c1cd647fbfa1d69d056210f6c06148dd3b2fa4b3"},{"author":{"_account_id":12749,"name":"Saksham Varma","email":"sakvarma@cisco.com","username":"svarma"},"change_message_id":"7ddcd14d1eb4a6e2e09f1ebbb93364280877fbc3","unresolved":false,"context_lines":[{"line_number":222,"context_line":"        self.mox.ReplayAll()"},{"line_number":223,"context_line":"        ports_failing_deletes \u003d ("},{"line_number":224,"context_line":"            create_instance._cleanup_ports_on_failed_vm_launch(self.request,"},{"line_number":225,"context_line":"                                                               nics))"},{"line_number":226,"context_line":"        self.assertEqual(ports_failing_deletes, [])"},{"line_number":227,"context_line":""},{"line_number":228,"context_line":"    def test_router_list(self):"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_e38df87c","line":225,"in_reply_to":"1a4dcd0f_3e41b863","updated":"2015-08-11 18:12:16.000000000","message":"Done","commit_id":"c1cd647fbfa1d69d056210f6c06148dd3b2fa4b3"}]}
