lxd: add snapshot support (CRAFT-144)
Metadata
Current evaluation
LXD snapshot support was merged in canonical/craft-providers#52 via commit 2ddab88 (implementation 5d49777), adding CRAFT-144 functionality.
Resolution: closed resolved
Reason: PR #52 was merged into main in commit 2ddab88, with implementation commit 5d49777, adding the requested LXD snapshot support. Later, PR #177 replaced this snapshot-based launch flow with cached base instances and deprecated use_snapshots.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | LXD snapshot support was merged in canonical/craft-providers#52 via commit 2ddab88 (implementation 5d49777), adding CRAFT-144 functionality. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR adding LXD snapshot support (CRAFT-144). Maintainer suggested adding a reference counter or auto-clean toggle for snapshot garbage collection. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Superseded By:
canonical/craft-providers#177
(confidence 95%)
Later refactored LXD launches to use cached base instances instead of snapshots.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #51 lxc: add has_image() helper and use yaml BaseLoader (CRAFT-144) | craft-providers | merged | Merged in canonical/craft-providers#51 (commit 4772124, merge 96b2b6a), adding LXD has_image() and using yaml.BaseLoader so image timestamps remain strings. | |
| #1364 lxd: Inject snapcraft and core snaps into the container | snapcraft | merged | Merged PR #1364 as 99f5598ac, injecting the host's Snapcraft and core snaps into LXD containers so builds no longer use a mismatched Xenial archive version. | |
| #2509 build providers: initial support for LXD | snapcraft | merged | Merged PR #2509 (commit 067024732) adding initial LXD build-provider support: `snapcraft --use-lxd` runs all lifecycle steps and clean inside an LXD container. Released via beta/lxd channel; LP bug #1805221 closed. | |
| #1412 lxd: snapcraft refresh in containers | snapcraft | merged | Merged PR #1412 as 3d511c5eb, making LXD container refresh install Snapcraft once while allowing packages and snaps to be updated in reusable containers. | |
| #2222 lxd: support new style snap injection | snapcraft | merged | Merged in #2222 via commit 8acd203, adding new-style LXD snap handling, removing sudo-based injection, and consolidating duplicated tests. | |
| #1805221 Build environment with lxd (--use-lxd) | snapcraft (launchpad) | closed | LXD build-provider support was implemented and merged in snapcraft PR #2509 (commit 067024732, "build providers: initial support for LXD"), making `snapcraft --use-lxd` run lifecycle steps and clean in an LXD container. Bug closed. | |
| #3300 [wip] remote lxd / cross-arch support | snapcraft | closed | WIP PR adding remote LXD / cross-arch support to snapcraft was closed unmerged by sergiusens on 2020-12-15 so the work could move to the new craft-providers package; remote support later landed in craft-providers#55. |