-
Notifications
You must be signed in to change notification settings - Fork 938
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
Loss of instance permissions after storage pool migration #14932
Comments
The fix for this should collect permissions that are directly related to the instance before it is deleted, then set those same permissions again on the newly created copy of the instance. |
Ideally we would maintain the ID of the instance and update its' database record with the new cluster member ID. |
Thats one approach we could take. But I'd also like to explore maintaining the ID (so not deleting the record), in order to avoid breaking other things that reference the record by ID (such as |
Additional note regarding moving an instance to a different cluster member: When I tried moving an instance to a different cluster member, I get an error saying the instance cannot be found. The set of permissions I tried to do this is shown below: Note I could migrate the instance with |
LXD information
git-2cc542a
(latest/edge)Description
When migrating an instance between storage pools, the associated permissions (such as
can_edit
) assigned via an auth group are lost. This occurs because the instance record is deleted and recreated, leading to the removal of permissions (per this discussion).Steps to reproduce
Expected behaviour
The instance should retain its assigned permissions after migration.
Actual behavior
The permissions are lost because the instance is recreated with a new record ID.
Affected scenarios
The text was updated successfully, but these errors were encountered: