)]}'
{"nova_powervm/tests/virt/powervm/test_driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"07e99ef0be7ee43222bbc18e3a26f61b2cb16184","unresolved":false,"context_lines":[{"line_number":1695,"context_line":"                         set(ptree.get_provider_uuids()))"},{"line_number":1696,"context_line":"        # ...including the ssp\u0027s aggregates"},{"line_number":1697,"context_line":"        self.assertEqual(set([uuids.ss_agg]), ptree.data(\u0027ssp\u0027).aggregates)"},{"line_number":1698,"context_line":""},{"line_number":1699,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.plug_secure_rmc_vif\u0027)"},{"line_number":1700,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.get_secure_rmc_vswitch\u0027)"},{"line_number":1701,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.plug\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3f79a3b5_52e94ae3","line":1698,"updated":"2018-08-14 21:55:34.000000000","message":"Add device tests here.","commit_id":"e1f22063909a42267d53d61337c9163bb3adc717"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ba035590adf9c0ec83f8e318b41266b8e5f91b0b","unresolved":false,"context_lines":[{"line_number":988,"context_line":""},{"line_number":989,"context_line":"        return data"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def update_provider_tree(self, provider_tree, nodename):"},{"line_number":992,"context_line":"        \"\"\"Update a ProviderTree with current provider and inventory data."},{"line_number":993,"context_line":""},{"line_number":994,"context_line":"        :param nova.compute.provider_tree.ProviderTree provider_tree:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_806b4983","line":991,"range":{"start_line":991,"start_character":50,"end_line":991,"end_character":58},"updated":"2018-08-10 21:25:51.000000000","message":"Before anything else, should probably validate this against get_available_nodenames and raise a nasty error if we get called with a name we don\u0027t recognize.","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"19330799b236516953f2323ffe1ee29d0a642c14","unresolved":false,"context_lines":[{"line_number":988,"context_line":""},{"line_number":989,"context_line":"        return data"},{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    def update_provider_tree(self, provider_tree, nodename):"},{"line_number":992,"context_line":"        \"\"\"Update a ProviderTree with current provider and inventory data."},{"line_number":993,"context_line":""},{"line_number":994,"context_line":"        :param nova.compute.provider_tree.ProviderTree provider_tree:"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_33ebad13","line":991,"range":{"start_line":991,"start_character":50,"end_line":991,"end_character":58},"in_reply_to":"3f79a3b5_806b4983","updated":"2018-08-10 22:07:05.000000000","message":"Totally not necessary. This comes directly from compute_node.hypervisor_hostname five lines before this method is called. And hypervisor_hostname is the name given to the root provider that nova creates automatically to represent the compute node.","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ba035590adf9c0ec83f8e318b41266b8e5f91b0b","unresolved":false,"context_lines":[{"line_number":1007,"context_line":"        # Note that we don\u0027t need to refresh self.host_wrapper; it was *just*"},{"line_number":1008,"context_line":"        # refreshed by get_available_resource in the resource tracker\u0027s"},{"line_number":1009,"context_line":"        # update_available_resource flow."},{"line_number":1010,"context_line":"        data \u003d pvm_host.build_host_resource_from_ms(self.host_wrapper)"},{"line_number":1011,"context_line":""},{"line_number":1012,"context_line":"        # TODO(efried): Fix these to reflect something like reality"},{"line_number":1013,"context_line":"        # For now, duplicate the logic the resource tracker uses via"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_e0e55d0a","line":1010,"updated":"2018-08-10 21:25:51.000000000","message":"Maybe create a _get_available_resource method that does everything but the self.host_wrapper refresh and just call that here and in get_available_resource, to ensure we stay in synch with that if anything changes over time. Then the `int(self.disk_dvr.capacity)` on line 1037 would become `data[\u0027local_gb\u0027]`","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"19330799b236516953f2323ffe1ee29d0a642c14","unresolved":false,"context_lines":[{"line_number":1007,"context_line":"        # Note that we don\u0027t need to refresh self.host_wrapper; it was *just*"},{"line_number":1008,"context_line":"        # refreshed by get_available_resource in the resource tracker\u0027s"},{"line_number":1009,"context_line":"        # update_available_resource flow."},{"line_number":1010,"context_line":"        data \u003d pvm_host.build_host_resource_from_ms(self.host_wrapper)"},{"line_number":1011,"context_line":""},{"line_number":1012,"context_line":"        # TODO(efried): Fix these to reflect something like reality"},{"line_number":1013,"context_line":"        # For now, duplicate the logic the resource tracker uses via"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_b3c7bd96","line":1010,"in_reply_to":"3f79a3b5_e0e55d0a","updated":"2018-08-10 22:07:05.000000000","message":"Ack","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ba035590adf9c0ec83f8e318b41266b8e5f91b0b","unresolved":false,"context_lines":[{"line_number":1041,"context_line":"        }"},{"line_number":1042,"context_line":"        provider_tree.update_inventory(nodename, inventory)"},{"line_number":1043,"context_line":""},{"line_number":1044,"context_line":"        # Now do devices"},{"line_number":1045,"context_line":"        inv_rules \u003d []"},{"line_number":1046,"context_line":"        try:"},{"line_number":1047,"context_line":"            # TODO(efried): Optimize (cache, reload per file timestamp, etc.)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_00b099dc","line":1044,"updated":"2018-08-10 21:25:51.000000000","message":"split this into a separate change, because the preceding is copying existing behavior and the following is new, right?","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"19330799b236516953f2323ffe1ee29d0a642c14","unresolved":false,"context_lines":[{"line_number":1041,"context_line":"        }"},{"line_number":1042,"context_line":"        provider_tree.update_inventory(nodename, inventory)"},{"line_number":1043,"context_line":""},{"line_number":1044,"context_line":"        # Now do devices"},{"line_number":1045,"context_line":"        inv_rules \u003d []"},{"line_number":1046,"context_line":"        try:"},{"line_number":1047,"context_line":"            # TODO(efried): Optimize (cache, reload per file timestamp, etc.)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_d3c4b993","line":1044,"in_reply_to":"3f79a3b5_00b099dc","updated":"2018-08-10 22:07:05.000000000","message":"Yup. Preceding to be proposed IT and OOT outside of this series.","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"07e99ef0be7ee43222bbc18e3a26f61b2cb16184","unresolved":false,"context_lines":[{"line_number":1041,"context_line":"        }"},{"line_number":1042,"context_line":"        provider_tree.update_inventory(nodename, inventory)"},{"line_number":1043,"context_line":""},{"line_number":1044,"context_line":"        # Now do devices"},{"line_number":1045,"context_line":"        inv_rules \u003d []"},{"line_number":1046,"context_line":"        try:"},{"line_number":1047,"context_line":"            # TODO(efried): Optimize (cache, reload per file timestamp, etc.)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_721fa607","line":1044,"in_reply_to":"3f79a3b5_d3c4b993","updated":"2018-08-14 21:55:34.000000000","message":"\u003e Yup. Preceding to be proposed IT\n\nhttps://review.openstack.org/#/c/468560/\n\n \u003e and OOT\n\nhttps://review.openstack.org/#/c/591857/\n\n \u003e outside of this series.\n\nWell, underneath this series, since this patch builds on it.","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"3e1acc14d28e8795492cda0f4386bc9ca1282de8","unresolved":false,"context_lines":[{"line_number":1062,"context_line":"        act_rp_names \u003d {rp_name for rp_name in act_rp_names"},{"line_number":1063,"context_line":"                        if rp_name.startswith(inv.RP_NAME_PREFIX)}"},{"line_number":1064,"context_line":"        for rp_name in act_rp_names - exp_rp_names:"},{"line_number":1065,"context_line":"            LOG.info(\"Removing device provider %s: it is not in the filtered \""},{"line_number":1066,"context_line":"                     \"inventory list.\", rp_name)"},{"line_number":1067,"context_line":"            provider_tree.remove(rp_name)"},{"line_number":1068,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_d551ddda","line":1065,"range":{"start_line":1065,"start_character":22,"end_line":1065,"end_character":30},"updated":"2018-08-13 22:06:47.000000000","message":"eek, add check for existing allocations and do the reserved\u003dtotal thing","commit_id":"fd801b06802284815a42029e99bf5f7fe4544d02"}]}
