)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"dac3debc_03ff1cf4","updated":"2026-11-20 14:21:28.000000000","message":"Huhh, this was a monster.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"49c4838e_f725e514","updated":"2026-11-24 13:40:24.000000000","message":"a few comments, I haven\u0027t yet dug deep at gibi\u0027s concerns yet tbc but they appear to me valid","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"d806b1c8_4dbe30d2","updated":"2026-11-27 15:45:48.000000000","message":"I found a feature parity gap between v1 and v2 🥹","commit_id":"6e6d0b1be8f35fb741dc1d67fd11960c7dbda61d"}],"nova/compute/api.py":[{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":true,"context_lines":[{"line_number":5811,"context_line":"        # NOTE(dansmith): RequestSpec.availability_zone doubles as the"},{"line_number":5812,"context_line":"        # instance\u0027s \"pinned_availability_zone\" (see the server update"},{"line_number":5813,"context_line":"        # action gated on microversion 2.104 in"},{"line_number":5814,"context_line":"        # nova/api/openstack/compute/servers.py). If we silently let this"},{"line_number":5815,"context_line":"        # migration go to a different AZ, we\u0027d either have to leave that"},{"line_number":5816,"context_line":"        # pin stale (so a *later* resize/evacuate would try to schedule"},{"line_number":5817,"context_line":"        # the instance back into the old, no-longer-true AZ via the"}],"source_content_type":"text/x-python","patch_set":6,"id":"040c6376_33521367","line":5814,"updated":"2026-11-24 13:40:24.000000000","message":"TBC, there is only single persisted information (aka. spec.az) but we present it on the API side as something better self-explanatory (pinned_az) which is only an API parameter (which can be updated), not really an object field.","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":false,"context_lines":[{"line_number":5811,"context_line":"        # NOTE(dansmith): RequestSpec.availability_zone doubles as the"},{"line_number":5812,"context_line":"        # instance\u0027s \"pinned_availability_zone\" (see the server update"},{"line_number":5813,"context_line":"        # action gated on microversion 2.104 in"},{"line_number":5814,"context_line":"        # nova/api/openstack/compute/servers.py). If we silently let this"},{"line_number":5815,"context_line":"        # migration go to a different AZ, we\u0027d either have to leave that"},{"line_number":5816,"context_line":"        # pin stale (so a *later* resize/evacuate would try to schedule"},{"line_number":5817,"context_line":"        # the instance back into the old, no-longer-true AZ via the"}],"source_content_type":"text/x-python","patch_set":6,"id":"2612b636_a88a85d1","line":5814,"in_reply_to":"040c6376_33521367","updated":"2026-11-27 15:45:48.000000000","message":"Done","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":false,"context_lines":[{"line_number":5827,"context_line":"        # TODO(dansmith): There could be some migration-monitoring fix"},{"line_number":5828,"context_line":"        # for this which would allow us to update the pin after completion,"},{"line_number":5829,"context_line":"        # if the conductor started a long-running thread to detect the"},{"line_number":5830,"context_line":"        # result and update accordingly."},{"line_number":5831,"context_line":"        if (dest_availability_zone and request_spec.availability_zone and"},{"line_number":5832,"context_line":"                request_spec.availability_zone !\u003d dest_availability_zone):"},{"line_number":5833,"context_line":"            raise exception.MigrationPreCheckError("}],"source_content_type":"text/x-python","patch_set":6,"id":"f5618303_d8e5da28","line":5830,"updated":"2026-11-24 13:40:24.000000000","message":"yup, and you have now a POC I need to review :)","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":false,"context_lines":[{"line_number":5835,"context_line":"                         \"%(pinned_az)s; unpin it before migrating to \""},{"line_number":5836,"context_line":"                         \"%(dest_az)s.\") %"},{"line_number":5837,"context_line":"                {\u0027pinned_az\u0027: request_spec.availability_zone,"},{"line_number":5838,"context_line":"                 \u0027dest_az\u0027: dest_availability_zone})"},{"line_number":5839,"context_line":""},{"line_number":5840,"context_line":"        if dest_host and dest_availability_zone:"},{"line_number":5841,"context_line":"            host_az \u003d availability_zones.get_host_availability_zone("}],"source_content_type":"text/x-python","patch_set":6,"id":"ce533725_83b68e4a","line":5838,"updated":"2026-11-24 13:40:24.000000000","message":"++ (until we change the behaviour)","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"8537130665a096f2b823020a6863fea4f75e87dd","unresolved":true,"context_lines":[{"line_number":5805,"context_line":"        # RequestSpec.availability_zone is the instance\u0027s AZ pin. Require"},{"line_number":5806,"context_line":"        # operators to explicitly unpin before migrating across AZs: migration"},{"line_number":5807,"context_line":"        # completes asynchronously, so we cannot safely update the pin here"},{"line_number":5808,"context_line":"        # only after a successful migration."},{"line_number":5809,"context_line":"        host_az \u003d None"},{"line_number":5810,"context_line":"        if dest_availability_zone:"},{"line_number":5811,"context_line":"            available_zones \u003d availability_zones.get_availability_zones("}],"source_content_type":"text/x-python","patch_set":7,"id":"7f62b5ee_37f0b2d8","line":5808,"updated":"2026-12-02 11:52:15.000000000","message":"nit: this belongs to the commit adding this check","commit_id":"6e6d0b1be8f35fb741dc1d67fd11960c7dbda61d"}],"nova/conductor/manager.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":43,"context_line":"from nova.compute import vm_states"},{"line_number":44,"context_line":"from nova.conductor.tasks import cross_cell_migrate"},{"line_number":45,"context_line":"from nova.conductor.tasks import live_migrate_v2"},{"line_number":46,"context_line":"from nova.conductor.tasks import live_migrate"},{"line_number":47,"context_line":"from nova.conductor.tasks import migrate"},{"line_number":48,"context_line":"from nova import context as nova_context"},{"line_number":49,"context_line":"from nova import exception"}],"source_content_type":"text/x-python","patch_set":1,"id":"e8b6c18e_da5e39c5","line":46,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: H306: imports not in alphabetical order (nova.conductor.tasks.live_migrate_v2, nova.conductor.tasks.live_migrate)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"ee95e6aad7b5abf2e66cc8f4ca35a4851e7df2d1","unresolved":true,"context_lines":[{"line_number":582,"context_line":"                                 request_spec\u003dNone):"},{"line_number":583,"context_line":"        self._live_migrate_v2("},{"line_number":584,"context_line":"            context, instance, dest_host, dest_availability_zone,"},{"line_number":585,"context_line":"            request_spec)"},{"line_number":586,"context_line":""},{"line_number":587,"context_line":"    def _live_migrate_v2(self, context, instance, dest_host,"},{"line_number":588,"context_line":"                         dest_availability_zone, request_spec):"}],"source_content_type":"text/x-python","patch_set":1,"id":"118c35f1_4cf5aebf","line":585,"updated":"2026-10-19 15:52:31.000000000","message":"This is just silly indirection that the LLM didn\u0027t remove after the stubbed out setup patches, of course.","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":586,"context_line":""},{"line_number":587,"context_line":"    def _live_migrate_v2(self, context, instance, dest_host,"},{"line_number":588,"context_line":"                         dest_availability_zone, request_spec):"},{"line_number":589,"context_line":"        destination \u003d dest_host"},{"line_number":590,"context_line":""},{"line_number":591,"context_line":"        def _set_vm_state(context, instance, ex, vm_state\u003dNone,"},{"line_number":592,"context_line":"                          task_state\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"f9c6948d_1d2e747f","line":589,"updated":"2026-11-20 14:21:28.000000000","message":"probably a low value aliasing","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"3340fce69d044ee488961e48587fe8c229ba6098","unresolved":true,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"        task \u003d live_migrate_v2.LiveMigrateV2Task("},{"line_number":615,"context_line":"            context, instance, destination,"},{"line_number":616,"context_line":"            block_migration\u003dNone, disk_over_commit\u003dFalse,"},{"line_number":617,"context_line":"            migration\u003dmigration,"},{"line_number":618,"context_line":"            compute_rpcapi\u003dself.compute_rpcapi,"},{"line_number":619,"context_line":"            servicegroup_api\u003dself.servicegroup_api,"}],"source_content_type":"text/x-python","patch_set":5,"id":"856db057_6947c2fd","line":616,"updated":"2026-11-19 21:02:28.000000000","message":"TODO We should bake these into the task and not even pass them.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":true,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"        task \u003d live_migrate_v2.LiveMigrateV2Task("},{"line_number":615,"context_line":"            context, instance, destination,"},{"line_number":616,"context_line":"            block_migration\u003dNone, disk_over_commit\u003dFalse,"},{"line_number":617,"context_line":"            migration\u003dmigration,"},{"line_number":618,"context_line":"            compute_rpcapi\u003dself.compute_rpcapi,"},{"line_number":619,"context_line":"            servicegroup_api\u003dself.servicegroup_api,"}],"source_content_type":"text/x-python","patch_set":5,"id":"d6aec4b0_5a950f69","line":616,"in_reply_to":"09f44abe_2dec3811","updated":"2026-11-24 13:40:24.000000000","message":"+1","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":613,"context_line":""},{"line_number":614,"context_line":"        task \u003d live_migrate_v2.LiveMigrateV2Task("},{"line_number":615,"context_line":"            context, instance, destination,"},{"line_number":616,"context_line":"            block_migration\u003dNone, disk_over_commit\u003dFalse,"},{"line_number":617,"context_line":"            migration\u003dmigration,"},{"line_number":618,"context_line":"            compute_rpcapi\u003dself.compute_rpcapi,"},{"line_number":619,"context_line":"            servicegroup_api\u003dself.servicegroup_api,"}],"source_content_type":"text/x-python","patch_set":5,"id":"09f44abe_2dec3811","line":616,"in_reply_to":"856db057_6947c2fd","updated":"2026-11-20 14:21:28.000000000","message":"+1","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":646,"context_line":"                          {\u0027instance_id\u0027: instance.uuid, \u0027dest\u0027: destination})"},{"line_number":647,"context_line":"            _set_vm_state(context, instance, ex, vm_states.ERROR,"},{"line_number":648,"context_line":"                          task_state\u003dNone)"},{"line_number":649,"context_line":"            migration.status \u003d \u0027error\u0027"},{"line_number":650,"context_line":"            migration.save()"},{"line_number":651,"context_line":"            raise exception.MigrationError(reason\u003dstr(ex))"},{"line_number":652,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"236061d7_4dca5c67","line":649,"updated":"2026-11-20 14:21:28.000000000","message":"we should review the migration.status values. There is both \"failure\" and \"error\" I guess they mean different things (one is probably indicates that cleanup is needed)","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"}],"nova/conductor/tasks/live_migrate.py":[{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":true,"context_lines":[{"line_number":461,"context_line":"    def _bind_ports_on_destination(self, destination, provider_mappings):"},{"line_number":462,"context_line":"        return bind_ports_on_destination("},{"line_number":463,"context_line":"            self.context, self.instance, destination, self.migrate_data,"},{"line_number":464,"context_line":"            self.network_api, provider_mappings)"},{"line_number":465,"context_line":""},{"line_number":466,"context_line":"    def _update_migrate_vifs_from_bindings(self, migrate_vifs, bindings):"},{"line_number":467,"context_line":"        update_migrate_vifs_from_bindings(migrate_vifs, bindings)"}],"source_content_type":"text/x-python","patch_set":7,"id":"d7dbfe21_d0d3370a","line":464,"updated":"2026-11-27 15:45:48.000000000","message":"the provider mappings are passed down here with v1 but not v2 (see my comment below)","commit_id":"6e6d0b1be8f35fb741dc1d67fd11960c7dbda61d"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":true,"context_lines":[{"line_number":593,"context_line":"            try:"},{"line_number":594,"context_line":"                self.limits \u003d selection.limits"},{"line_number":595,"context_line":"                self._check_compatible_with_source_hypervisor(host)"},{"line_number":596,"context_line":"                self._call_livem_checks_on_host(host, provider_mapping)"},{"line_number":597,"context_line":"            except (exception.Invalid, exception.MigrationPreCheckError) as e:"},{"line_number":598,"context_line":"                LOG.debug(\"Skipping host: %(host)s because: %(e)s\","},{"line_number":599,"context_line":"                    {\"host\": host, \"e\": e})"}],"source_content_type":"text/x-python","patch_set":7,"id":"018e29e4_349b4ead","line":596,"updated":"2026-11-27 15:45:48.000000000","message":"with v1, we inject the provider mappings to _call_livem_checks_on_host() here","commit_id":"6e6d0b1be8f35fb741dc1d67fd11960c7dbda61d"}],"nova/conductor/tasks/live_migrate_v2.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":448,"context_line":"        return (selection.service_host, selection.nodename, selection.limits)"},{"line_number":449,"context_line":""},{"line_number":450,"context_line":"    def _check_compatible_with_source_hypervisor(self, destination):"},{"line_number":451,"context_line":"        source_info \u003d objects.ComputeNode.get_first_node_by_host_for_old_compat("},{"line_number":452,"context_line":"            self.context, self.source)"},{"line_number":453,"context_line":"        dest_ctxt \u003d self._get_cell_context_for_host(destination)"},{"line_number":454,"context_line":"        destination_info \u003d ("}],"source_content_type":"text/x-python","patch_set":1,"id":"efddf4f1_e6998f77","line":451,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (80 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"8c10735210e08ff48fbd8e49428ee2babb7d1695","unresolved":true,"context_lines":[{"line_number":563,"context_line":"                self.request_spec.availability_zone \u003d self.availability_zone"},{"line_number":564,"context_line":"            self.destination, dest_node, self.limits \u003d ("},{"line_number":565,"context_line":"                self._find_destination())"},{"line_number":566,"context_line":"        else:"},{"line_number":567,"context_line":"            # TODO(dansmith): if self.availability_zone is also set here,"},{"line_number":568,"context_line":"            # we don\u0027t independently verify that self.destination is in"},{"line_number":569,"context_line":"            # that AZ. We rely entirely on the API layer\u0027s earlier check."}],"source_content_type":"text/x-python","patch_set":4,"id":"d8d3fa9c_609d6888","line":566,"updated":"2026-11-18 10:37:06.000000000","message":"in v1 if we have a dest_host and a new enough microversion, then we use the scheduler to verify if the dest_host is matching the rest of the flavor/image request of the instance. Here I don\u0027t see a call to the scheduler. It feels like a regression of functionality in v2.","commit_id":"d0df3fa79a59cf627b01e9de3a374a62e5420a10"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"80fa46bb7a82a7f9f059c0a7f03ded25aea4fa30","unresolved":false,"context_lines":[{"line_number":563,"context_line":"                self.request_spec.availability_zone \u003d self.availability_zone"},{"line_number":564,"context_line":"            self.destination, dest_node, self.limits \u003d ("},{"line_number":565,"context_line":"                self._find_destination())"},{"line_number":566,"context_line":"        else:"},{"line_number":567,"context_line":"            # TODO(dansmith): if self.availability_zone is also set here,"},{"line_number":568,"context_line":"            # we don\u0027t independently verify that self.destination is in"},{"line_number":569,"context_line":"            # that AZ. We rely entirely on the API layer\u0027s earlier check."}],"source_content_type":"text/x-python","patch_set":4,"id":"be9229f8_06ee383f","line":566,"in_reply_to":"3a5f3d42_ac71cb80","updated":"2026-11-19 20:25:56.000000000","message":"Done","commit_id":"d0df3fa79a59cf627b01e9de3a374a62e5420a10"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a89e313ff8f20470eaaa39f35324224bffa93333","unresolved":true,"context_lines":[{"line_number":563,"context_line":"                self.request_spec.availability_zone \u003d self.availability_zone"},{"line_number":564,"context_line":"            self.destination, dest_node, self.limits \u003d ("},{"line_number":565,"context_line":"                self._find_destination())"},{"line_number":566,"context_line":"        else:"},{"line_number":567,"context_line":"            # TODO(dansmith): if self.availability_zone is also set here,"},{"line_number":568,"context_line":"            # we don\u0027t independently verify that self.destination is in"},{"line_number":569,"context_line":"            # that AZ. We rely entirely on the API layer\u0027s earlier check."}],"source_content_type":"text/x-python","patch_set":4,"id":"3a5f3d42_ac71cb80","line":566,"in_reply_to":"d8d3fa9c_609d6888","updated":"2026-11-18 14:12:20.000000000","message":"Yep, unintentional of course. On a two-node devstack system there\u0027s not a lot of need to pass --host :D","commit_id":"d0df3fa79a59cf627b01e9de3a374a62e5420a10"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":72,"context_line":"            self.instance.obj_load_attr(\u0027keypairs\u0027)"},{"line_number":73,"context_line":"        # The target needs these to claim flavor and SR-IOV PCI devices."},{"line_number":74,"context_line":"        if \u0027pci_requests\u0027 not in self.instance:"},{"line_number":75,"context_line":"            self.instance.obj_load_attr(\u0027pci_requests\u0027)"},{"line_number":76,"context_line":"        actions \u003d objects.InstanceActionList.get_by_instance_uuid("},{"line_number":77,"context_line":"            self.context, self.instance.uuid)"},{"line_number":78,"context_line":"        migrations \u003d objects.MigrationList.get_by_filters("}],"source_content_type":"text/x-python","patch_set":5,"id":"1d0a69c3_14e64e5d","line":75,"updated":"2026-11-20 14:21:28.000000000","message":"We need to land https://review.opendev.org/c/openstack/nova/+/1015204 (if agreed) and stich that into this codepath too","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                    self.context, self.instance.uuid)"},{"line_number":155,"context_line":"                inst_map.cell_mapping \u003d self._original_cell_mapping"},{"line_number":156,"context_line":"                inst_map.old_cell_mapping \u003d None"},{"line_number":157,"context_line":"                inst_map.save()"},{"line_number":158,"context_line":"            except Exception:"},{"line_number":159,"context_line":"                LOG.exception(\u0027Failed to restore instance mapping.\u0027,"},{"line_number":160,"context_line":"                              instance\u003dself.instance)"}],"source_content_type":"text/x-python","patch_set":5,"id":"0e0791f2_6ccb72ef","line":157,"updated":"2026-11-20 14:21:28.000000000","message":"nit: eventually we need expected_*value* params here too when that is implmeneted in a later patch.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":156,"context_line":"                inst_map.old_cell_mapping \u003d None"},{"line_number":157,"context_line":"                inst_map.save()"},{"line_number":158,"context_line":"            except Exception:"},{"line_number":159,"context_line":"                LOG.exception(\u0027Failed to restore instance mapping.\u0027,"},{"line_number":160,"context_line":"                              instance\u003dself.instance)"},{"line_number":161,"context_line":""},{"line_number":162,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3c7ae40d_7accd4c4","line":159,"updated":"2026-11-20 14:21:28.000000000","message":"ouch. the next rollback step will go and hard delete the dest instance object while the cell mapping still points at it. I have no better idea though than what we do here to leave traces in the log to help recover the instance with a DB surgery","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[{"line_number":187,"context_line":"        self._bindings_by_port_id \u003d {}"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"    def _execute(self):"},{"line_number":190,"context_line":"        src_compute_info \u003d ("},{"line_number":191,"context_line":"            objects.ComputeNode.get_first_node_by_host_for_old_compat("},{"line_number":192,"context_line":"                self.source_context, self.source))"},{"line_number":193,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"b561f372_bc2c5680","line":190,"updated":"2026-11-20 14:21:28.000000000","message":"supernit: this is already loaded in _find_destination()-\u003e _check_compatible_with_source_hypervisor() so we could reuse it form there.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":194,"context_line":"        try:"},{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"}],"source_content_type":"text/x-python","patch_set":5,"id":"9c912238_6834c604","line":197,"range":{"start_line":197,"start_character":44,"end_line":197,"end_character":52},"updated":"2026-11-20 14:21:28.000000000","message":"we are sending an instance to the dest, that self.instance is probably having a ctxt embedded targeted to the source cell. In CCLM scenario that would be a problem I guess during some DB lazy load form the dest compute?. Can we send here the dest copy of the instance if we are doing CCLM?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"95461e30153a7b5faf8eb53be2b40605a9edb6ef","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        try:"},{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"}],"source_content_type":"text/x-python","patch_set":5,"id":"4dd2eaae_3b2e3290","line":197,"range":{"start_line":197,"start_character":44,"end_line":197,"end_character":52},"in_reply_to":"84e775ab_4bf4b1a0","updated":"2026-11-25 14:47:58.000000000","message":"ohh good to know that. Thanks.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"03665965e72c982f5408b7eb07fcdfc64f2ebaaf","unresolved":true,"context_lines":[{"line_number":194,"context_line":"        try:"},{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"}],"source_content_type":"text/x-python","patch_set":5,"id":"84e775ab_4bf4b1a0","line":197,"range":{"start_line":197,"start_character":44,"end_line":197,"end_character":52},"in_reply_to":"9c912238_6834c604","updated":"2026-11-20 19:15:38.000000000","message":"The targeting of a context does not survive a trip over RPC, it\u0027s purely an in-memory thing. All of the instances we use for everything have targeted embedded contexts when they leave API/conductor and they all arrive at computes ignorant about cells.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"},{"line_number":201,"context_line":"        except messaging.MessagingTimeout:"}],"source_content_type":"text/x-python","patch_set":5,"id":"67acf92f_f6ddcf20","line":198,"updated":"2026-11-20 14:21:28.000000000","message":"block migration and overcommit are not coming from the API request any more in v2. What we are really sending here? Do we need to send anything?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"03665965e72c982f5408b7eb07fcdfc64f2ebaaf","unresolved":true,"context_lines":[{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"},{"line_number":201,"context_line":"        except messaging.MessagingTimeout:"}],"source_content_type":"text/x-python","patch_set":5,"id":"6c363dde_6ab7295a","line":198,"in_reply_to":"67acf92f_f6ddcf20","updated":"2026-11-20 19:15:38.000000000","message":"This was part of my TODO which is to hard-code them at the lowest-possible layer (even lower than this) to make sure we don\u0027t encourage a zombie resurrection later :)","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"95461e30153a7b5faf8eb53be2b40605a9edb6ef","unresolved":false,"context_lines":[{"line_number":195,"context_line":"            self.dest_check_data \u003d ("},{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"},{"line_number":201,"context_line":"        except messaging.MessagingTimeout:"}],"source_content_type":"text/x-python","patch_set":5,"id":"546ce144_f094066f","line":198,"in_reply_to":"6c363dde_6ab7295a","updated":"2026-11-25 14:47:58.000000000","message":"Done","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"},{"line_number":201,"context_line":"        except messaging.MessagingTimeout:"},{"line_number":202,"context_line":"            raise exception.MigrationPreCheckError("}],"source_content_type":"text/x-python","patch_set":5,"id":"ce725fd4_4c9cdb62","line":199,"updated":"2026-11-20 14:21:28.000000000","message":"ditto we have two migration objects during CCLM should we send the dest copy to the dest node if CCLM?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"8537130665a096f2b823020a6863fea4f75e87dd","unresolved":false,"context_lines":[{"line_number":196,"context_line":"                self.compute_rpcapi.check_can_live_migrate_v2_destination("},{"line_number":197,"context_line":"                    self.dest_context, self.instance, self.destination,"},{"line_number":198,"context_line":"                    self.block_migration, self.disk_over_commit,"},{"line_number":199,"context_line":"                    self.migration,"},{"line_number":200,"context_line":"                    src_compute_info\u003dsrc_compute_info))"},{"line_number":201,"context_line":"        except messaging.MessagingTimeout:"},{"line_number":202,"context_line":"            raise exception.MigrationPreCheckError("}],"source_content_type":"text/x-python","patch_set":5,"id":"67d653be_756aec65","line":199,"in_reply_to":"ce725fd4_4c9cdb62","updated":"2026-12-02 11:52:15.000000000","message":"OK we are not sending it any more as it was unused anyhow. :)","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":213,"context_line":"                reason\u003d_(\"Timeout while checking live migration feasibility \""},{"line_number":214,"context_line":"                         \"on source host: %s\") % self.source)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"        if not self.migrate_data.obj_attr_is_set(\u0027vifs\u0027):"},{"line_number":217,"context_line":"            raise exception.MigrationPreCheckError("},{"line_number":218,"context_line":"                reason\u003d_(\"Destination compute does not support the required \""},{"line_number":219,"context_line":"                         \"multiple port binding workflow.\"))"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"        self._bindings_by_port_id \u003d live_migrate.bind_ports_on_destination("},{"line_number":222,"context_line":"            self.context, self.instance, self.destination,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5d8a9a02_e7174c4c","line":219,"range":{"start_line":216,"start_character":0,"end_line":219,"end_character":60},"updated":"2026-11-20 14:21:28.000000000","message":"whut? This needs a bit of comment. As far as I see the check_can_live_migrate_v2_destination supposed to set it and leave it unset if neutron does not have the extension. So we can move this right after the check_can_live_migrate_v2_destination() call and skip the source check if neutron is baad.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"03665965e72c982f5408b7eb07fcdfc64f2ebaaf","unresolved":true,"context_lines":[{"line_number":213,"context_line":"                reason\u003d_(\"Timeout while checking live migration feasibility \""},{"line_number":214,"context_line":"                         \"on source host: %s\") % self.source)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"        if not self.migrate_data.obj_attr_is_set(\u0027vifs\u0027):"},{"line_number":217,"context_line":"            raise exception.MigrationPreCheckError("},{"line_number":218,"context_line":"                reason\u003d_(\"Destination compute does not support the required \""},{"line_number":219,"context_line":"                         \"multiple port binding workflow.\"))"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"        self._bindings_by_port_id \u003d live_migrate.bind_ports_on_destination("},{"line_number":222,"context_line":"            self.context, self.instance, self.destination,"}],"source_content_type":"text/x-python","patch_set":5,"id":"691d3ad8_c26c7321","line":219,"range":{"start_line":216,"start_character":0,"end_line":219,"end_character":60},"in_reply_to":"5d8a9a02_e7174c4c","updated":"2026-11-20 19:15:38.000000000","message":"I think this is copy pasta from the v1 path that we can just completely ignore now. I will circle back to this later while I work on more important things.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":230,"context_line":"        for port_id in self._bindings_by_port_id:"},{"line_number":231,"context_line":"            try:"},{"line_number":232,"context_line":"                self.network_api.delete_port_binding("},{"line_number":233,"context_line":"                    self.context, port_id, self.destination)"},{"line_number":234,"context_line":"            except Exception:"},{"line_number":235,"context_line":"                LOG.exception(\u0027Failed to cleanup port binding for port %s \u0027"},{"line_number":236,"context_line":"                              \u0027on host %s.\u0027, port_id, self.destination,"}],"source_content_type":"text/x-python","patch_set":5,"id":"786aeb64_fc7ba81e","line":233,"updated":"2026-11-20 14:21:28.000000000","message":"sure this is one cleanup we need. But as far as I see check_can_live_migrate_v2_destination creates the shared local storage probe file that will remain on the disk if we bail out during CheckCanLiveMigrateTask. I guess we don\u0027t want to send a cleanup RPC call to the dest here. So maybe we need a periodic cleanup on the compute service that can remove the probe. \n\nSo far I\u0027m not sure what issue that leaked file can cause. So this might be just cosmetic.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":360,"context_line":"                self.context, host)"},{"line_number":361,"context_line":"        except exception.HostMappingNotFound:"},{"line_number":362,"context_line":"            raise exception.ComputeHostNotFound(host\u003dhost)"},{"line_number":363,"context_line":"        ctxt \u003d copy.copy(self.context)"},{"line_number":364,"context_line":"        nova_context.set_target_cell(ctxt, host_mapping.cell_mapping)"},{"line_number":365,"context_line":"        return ctxt"},{"line_number":366,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"cb3eca48_292c6bef","line":363,"updated":"2026-11-20 14:21:28.000000000","message":"does shallow copy enough? If this is not a reuse by calling I would not mention where it was copied from","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":373,"context_line":"    def _get_source_cell_mapping(self):"},{"line_number":374,"context_line":"        try:"},{"line_number":375,"context_line":"            return objects.InstanceMapping.get_by_instance_uuid("},{"line_number":376,"context_line":"                self.context, self.instance.uuid).cell_mapping"},{"line_number":377,"context_line":"        except exception.InstanceMappingNotFound:"},{"line_number":378,"context_line":"            raise exception.MigrationPreCheckError("},{"line_number":379,"context_line":"                reason\u003d(_(\u0027Unable to determine in which cell \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"12415179_f5864237","line":376,"range":{"start_line":376,"start_character":50,"end_line":376,"end_character":62},"updated":"2026-11-20 14:21:28.000000000","message":"hm. that is *only* source cell mapping before we do the cloning and set up the old_cell_id to point to the source and the cell_id to the dest. Probably how this function is used at the moment it is resulting in the correct return value, but if later we happen to call this after the setup it will return the wrong value. So I would either not call this function _get_source_cell_mapping or I would make sure it returns the source mapping in all cases.\n\nWould\n```\nobjects.HostMapping.get_by_host(self.context, self.instance.host).cell_mapping\n```\nbe more stable across the conductor portion of the CCLM operation?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":382,"context_line":"    def _get_destination_cell_mapping(self):"},{"line_number":383,"context_line":"        try:"},{"line_number":384,"context_line":"            return objects.HostMapping.get_by_host("},{"line_number":385,"context_line":"                self.context, self.destination).cell_mapping"},{"line_number":386,"context_line":"        except exception.HostMappingNotFound:"},{"line_number":387,"context_line":"            raise exception.MigrationPreCheckError("},{"line_number":388,"context_line":"                reason\u003d(_(\u0027Unable to determine in which cell \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"eb73bd7c_150040d7","line":385,"updated":"2026-11-20 14:21:28.000000000","message":"Can self.destination be None if the CCLM is not targeted by the API request? In that case do we set self.destination to the scheduler selected host later on?\n\nI\u0027m a bit afraid of a helper that work only a very narrow scope","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":391,"context_line":"    def _find_destination(self):"},{"line_number":392,"context_line":"        \"\"\"Use the scheduler to select or validate a destination host."},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"        Reuses the scheduling logic from LiveMigrationTask — build a"},{"line_number":395,"context_line":"        RequestSpec, call select_destinations, run hypervisor compat"},{"line_number":396,"context_line":"        checks."},{"line_number":397,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"77ee3775_afec928d","line":394,"range":{"start_line":394,"start_character":8,"end_line":394,"end_character":14},"updated":"2026-11-20 14:21:28.000000000","message":"reuses or copies?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[{"line_number":400,"context_line":"        request_spec.reset_forced_destinations()"},{"line_number":401,"context_line":"        if self.destination:"},{"line_number":402,"context_line":"            # Constrain the scheduler to the requested host without bypassing"},{"line_number":403,"context_line":"            # filters or the scheduler\u0027s Placement resource claim."},{"line_number":404,"context_line":"            request_spec.requested_destination \u003d objects.Destination("},{"line_number":405,"context_line":"                host\u003dself.destination)"},{"line_number":406,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"cd1a23de_a433ff73","line":403,"updated":"2026-11-20 14:21:28.000000000","message":"thanks","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":402,"context_line":"            # Constrain the scheduler to the requested host without bypassing"},{"line_number":403,"context_line":"            # filters or the scheduler\u0027s Placement resource claim."},{"line_number":404,"context_line":"            request_spec.requested_destination \u003d objects.Destination("},{"line_number":405,"context_line":"                host\u003dself.destination)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        port_res_req, req_lvl_params \u003d ("},{"line_number":408,"context_line":"            self.network_api.get_requested_resource_for_instance("}],"source_content_type":"text/x-python","patch_set":5,"id":"25bce5b5_70e715cb","line":405,"updated":"2026-11-20 14:21:28.000000000","message":"do we need to setup allow_cross_cell_move\u003dtrue? \nhttps://github.com/openstack/nova/blob/74344dc9b7dd199710802787acfb1c3b2775bccc/nova/objects/request_spec.py#L1149\n\nIt is strange that the scheduling works without it. Is this a noop field?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":true,"context_lines":[{"line_number":402,"context_line":"            # Constrain the scheduler to the requested host without bypassing"},{"line_number":403,"context_line":"            # filters or the scheduler\u0027s Placement resource claim."},{"line_number":404,"context_line":"            request_spec.requested_destination \u003d objects.Destination("},{"line_number":405,"context_line":"                host\u003dself.destination)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        port_res_req, req_lvl_params \u003d ("},{"line_number":408,"context_line":"            self.network_api.get_requested_resource_for_instance("}],"source_content_type":"text/x-python","patch_set":5,"id":"d84e9942_c590a971","line":405,"in_reply_to":"25bce5b5_70e715cb","updated":"2026-11-24 13:40:24.000000000","message":"@gibi, the object field defaults to False if unset \nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/objects/request_spec.py#L1134-L1154\nbut the weigher only checks this field if the source cell is provided, so that\u0027s why it works.\nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/scheduler/weights/cross_cell.py#L52-L54\n\nThat said, I believe we should explicitely add the source cell to any request to express preferences for the weigher (and stuff that Destination with allow_cross_cell_move\u003dTrue to allow CCLM)","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":true,"context_lines":[{"line_number":402,"context_line":"            # Constrain the scheduler to the requested host without bypassing"},{"line_number":403,"context_line":"            # filters or the scheduler\u0027s Placement resource claim."},{"line_number":404,"context_line":"            request_spec.requested_destination \u003d objects.Destination("},{"line_number":405,"context_line":"                host\u003dself.destination)"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"        port_res_req, req_lvl_params \u003d ("},{"line_number":408,"context_line":"            self.network_api.get_requested_resource_for_instance("}],"source_content_type":"text/x-python","patch_set":5,"id":"2b00959a_06f5bf25","line":405,"in_reply_to":"d84e9942_c590a971","updated":"2026-11-27 15:45:48.000000000","message":"Dan, please add allow_cross_cell_move\u003dTrue and the source cell value here","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":416,"context_line":"        request_spec.ensure_project_and_user_id(self.instance)"},{"line_number":417,"context_line":"        request_spec.ensure_network_information(self.instance)"},{"line_number":418,"context_line":"        compute_utils.heal_reqspec_is_bfv("},{"line_number":419,"context_line":"            self.context, request_spec, self.instance)"},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"        host \u003d None"},{"line_number":422,"context_line":"        while host is None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"9bf7d1ce_0194dfe3","line":419,"updated":"2026-11-20 14:21:28.000000000","message":"compared this setup sequence with https://github.com/openstack/nova/blob/74344dc9b7dd199710802787acfb1c3b2775bccc/nova/conductor/tasks/live_migrate.py#L484 and it make sense. Two comments\n\n1. the copy strips comments from the v1 code when copying them over here. Some comments are valid here too. Like cyborg support.\n\n2. v1 restricts the scheduling to same cell, v2 does not. This is correct. But as per spec we will have an api policy that restricts the v2 to same cell only too. I guess that needs to be added in a later patch. But I feel that will need a conductor RPC change to pass a flag. OR we need to start to record that in the in-memory RequestSpec object passed here?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":425,"context_line":"            try:"},{"line_number":426,"context_line":"                selection_lists \u003d self.query_client.select_destinations("},{"line_number":427,"context_line":"                    self.context, request_spec, [self.instance.uuid],"},{"line_number":428,"context_line":"                    return_objects\u003dTrue, return_alternates\u003dFalse)"},{"line_number":429,"context_line":"                selection \u003d selection_lists[0][0]"},{"line_number":430,"context_line":"                host \u003d selection.service_host"},{"line_number":431,"context_line":"            except messaging.RemoteError as ex:"}],"source_content_type":"text/x-python","patch_set":5,"id":"c951e032_f0eaed93","line":428,"range":{"start_line":428,"start_character":41,"end_line":428,"end_character":58},"updated":"2026-11-20 14:21:28.000000000","message":"we do implement some kind of reschedule logic here, but we don\u0027t use the scheduler provided alternative hosts for the retires. I think this is wasteful. We should ask for \u0027migrate_max_retries\u0027 amount of alternatives from the scheduler in one go and just iterate on those trying to find a valid host.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":428,"context_line":"                    return_objects\u003dTrue, return_alternates\u003dFalse)"},{"line_number":429,"context_line":"                selection \u003d selection_lists[0][0]"},{"line_number":430,"context_line":"                host \u003d selection.service_host"},{"line_number":431,"context_line":"            except messaging.RemoteError as ex:"},{"line_number":432,"context_line":"                raise exception.MigrationSchedulerRPCError(reason\u003dstr(ex))"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"            scheduler_utils.fill_provider_mapping(request_spec, selection)"}],"source_content_type":"text/x-python","patch_set":5,"id":"48e1a62b_3778226d","line":431,"updated":"2026-11-20 14:21:28.000000000","message":"does this catch NoValidHost as well?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":471,"context_line":"        return source_info, destination_info"},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"    def _remove_host_allocations(self, compute_node_uuid):"},{"line_number":474,"context_line":"        self.report_client.remove_provider_tree_from_instance_allocation("},{"line_number":475,"context_line":"            self.context, self.instance.uuid, compute_node_uuid)"},{"line_number":476,"context_line":""},{"line_number":477,"context_line":"    def _check_not_over_max_retries(self, attempted_hosts):"}],"source_content_type":"text/x-python","patch_set":5,"id":"eea167af_2abf52ac","line":474,"updated":"2026-11-20 14:21:28.000000000","message":"hm, why this helper? We have two allocations the source held by the migration_uuid, the new dest held by the instance_uuid. So if when we reject a selected_destination we need to just delete the allocation held by instance_uuid before we re-try on an alternative host.\n\nThis might end up doing the same but it is overcomplicated.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":556,"context_line":""},{"line_number":557,"context_line":"    def _execute(self):"},{"line_number":558,"context_line":"        self._check_instance_is_active()"},{"line_number":559,"context_line":"        self._check_host_is_up(self.source)"},{"line_number":560,"context_line":""},{"line_number":561,"context_line":"        self._source_cn, self._held_allocations \u003d ("},{"line_number":562,"context_line":"            migrate.replace_allocation_with_migration("}],"source_content_type":"text/x-python","patch_set":5,"id":"ea26cc53_b2719969","line":559,"updated":"2026-11-20 14:21:28.000000000","message":"I feel we are missing stuff here compared to normal live migration like:\n* _check_can_migrate_pci()\n* _check_can_migrate_specific_resources()\n\nThese are badly hidden in _call_livem_checks_on_host() but they are happen before we RPC to the any host :)\n\nhttps://github.com/openstack/nova/blob/74344dc9b7dd199710802787acfb1c3b2775bccc/nova/conductor/tasks/live_migrate.py#L379-L381\n\n// later\n\nHm _check_can_migrate_specific_resources() only checks for service version \u003e\u003d 51. That is true for us all the time in v2. So that can be ignored.\n\nIn the _check_can_migrate_pci() we have some non service version checks:\n* neutron extension. Probably we need to still check and fail if neutron cannot do what we need\n* live_migrateable flag: https://github.com/openstack/nova/blob/74344dc9b7dd199710802787acfb1c3b2775bccc/nova/conductor/tasks/live_migrate.py#L243-L259 We could move this to a lot earlier if we want as it is about the pci_request we know in the nova-api level already.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":563,"context_line":"                self.context, self.instance, self.migration))"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"        if self.availability_zone:"},{"line_number":566,"context_line":"            self.request_spec.availability_zone \u003d self.availability_zone"},{"line_number":567,"context_line":"        self.destination, dest_node, self.limits \u003d self._find_destination()"},{"line_number":568,"context_line":""},{"line_number":569,"context_line":"        self._source_cell_mapping \u003d self._get_source_cell_mapping()"}],"source_content_type":"text/x-python","patch_set":5,"id":"d4f1d4d8_10adbb74","line":566,"updated":"2026-11-20 14:21:28.000000000","message":"Am I correct that it is the place that requests then AZ for the instance if the API request asked for it?\n\nnit: If so, I feel like we should do the setup of the host in the request_spec.requested_destination close next to this. Right now this two similar and related steps are split across here and the internals of _find_destination().","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":576,"context_line":""},{"line_number":577,"context_line":"        self._target_cell_migration \u003d None"},{"line_number":578,"context_line":"        if self._is_cross_cell:"},{"line_number":579,"context_line":"            self._target_cell_migration \u003d self._setup_target_cell_db()"},{"line_number":580,"context_line":""},{"line_number":581,"context_line":"        self._setup_cell_routing()"},{"line_number":582,"context_line":"        self._check_can_live_migrate()"}],"source_content_type":"text/x-python","patch_set":5,"id":"f301064f_eefb1125","line":579,"updated":"2026-11-20 14:21:28.000000000","message":"after this point if we save something to the source object that needs to be considered to be copied to the dest object as after a successful CCLM the dest objects becomes authoritative copy. Similarly if something is saved to the dest object and a rollback happens then such changes are lost (which might be what we want).\n\n(I don\u0027t know yet what this really means but likely compute recorded instance events might be lost)","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[{"line_number":579,"context_line":"            self._target_cell_migration \u003d self._setup_target_cell_db()"},{"line_number":580,"context_line":""},{"line_number":581,"context_line":"        self._setup_cell_routing()"},{"line_number":582,"context_line":"        self._check_can_live_migrate()"},{"line_number":583,"context_line":""},{"line_number":584,"context_line":"        self.instance.availability_zone \u003d ("},{"line_number":585,"context_line":"            availability_zones.get_host_availability_zone("}],"source_content_type":"text/x-python","patch_set":5,"id":"27eb6d79_62c73445","line":582,"updated":"2026-11-20 14:21:28.000000000","message":"nit: this actually not just checks, but also binds the port to the dest. The same way as v1.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":false,"context_lines":[{"line_number":594,"context_line":"            self._target_cell_migration.source_node \u003d self.instance.node"},{"line_number":595,"context_line":"            self._target_cell_migration.dest_node \u003d dest_node"},{"line_number":596,"context_line":"            self._target_cell_migration.dest_compute \u003d self.destination"},{"line_number":597,"context_line":"            self._target_cell_migration.save()"},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"        # Set migration_context on the source instance. This serves two"},{"line_number":600,"context_line":"        # purposes: (1) external event dispatch (_get_relevant_hosts)"}],"source_content_type":"text/x-python","patch_set":5,"id":"39766410_35a19981","line":597,"updated":"2026-11-20 14:21:28.000000000","message":"that is as good example of updating both side of the copy.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":601,"context_line":"        # uses it to find the migration and send events like"},{"line_number":602,"context_line":"        # network-vif-plugged to both source and destination hosts, and"},{"line_number":603,"context_line":"        # (2) source-side post-migration cleanup needs the old resource"},{"line_number":604,"context_line":"        # state. In same-cell v1, the source sees the destination\u0027s"},{"line_number":605,"context_line":"        # claim context (same DB), but cross-cell cannot, so we populate"},{"line_number":606,"context_line":"        # these fields from the source instance here."},{"line_number":607,"context_line":"        self.instance.migration_context \u003d objects.MigrationContext("},{"line_number":608,"context_line":"            instance_uuid\u003dself.instance.uuid,"},{"line_number":609,"context_line":"            migration_id\u003dself.migration.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"92343975_90bd1ed9","line":606,"range":{"start_line":604,"start_character":34,"end_line":606,"end_character":53},"updated":"2026-11-20 14:21:28.000000000","message":"how can we populate the destination\u0027s claim context from the source instance?","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":607,"context_line":"        self.instance.migration_context \u003d objects.MigrationContext("},{"line_number":608,"context_line":"            instance_uuid\u003dself.instance.uuid,"},{"line_number":609,"context_line":"            migration_id\u003dself.migration.id,"},{"line_number":610,"context_line":"            new_numa_topology\u003dNone,"},{"line_number":611,"context_line":"            old_numa_topology\u003dself.instance.numa_topology,"},{"line_number":612,"context_line":"            old_pci_devices\u003dself.instance.pci_devices,"},{"line_number":613,"context_line":"            new_pci_devices\u003dNone,"}],"source_content_type":"text/x-python","patch_set":5,"id":"6e207669_44bf5255","line":610,"updated":"2026-11-20 14:21:28.000000000","message":"would this be one of the destination\u0027s claim context? So we don\u0027t populate it here","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"6a9c22d621c426ec4987378c773882caabfbf227","unresolved":true,"context_lines":[{"line_number":616,"context_line":"            old_resources\u003dself.instance.resources,"},{"line_number":617,"context_line":"            new_resources\u003dNone,"},{"line_number":618,"context_line":"        )"},{"line_number":619,"context_line":"        self.instance.save()"},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"        self._pre_live_migration()"},{"line_number":622,"context_line":"        self._start_live_migration()"}],"source_content_type":"text/x-python","patch_set":5,"id":"35d2b199_ac6c0ebf","line":619,"updated":"2026-11-20 14:21:28.000000000","message":"this is not replicated to the dest copy (if any). I guess the dest compute does not need this info. But lets confirm.","commit_id":"5f6b84da8d2e300753fccf96bf941ac5e1c14dc8"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"d56b8cab18048acf2e80c119b41400e4979f8d47","unresolved":true,"context_lines":[{"line_number":267,"context_line":"        return self.migrate_data"},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"    def rollback(self, ex):"},{"line_number":270,"context_line":"        pass"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":""},{"line_number":273,"context_line":"class StartLiveMigrationTask(base.TaskBase):"}],"source_content_type":"text/x-python","patch_set":6,"id":"87f55682_51e53eaf","line":270,"updated":"2026-11-24 13:40:24.000000000","message":"Can we distinguish rollback before and after successful destination setup? If the source cast fails after the monitor starts, here it does nothing, then TargetCellDBSetupTask hard-deletes the instance records before allocations are reverted, including BDMs AFAICU. The monitor subsequently sees rollback but can no longer load the BDMs needed for attachment cleanup.","commit_id":"45dd9c957b58c7424a7eb398ae07f3504959dee2"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"8f0330fed448bf0704018c92a94467b4da09a94c","unresolved":true,"context_lines":[{"line_number":218,"context_line":""},{"line_number":219,"context_line":"        self._bindings_by_port_id \u003d live_migrate.bind_ports_on_destination("},{"line_number":220,"context_line":"            self.context, self.instance, self.destination,"},{"line_number":221,"context_line":"            self.migrate_data, self.network_api)"},{"line_number":222,"context_line":"        live_migrate.update_migrate_vifs_from_bindings("},{"line_number":223,"context_line":"            self.migrate_data.vifs, self._bindings_by_port_id)"},{"line_number":224,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"45e2b5c8_fb074a39","line":221,"updated":"2026-11-27 15:45:48.000000000","message":"here with v2, I don\u0027t see provider_mappings being passed down for QoS-aware instances compared to v1, see my point on https://review.opendev.org/c/openstack/nova/+/1008842/7/nova/conductor/tasks/live_migrate.py#596\nUnfortunately, the default value for provider_mappings is None for bind_ports_on_destination() 🥹\n\nThat\u0027s a feature-parity gap between v1 and v2 IIUC.","commit_id":"6e6d0b1be8f35fb741dc1d67fd11960c7dbda61d"}],"nova/tests/unit/conductor/tasks/test_live_migrate_v2.py":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"        with test.nested("},{"line_number":102,"context_line":"            mock.patch.object(instance, \u0027get_bdms\u0027, return_value\u003d[]),"},{"line_number":103,"context_line":"            mock.patch.object(instance, \u0027obj_load_attr\u0027, side_effect\u003dload_attr),"},{"line_number":104,"context_line":"            mock.patch.object("},{"line_number":105,"context_line":"                live_migrate_v2.cross_cell_migrate,"},{"line_number":106,"context_line":"                \u0027clone_creatable_object\u0027, return_value\u003dtarget_instance),"}],"source_content_type":"text/x-python","patch_set":1,"id":"ab91e079_290e3ec4","line":103,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (80 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":139,"context_line":"            compute_rpcapi\u003dself.compute_rpcapi,"},{"line_number":140,"context_line":"            network_api\u003dself.network_api)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":143,"context_line":"    def test_execute(self, mock_get_cn):"},{"line_number":144,"context_line":"        self.network_api.has_port_binding_extension.return_value \u003d True"},{"line_number":145,"context_line":"        dest_check_data \u003d mock.sentinel.dest_check_data"}],"source_content_type":"text/x-python","patch_set":1,"id":"27e4dfd1_e1124bfb","line":142,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (81 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    def test_execute(self, mock_get_cn):"},{"line_number":144,"context_line":"        self.network_api.has_port_binding_extension.return_value \u003d True"},{"line_number":145,"context_line":"        dest_check_data \u003d mock.sentinel.dest_check_data"},{"line_number":146,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.return_value \u003d ("},{"line_number":147,"context_line":"            dest_check_data)"},{"line_number":148,"context_line":"        migrate_data \u003d objects.LibvirtLiveMigrateData(vifs\u003d[])"},{"line_number":149,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_source.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":1,"id":"d04ed735_d79a833b","line":146,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (82 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":168,"context_line":"            self.network_api)"},{"line_number":169,"context_line":"        self.assertIs(result, migrate_data)"},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":172,"context_line":"    def test_execute_no_port_binding_extension(self, mock_get_cn):"},{"line_number":173,"context_line":"        self.network_api.has_port_binding_extension.return_value \u003d False"},{"line_number":174,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":1,"id":"0a2b61e1_1901aa55","line":171,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (81 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":171,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":172,"context_line":"    def test_execute_no_port_binding_extension(self, mock_get_cn):"},{"line_number":173,"context_line":"        self.network_api.has_port_binding_extension.return_value \u003d False"},{"line_number":174,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.return_value \u003d ("},{"line_number":175,"context_line":"            mock.sentinel.dest_check_data)"},{"line_number":176,"context_line":"        migrate_data \u003d objects.LibvirtLiveMigrateData(vifs\u003d[])"},{"line_number":177,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_source.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":1,"id":"2072793c_e8fd4d81","line":174,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (82 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":183,"context_line":"            task.execute()"},{"line_number":184,"context_line":"        mock_bind.assert_not_called()"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":187,"context_line":"    def test_execute_dest_check_timeout(self, mock_get_cn):"},{"line_number":188,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.side_effect \u003d ("},{"line_number":189,"context_line":"            messaging.MessagingTimeout())"}],"source_content_type":"text/x-python","patch_set":1,"id":"57383c60_8926a264","line":186,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (81 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":187,"context_line":"    def test_execute_dest_check_timeout(self, mock_get_cn):"},{"line_number":188,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.side_effect \u003d ("},{"line_number":189,"context_line":"            messaging.MessagingTimeout())"},{"line_number":190,"context_line":"        task \u003d self._make_task()"},{"line_number":191,"context_line":"        self.assertRaises("}],"source_content_type":"text/x-python","patch_set":1,"id":"06081680_2bbf3f28","line":188,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (81 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":191,"context_line":"        self.assertRaises("},{"line_number":192,"context_line":"            exception.MigrationPreCheckError, task.execute)"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":195,"context_line":"    def test_execute_source_check_timeout(self, mock_get_cn):"},{"line_number":196,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.return_value \u003d ("},{"line_number":197,"context_line":"            mock.sentinel.dest_check_data)"}],"source_content_type":"text/x-python","patch_set":1,"id":"c1387799_8a254c5a","line":194,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (81 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":193,"context_line":""},{"line_number":194,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.get_first_node_by_host_for_old_compat\u0027)"},{"line_number":195,"context_line":"    def test_execute_source_check_timeout(self, mock_get_cn):"},{"line_number":196,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_destination.return_value \u003d ("},{"line_number":197,"context_line":"            mock.sentinel.dest_check_data)"},{"line_number":198,"context_line":"        self.compute_rpcapi.check_can_live_migrate_v2_source.side_effect \u003d ("},{"line_number":199,"context_line":"            messaging.MessagingTimeout())"}],"source_content_type":"text/x-python","patch_set":1,"id":"2d2d527a_33ebda70","line":196,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: E501 line too long (82 \u003e 79 characters)","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"},{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"b86a633ae46e7215993dfb7e3e9f11c879faf696","unresolved":false,"context_lines":[{"line_number":599,"context_line":""},{"line_number":600,"context_line":"    @mock.patch(\u0027nova.objects.Service.get_by_compute_host\u0027)"},{"line_number":601,"context_line":"    def test_check_host_is_up(self, mock_get_service):"},{"line_number":602,"context_line":"        mock_service \u003d mock_get_service.return_value"},{"line_number":603,"context_line":"        with test.nested("},{"line_number":604,"context_line":"            mock.patch.object(self.task, \u0027_get_cell_context_for_host\u0027,"},{"line_number":605,"context_line":"                              return_value\u003dself.context),"}],"source_content_type":"text/x-python","patch_set":1,"id":"781baf19_d1b23c62","line":602,"updated":"2026-10-05 19:03:17.000000000","message":"pep8: F841 local variable \u0027mock_service\u0027 is assigned to but never used","commit_id":"7fea8516a8e8cc29c79e7dc5dc1be9d3233c4f6c"}]}
