Skip to content

Add a method to know if providers support or not shared disks in clustered transfers#476

Merged
Dany9966 merged 1 commit into
cloudbase:masterfrom
fabi200123:shared-disks-check
Jul 24, 2026
Merged

Add a method to know if providers support or not shared disks in clustered transfers#476
Dany9966 merged 1 commit into
cloudbase:masterfrom
fabi200123:shared-disks-check

Conversation

@fabi200123

Copy link
Copy Markdown
Contributor

This PR adds the following:

  • a method for providers (supports_shared_disks) to know if they have implemented the support for shared disks or not

@fabi200123
fabi200123 force-pushed the shared-disks-check branch from d02554d to d0b54ec Compare July 22, 2026 10:43
Destination import providers that can attach the same volume to
multiple instances (e.g. Libvirt ``<shareable/>``) should override
this to return ``True``. Defaults to ``False``.
"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd also add the following since the ability to attach the volumes to multiple instances isn't all that's required on the provider side.

In order to coordinate shared disk operations, the conductor will mark one of the instances
as owner of the shared disk.

As such, operations such as disk creation, deletion, resize or data migration should be handled
by tasks that are targeting the owner instance.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@fabi200123
fabi200123 force-pushed the shared-disks-check branch from d0b54ec to bead71f Compare July 22, 2026 13:10
Comment thread coriolis/tasks/replica_tasks.py Outdated
if not destination_provider.supports_shared_disks():
raise exception.NotSupportedOperation(
operation=(
"Destination platform '%s' does not support shared "

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.

Please mention that the Destination platform {destination_type} does not support synchronized transfer of instances that have shared disks.

@fabi200123
fabi200123 force-pushed the shared-disks-check branch from bead71f to d5e1516 Compare July 24, 2026 14:32
@Dany9966
Dany9966 merged commit 85ee7e9 into cloudbase:master Jul 24, 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.

3 participants