)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"c94f6a3c6f90179b6644813b87d17253431da7bf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"dd65aa55_12a791e2","updated":"2026-10-05 17:10:53.000000000","message":"Pinning this ahead of the whole stack so we don\u0027t land anything until we\u0027ve finished review of the approach\n\nNOTE to reviewers starting the series from here: This is very much a POC. Missing tests in a lot of places, generated tests I haven\u0027t reviewed closely in plenty of other cases. This was focused on finding the sharp edges so we could have conversations about them. This works for me in real life but obviously I haven\u0027t covered all the scenarios and this deserves plenty of scrutiny.\n\nHack job osc modification to allow driving this in its current form is here:\n\nhttps://review.opendev.org/c/openstack/python-openstackclient/+/1008846","commit_id":"bfaabda294f2432bf306880f0866a1f98b1bf821"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"0f1df03986681f59bc694c091b763e2da8cc93f4","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"26f49dd3_3a43e97f","updated":"2026-10-30 18:56:25.000000000","message":"(sticking to +1 as I work up through the stack, given this is PoC code for now and subject to potentially-heavy rework)\n\nYep, makes sense and clearly needed in virtually any design for cross-cell migration.","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"773525fc62a693c7c9a5b00676fba5e0e6da1383","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"a5405ecd_915cb072","updated":"2026-11-18 15:43:47.000000000","message":"no issues found so far with this easy peasy.\nNo +2 until we remove the -2 of course.","commit_id":"8b95fc45d1b79401d37441a3d9ea42abbf9ae6b1"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"e3543f6f5371d13ccec6adf7780b9e82be68a32e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"aa576cfc_6cdfc1c1","updated":"2026-11-23 12:25:19.000000000","message":"just rebase","commit_id":"5683e428a9f022f506ffd1ab330a70501e6737b6"}],"nova/db/api/migrations/versions/cf560dab76bf_add_old_cell_id_to_instance_mappings.py":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"bdf356bc385c30d110bd8ee4da6fb14769648c9a","unresolved":true,"context_lines":[{"line_number":32,"context_line":"    with op.batch_alter_table(\u0027instance_mappings\u0027, schema\u003dNone) as batch_op:"},{"line_number":33,"context_line":"        batch_op.add_column("},{"line_number":34,"context_line":"            sa.Column(\u0027old_cell_id\u0027, sa.Integer(), nullable\u003dTrue))"},{"line_number":35,"context_line":"        batch_op.create_foreign_key("},{"line_number":36,"context_line":"            \u0027fk_instance_mappings_old_cell_id\u0027,"},{"line_number":37,"context_line":"            \u0027cell_mappings\u0027, [\u0027old_cell_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3b4f030b_acfed943","line":35,"range":{"start_line":35,"start_character":8,"end_line":35,"end_character":36},"updated":"2026-11-13 16:10:12.000000000","message":"FK created here.","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"9849dabbbc8150402c99d85f05829f182ce41376","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    with op.batch_alter_table(\u0027instance_mappings\u0027, schema\u003dNone) as batch_op:"},{"line_number":33,"context_line":"        batch_op.add_column("},{"line_number":34,"context_line":"            sa.Column(\u0027old_cell_id\u0027, sa.Integer(), nullable\u003dTrue))"},{"line_number":35,"context_line":"        batch_op.create_foreign_key("},{"line_number":36,"context_line":"            \u0027fk_instance_mappings_old_cell_id\u0027,"},{"line_number":37,"context_line":"            \u0027cell_mappings\u0027, [\u0027old_cell_id\u0027], [\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"436e6b33_7b46c294","line":35,"range":{"start_line":35,"start_character":8,"end_line":35,"end_character":36},"in_reply_to":"3b4f030b_acfed943","updated":"2026-11-16 12:44:03.000000000","message":"Acknowledged","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"}],"nova/db/api/models.py":[{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"979fd7caf02ae83a644c6c8cac1b254536d9d97d","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    )"},{"line_number":154,"context_line":"    instance_mapping \u003d orm.relationship("},{"line_number":155,"context_line":"        \u0027InstanceMapping\u0027,"},{"line_number":156,"context_line":"        foreign_keys\u003d\u0027[InstanceMapping.cell_id]\u0027,"},{"line_number":157,"context_line":"        back_populates\u003d\u0027cell_mapping\u0027,"},{"line_number":158,"context_line":"    )"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a95b34a_cf0fa173","line":156,"updated":"2026-11-13 12:45:00.000000000","message":"Does it need to be considered in the schema upgrade script too? Or is it just cosmetics here for the human reader?","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"bdf356bc385c30d110bd8ee4da6fb14769648c9a","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    )"},{"line_number":154,"context_line":"    instance_mapping \u003d orm.relationship("},{"line_number":155,"context_line":"        \u0027InstanceMapping\u0027,"},{"line_number":156,"context_line":"        foreign_keys\u003d\u0027[InstanceMapping.cell_id]\u0027,"},{"line_number":157,"context_line":"        back_populates\u003d\u0027cell_mapping\u0027,"},{"line_number":158,"context_line":"    )"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"626fe807_132c6268","line":156,"in_reply_to":"3a95b34a_cf0fa173","updated":"2026-11-13 16:10:12.000000000","message":"The key is there in the schema. This is the backref that makes `InstanceMapping.cell_mapping` work. I think we need this (note it\u0027s the real `cell_id` not the `old_cell_id` I\u0027m adding) to make sure that SQLA looks at the right id if anyone uses that field. I don\u0027t think we ever care since we have our own ORM (sort of) on top of all this. But technically with two ids to the same other table, this makes sure it uses the right one.\n\nI\u0027ll also say this was LLM\u0027s doing, for extreme completeness, and I imagine a human would have missed it as not important. We could probably also remove it if you prefer.","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"3dc8d85e00b845a38bdf83824fcc092d353bc83d","unresolved":true,"context_lines":[{"line_number":153,"context_line":"    )"},{"line_number":154,"context_line":"    instance_mapping \u003d orm.relationship("},{"line_number":155,"context_line":"        \u0027InstanceMapping\u0027,"},{"line_number":156,"context_line":"        foreign_keys\u003d\u0027[InstanceMapping.cell_id]\u0027,"},{"line_number":157,"context_line":"        back_populates\u003d\u0027cell_mapping\u0027,"},{"line_number":158,"context_line":"    )"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"77da8af6_d1c4e82a","line":156,"in_reply_to":"626fe807_132c6268","updated":"2026-11-13 19:42:13.000000000","message":"Actually, I forgot we\u0027re actually using the backref in the next patch, so strike the \"maybe this isn\u0027t even strictly required\" part of my response.","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"9849dabbbc8150402c99d85f05829f182ce41376","unresolved":false,"context_lines":[{"line_number":153,"context_line":"    )"},{"line_number":154,"context_line":"    instance_mapping \u003d orm.relationship("},{"line_number":155,"context_line":"        \u0027InstanceMapping\u0027,"},{"line_number":156,"context_line":"        foreign_keys\u003d\u0027[InstanceMapping.cell_id]\u0027,"},{"line_number":157,"context_line":"        back_populates\u003d\u0027cell_mapping\u0027,"},{"line_number":158,"context_line":"    )"},{"line_number":159,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"10002c12_2340146d","line":156,"in_reply_to":"77da8af6_d1c4e82a","updated":"2026-11-16 12:44:03.000000000","message":"OK so this is just instruction to the ORM and not instruction to the schema generation. That explains why it is not showing up the same update script","commit_id":"118503259a42c00bb4a89472c8ad44a1ea41aad4"}]}
