← Back to issue list

Not creating ephemeral containers

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1577548
Type
issue
State
closed
Author
~ev
Labels
verification-done
Created
Updated
Closed

Current evaluation

Fixed by merged PR canonical/snapcraft#578 (commit 038bf3f05, "Make lxd containers ephemeral"), shipped in snapcraft 2.12 to xenial -proposed, verified by elopio, then released to -updates.

Resolution: closed resolved

Reason: PR #578 was merged as commit 038bf3f05 making cleanbuild's LXD containers ephemeral; the resulting SRU (snapcraft 2.12) was verified by elopio with 'lxc list' showing no leftover containers, and the SRU team released it to -updates, closing the bug with verification-done.

Evaluated by: mr-cal-bot

No scores available.

Issue body

snapcraft cleanbuild is creating persistent containers and is not cleaning them up. Sergio says it should be creating ephemeral containers instead. [Impact] * Users of cleanbuild get a lot of leftover containers. [Test Case] * snapcraft init * snapcraft cleanbuild * lxc list * check that no snapcraft containers are listed. [Regression Potential] * This could break cleanbuild. The integration test for cleanbuild is currently disabaled, so this will have to be tested manually. Bug #1593529 created to test this automatically.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#578 (commit 038bf3f05, "Make lxd containers ephemeral"), shipped in snapcraft 2.12 to xenial -proposed, verified by elopio, then released to -updates.
stealth/space-bunny-alpha — closed resolved cleanbuild left persistent LXD containers behind; fixed by making them ephemeral in merged PR #578 (commit 038bf3f05), SRU'd in snapcraft 2.12 and verified.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #578 (commit 038bf3f05), which made LXD build containers ephemeral so cleanbuild no longer leaves persistent containers.
qwen/qwen3.6-35b-a3b — — Fixed snapcraft cleanbuild to create ephemeral containers instead of persistent ones, preventing leftover accumulation. Resolution verified and labeled verification-done.
qwen/qwen3.6-35b-a3b — — Fixed and verified. The snapcraft cleanbuild persistent container issue was resolved to create ephemeral containers instead. The verification-done label confirms the fix was tested and accepted.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#578 (confidence 98%)

    PR 'Make lxd containers ephemeral' merged as commit 038bf3f05, explicitly referencing Launchpad bug #1577548

  • Related To: snapcraft (launchpad)#1593529 (confidence 80%)

    Companion bug created to add automated integration test coverage for cleanbuild, since the existing test was disabled

Related issues

Issue Project State Summary Similarity
#578 Make lxd containers ephemeral snapcraft merged Merged via commit 038bf3f05, making LXD build containers ephemeral and fixing Launchpad bug #1577548. Integration coverage was deferred to bug #1593529.
78%
#1780997 Persistent container builds are broken snapcraft (launchpad) closed Persistent LXD builds were fixed by canonical/snapcraft#1847 (commit e7d73a365), correcting user handling for remote SSHFS-mounted containers.
74%
#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.
72%