Skip to content

Instance snapshot restore clears description #15256

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

Open
edlerd opened this issue Mar 25, 2025 · 0 comments
Open

Instance snapshot restore clears description #15256

edlerd opened this issue Mar 25, 2025 · 0 comments

Comments

@edlerd
Copy link
Contributor

edlerd commented Mar 25, 2025

Distribution

snap

Distribution version

6/stable

Output of "snap list --all lxd core20 core22 core24 snapd"

lxd                                   6.3-d704dcb                     32918  6/stable         canonical**     -

Output of "lxc info" or system info if it fails

.

Issue description

When restoring an instance snapshot, the description of the instance is reset to empty string. This seems like a bug. From the research below, I think the description should be not changed on snapshot restore.

For storage volumes, the description is unchanged on restoring an older snapshot. Which seems okay.

On instance snapshots, the profiles applied to the instance are not part of the snapshot and not restored either. They are kept as is after the restore process. This seems okay.

Steps to reproduce

  1. lxc launch ubuntu:24.04 precise-ray
  2. lxc config edit precise-ray (set a description)
  3. lxc config show precise-ray (show the description)
  4. lxc info precise-ray (show snapshots)
  5. lxc snapshot precise-ray (create a snapshot)
  6. lxc restore precise-ray snap0 (restore snapshot)
  7. lxc info precise-ray (description is reset to empty string)
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

No branches or pull requests

1 participant