)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"224017788b3c83408680d6d0fefb5d30f31f98b7","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"d0ecec7c_b243804f","updated":"2026-11-19 16:39:55.000000000","message":"I know you\u0027ll rework on that one but I like it already.","commit_id":"d315d4f0a0378c4a84c8ae6172a0a14b6865f697"}],"nova/objects/instance_mapping.py":[{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"224017788b3c83408680d6d0fefb5d30f31f98b7","unresolved":false,"context_lines":[{"line_number":188,"context_line":"        else:"},{"line_number":189,"context_line":"            db_mapping \u003d query.first()"},{"line_number":190,"context_line":"            if db_mapping:"},{"line_number":191,"context_line":"                db_mapping.update(updates)"},{"line_number":192,"context_line":"        if not db_mapping:"},{"line_number":193,"context_line":"            raise exception.InstanceMappingNotFound(uuid\u003dinstance_uuid)"},{"line_number":194,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"63f7808f_9d3713df","line":191,"updated":"2026-11-19 16:39:55.000000000","message":"this sounds a good idea, I like this approach that avoids late unexpected changes and reduce potential races.","commit_id":"d315d4f0a0378c4a84c8ae6172a0a14b6865f697"},{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"3bd89784f4b84866024194d0c5d71dfcc95c4009","unresolved":true,"context_lines":[{"line_number":202,"context_line":"        return db_mapping"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    @base.remotable"},{"line_number":205,"context_line":"    def save(self, expected_cell\u003d_CELL_UNSPECIFIED,"},{"line_number":206,"context_line":"             expected_old_cell\u003d_CELL_UNSPECIFIED):"},{"line_number":207,"context_line":"        \"\"\"Save changes, optionally comparing the current cells atomically."},{"line_number":208,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"546ce9b4_a8216121","line":205,"updated":"2026-11-20 10:31:38.000000000","message":"I guess a crucial missing piece is to use these new params in the compute/api logic that cleans up the cell routing the instance mapping to make it more atomic.","commit_id":"d315d4f0a0378c4a84c8ae6172a0a14b6865f697"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"76b2683367a9c575945fe57a65c4d64905e48e25","unresolved":true,"context_lines":[{"line_number":202,"context_line":"        return db_mapping"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    @base.remotable"},{"line_number":205,"context_line":"    def save(self, expected_cell\u003d_CELL_UNSPECIFIED,"},{"line_number":206,"context_line":"             expected_old_cell\u003d_CELL_UNSPECIFIED):"},{"line_number":207,"context_line":"        \"\"\"Save changes, optionally comparing the current cells atomically."},{"line_number":208,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a826cc2_c03f2c8f","line":205,"in_reply_to":"546ce9b4_a8216121","updated":"2026-11-20 19:09:38.000000000","message":"Yep, I just wrote this as a demonstration of what we could do here. I\u0027m folding this into the InstanceMapping change for `old_cell` and have updated the instance get patch to use it.","commit_id":"d315d4f0a0378c4a84c8ae6172a0a14b6865f697"},{"author":{"_account_id":7166,"name":"Sylvain Bauza","email":"sbauza@redhat.com","username":"sbauza"},"change_message_id":"224017788b3c83408680d6d0fefb5d30f31f98b7","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                             (\u0027old_cell_id\u0027, expected_old_cell)):"},{"line_number":222,"context_line":"            if cell is not _CELL_UNSPECIFIED:"},{"line_number":223,"context_line":"                expected[column] \u003d cell.id if cell is not None else None"},{"line_number":224,"context_line":"        kwargs \u003d {\u0027expected\u0027: expected} if expected else {}"},{"line_number":225,"context_line":"        try:"},{"line_number":226,"context_line":"            db_mapping \u003d self._save_in_db(self._context, self.instance_uuid,"},{"line_number":227,"context_line":"                    changes, **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"8d551193_5826904f","line":224,"updated":"2026-11-19 16:39:55.000000000","message":"++","commit_id":"d315d4f0a0378c4a84c8ae6172a0a14b6865f697"}]}
