Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes around attaching volumes with unusual resources #243

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

WanzenBug
Copy link
Member

Fixes some issues in the AttachVolume call and beyond:

  • Do not try to attach a resources that does not have a replica
  • Do not try to create a diskless resource if the resource does not support it
  • Set default access policy to "local only" for resources without replication layer

The diskless flag is used to indicate the type of diskless resource LINSTOR
should create. This is determined by the available layers in the resource.
If there is no DRBD or NVMe layer, diskless attachment does not make sense,
so we error out in that case.

Signed-off-by: Moritz Wanzenböck <[email protected]>
Signed-off-by: Moritz Wanzenböck <[email protected]>
@WanzenBug WanzenBug force-pushed the fix-unusual-layers-with-diskless branch from d476d0f to 0f3a74c Compare January 24, 2024 15:16
if a user creates a resource without replication, it does not make sense
to access it from anywhere but the local node. So we set the default access
policy accordingly.

Signed-off-by: Moritz Wanzenböck <[email protected]>
@WanzenBug WanzenBug force-pushed the fix-unusual-layers-with-diskless branch from 0f3a74c to 10a2f0a Compare January 24, 2024 15:22
@WanzenBug WanzenBug changed the title Fix unusual layers with diskless Fixes around attaching volumes with unusual resources Jan 24, 2024
@WanzenBug WanzenBug requested a review from rck January 24, 2024 15:26
Copy link
Member

@rck rck left a comment

Choose a reason for hiding this comment

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

LGTM

@rck rck merged commit 99d4821 into master Jan 25, 2024
5 checks passed
@rck rck deleted the fix-unusual-layers-with-diskless branch January 25, 2024 07:35
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