-
Notifications
You must be signed in to change notification settings - Fork 931
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 to be used more than once #12254
Comments
For custom storage volumes with content-type |
We may be able to cherry-pick from lxc/incus#467 |
Also note lxc/incus#529 |
Issue description
In most cases, a custom storage volume with content-type
block
is assigned to only one instance. When assigning it to more than one instances, the result will be data loss.The proposal is to ensure the storage volume is unused when it has content-type
block
and assigned to a new instance directly or via profile. If the volume is already attached to another instance (or would be attached to more than one) an error should be returned instead.A config setting on the storage volume can be set to override this check, allowing for the rare use case that block storage should be accessible from multiple instances.
When the content-type
filesystem
is used on the storage volume, it can be freely assigned to many instances.The text was updated successfully, but these errors were encountered: