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

Prevent custom storage volumes of type block to be used more than once #467

Merged
merged 8 commits into from
Feb 22, 2024

Conversation

monstermunchkin
Copy link
Member

No description provided.

@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Feb 4, 2024
@monstermunchkin monstermunchkin marked this pull request as ready for review February 7, 2024 21:01
@stgraber stgraber added the Incomplete Waiting on more information from reporter label Feb 7, 2024
@monstermunchkin monstermunchkin force-pushed the shared-block-volumes branch 3 times, most recently from a573ce8 to 7ef49e5 Compare February 19, 2024 18:18
@stgraber
Copy link
Member

@monstermunchkin oops, looks like you need a quick rebase for the API extension.

@monstermunchkin
Copy link
Member Author

@monstermunchkin oops, looks like you need a quick rebase for the API extension.

Fixed.

@stgraber
Copy link
Member

Just a couple small nits/questions and this will be good to go, thanks!

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
The `Update` function returns `map[string]Device` values despite there
being a `Devices` type which is the same thing.

This commit changes the return types to be `Devices` instead.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
This validates shared custom block volumes. Such volumes can be attached
to profiles only if `security.shared` is `true`. Also, they can only be
attached to more than one instance if `security.shared` is `true`.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
This handles the `security.shared` config key update. If a shared custom
storage block volume is attached to a profile, this volume cannot be
un-shared. Furthermore, if such a volume is attached to more than one
instance, it also cannot be un-shared.

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
…olumes

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
…Config

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
@stgraber stgraber removed the Incomplete Waiting on more information from reporter label Feb 21, 2024
@stgraber stgraber merged commit e37e1f5 into lxc:main Feb 22, 2024
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Documentation Documentation needs updating
Development

Successfully merging this pull request may close these issues.

None yet

2 participants