Skip to content

Support migrating volumes_info entries with legacy disk ids#467

Merged
Dany9966 merged 1 commit into
cloudbase:masterfrom
fabi200123:disk-uuid-identifiers
Jul 3, 2026
Merged

Support migrating volumes_info entries with legacy disk ids#467
Dany9966 merged 1 commit into
cloudbase:masterfrom
fabi200123:disk-uuid-identifiers

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

This PR adds the logic required to not delete and replicate again the disks if the disk_id gets updated, but referencing the same disk that can be checked via the legacy_ids options.

new_disk_id = legacy_ids_map.get(disk_id)
if not new_disk_id:
continue
if new_disk_id in existing_volume_disk_ids:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an odd edge-case, basically pretending like a volume can be attached twice to the same VM. Or there's a UUID conflict. It's fine for now.

Comment thread coriolis/tasks/replica_tasks.py Outdated
@fabi200123 fabi200123 force-pushed the disk-uuid-identifiers branch from b35d777 to 449bc70 Compare July 3, 2026 12:29
@Dany9966 Dany9966 merged commit 7ea1e24 into cloudbase:master Jul 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants