)]}'
{"nova/compute/manager.py":[{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"208fbe519876537b420bc14123999ab311175115","unresolved":false,"context_lines":[{"line_number":8552,"context_line":"                            None"},{"line_number":8553,"context_line":""},{"line_number":8554,"context_line":"        \"\"\""},{"line_number":8555,"context_line":"        if \u0027pci_requests\u0027 in instance.obj_what_changed():"},{"line_number":8556,"context_line":"            # NOTE(gibi): We need to refresh pci_requests of the instance as it"},{"line_number":8557,"context_line":"            # is changed by the conductor during scheduling based on the"},{"line_number":8558,"context_line":"            # selected destination host. If the instance has SRIOV ports with"},{"line_number":8559,"context_line":"            # resource request then the LiveMigrationTask._find_destination"},{"line_number":8560,"context_line":"            # call updated the instance.pci_requests.requests[].spec with the"},{"line_number":8561,"context_line":"            # SRIOV PF device name to be used on the destination host. As the"},{"line_number":8562,"context_line":"            # migration is rolling back to the source host now we don\u0027t want"},{"line_number":8563,"context_line":"            # to persist the destination host related changes in the DB."},{"line_number":8564,"context_line":"            instance.pci_requests \u003d \\"},{"line_number":8565,"context_line":"                objects.InstancePCIRequests.get_by_instance_uuid("},{"line_number":8566,"context_line":"                    context, instance.uuid)"},{"line_number":8567,"context_line":""},{"line_number":8568,"context_line":"        if (isinstance(migrate_data, migrate_data_obj.LiveMigrateData) and"},{"line_number":8569,"context_line":"              migrate_data.obj_attr_is_set(\u0027migration\u0027)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_8bf2aa68","line":8566,"range":{"start_line":8555,"start_character":0,"end_line":8566,"end_character":43},"updated":"2020-02-06 13:59:19.000000000","message":"@Dan: I think you expected to see something like this selective refresh in https://review.opendev.org/#/c/702261/5 originally\n\nI made it work here but it needs a list of not-so-nice changes about how the PCI related ovos are handled. (See the parent reviews)","commit_id":"ebb53d027ea1c17be204538bb7c7791814a8fab6"}]}
