)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b4402ea7a7a58c4dca7e090150d92f8903ce26a9","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"6f1e10ba_53b1b0b7","updated":"2026-12-01 18:00:42.000000000","message":"I really don\u0027t love this in general because it\u0027s the cell-resident services manipulating data they\u0027re not supposed to know about. I don\u0027t really have a better suggestion but it might be worth considering what the periodic could do to identify these moves a different way.","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"},{"author":{"_account_id":5890,"name":"Doug Goldstein","email":"cardoe@cardoe.com","username":"cardoe"},"change_message_id":"59565036c04b324f0992fb5590f7beab185954af","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"c02aa5b6_bcafe28b","updated":"2026-12-01 23:38:27.000000000","message":"So this was to fix devstack when using the ironic driver. The patch to devstack I have is https://review.opendev.org/c/openstack/devstack/+/1018236","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"2bfb93071229fd15b49446751138ac4df532b12c","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"992cbad6_8f54eb48","in_reply_to":"6f1e10ba_53b1b0b7","updated":"2026-12-01 19:56:30.000000000","message":"my understaidn is this entire code path coudl also be deleted now.\n\nthis only happes if you have the peer_list option\nas without that we dont reblacne compute ndoes betwen compute service and we woudl never need to update the instance mappings.\n\nhttps://docs.openstack.org/nova/latest/configuration/config.html#ironic.peer_list\n\nthat has been deprecated for removal since bobcat so we coudl remove this falure mode entirly by just finally deleting all of that code.\n\nbut i agree a virt driver or even the compute manger shoudl not need to know about hte instance mappign in the api db and the resouce tracker shoudl not know about the mapped state let alone chagne it.\n\nthis was one of the reason https://specs.openstack.org/openstack/nova-specs/specs/2024.1/implemented/ironic-shards.html was built.\n\ngiven the peer list was intended to be removed in 2024.1 adn we are now working on 2027.1 is this somethign we really want to fix now?\n\nits possibel we could just have the exisitng dicoscover host perodic on the schduler fix this when its enablded and out of sync.\n\nhttps://github.com/openstack/nova/blob/master/nova/scheduler/manager.py#L108-L147\n\nthat woudl avoid needign the compute serivce or resouce tracker knowing or careing about this.","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"}],"nova/tests/functional/regressions/test_bug_rebalance_host_mapping.py":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b4402ea7a7a58c4dca7e090150d92f8903ce26a9","unresolved":true,"context_lines":[{"line_number":54,"context_line":"        return host_mapping.discover_hosts("},{"line_number":55,"context_line":"            self.ctxt, status_fn\u003dlambda m: None)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def test_rebalance_to_unmapped_host(self):"},{"line_number":58,"context_line":"        # host_a manages fake-node and is discovered, which maps host_a and"},{"line_number":59,"context_line":"        # marks fake-node as mapped."},{"line_number":60,"context_line":"        host_a \u003d self._start_ironic_compute(\u0027host_a\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"d473d3f4_a627243e","line":57,"updated":"2026-12-01 18:00:42.000000000","message":"Please add a case to validate the \"rebalance to already mapped\" case. Please also make sure that the mappings after both cases are cleaned up and that we don\u0027t leak mappings that pertain to the old node/service combo.\n\nPlease also add a case where we float to a new host and then float back to the same host we previously were on.","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"}],"nova/tests/unit/compute/test_resource_tracker.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"2bfb93071229fd15b49446751138ac4df532b12c","unresolved":true,"context_lines":[{"line_number":1397,"context_line":"        update_mock.assert_called_once_with(mock.sentinel.ctx, cn)"},{"line_number":1398,"context_line":""},{"line_number":1399,"context_line":"        self.assertEqual(_HOSTNAME, self.rt.compute_nodes[_NODENAME].host)"},{"line_number":1400,"context_line":"        # The compute node moved to a new host, so it must be unmapped to"},{"line_number":1401,"context_line":"        # let host discovery map the new host to a cell."},{"line_number":1402,"context_line":"        self.assertEqual(0, self.rt.compute_nodes[_NODENAME].mapped)"},{"line_number":1403,"context_line":""},{"line_number":1404,"context_line":"    @mock.patch(\u0027nova.objects.ComputeNode.create\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"48f347f7_9c21ac14","line":1401,"range":{"start_line":1400,"start_character":8,"end_line":1401,"end_character":56},"updated":"2026-12-01 19:56:30.000000000","message":"so when a compute node is reblanced it replance to a diffent comptue serive\n\nthe host valdue of that is kind of secondary, its just the rpc queue name for that compute service.\n\nthe cell maping shoudl not need to be updated as the cell cant change in this process as we have never supproted remaping compute ndoes between cells only between compute services in teh same cell.\n\n\nso when we reblance a compute node it shoudlnot chagne teh host cell mapping\n\nhttps://github.com/openstack/nova/blob/master/nova/db/api/models.py#L191-L207\n\neach ironic node is maped to a comute node and if you create a nova server provision by ironic that nova servie is represented in teh instance cell mapings tables\n\nhttps://github.com/openstack/nova/blob/master/nova/db/api/models.py#L160-L188\n\nthat does not have a refence to the compute node directly or the compute service tha manges it\n\nit just refences the cell that instnace is in so we know what db recored to look it up in\n\nso waht exactly are you asserting is broken?\n\n\nnone of teh compute service, compute node nor instance can move between cells.\n\nif you set peer_list to contin compute service tha reside in diffent celsl that was never supproted so this feels invalid to me.","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"}],"releasenotes/notes/reset-mapped-on-node-rebalance-f800d8961719b04e.yaml":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"2bfb93071229fd15b49446751138ac4df532b12c","unresolved":true,"context_lines":[{"line_number":5,"context_line":"    another, as happens with the ironic virt driver, the ``mapped`` field of"},{"line_number":6,"context_line":"    the compute node is now reset. Previously, if the compute node had"},{"line_number":7,"context_line":"    already been mapped while it belonged to the old host, and the new host"},{"line_number":8,"context_line":"    had no other compute nodes, ``nova-manage cell_v2 discover_hosts`` and"},{"line_number":9,"context_line":"    the ``[scheduler]discover_hosts_in_cells_interval`` periodic task would"},{"line_number":10,"context_line":"    never create a host mapping for the new host. Instances scheduled to that"},{"line_number":11,"context_line":"    compute node then failed with ``Host \u0027\u003chost\u003e\u0027 is not mapped to any"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"6d22f4a4_46f3841c","line":8,"updated":"2026-12-01 19:56:30.000000000","message":"by the way i tought the --by-service flag\n\nhttps://github.com/openstack/nova/blob/master/nova/cmd/manage.py#L1136\n\nhttps://github.com/openstack/nova/commit/005a66d7e0bb716e32d29a6b5c9d9f24192596e2\n\nwas added to partly adress this.\n\ni dont know that taht will actully remap a mapped host but it will iterate per compute service and then try to make sure the instance and cell maping for that service and computenode/instance are correct but the expection is --by-serice will be used if your using ironic.","commit_id":"a00c7cdcc5c703d078c1cd4b609cfb6435f85f81"}]}
