← Back to issue list

snapcraft should remove lxd container once finished the build

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1570708
Type
issue
State
closed
Author
~morphis
Labels
—
Created
Updated
Closed

Current evaluation

Closed as invalid after PR #459 found cleanbuild already destroyed its LXD containers; a separate argument-passing failure was fixed by #458 (f78b1e3a3).

Resolution: closed not a bug

Reason: Maintainer sergiusens closed the report as invalid on 2016-05-23, citing prior discussions. PR #459 found the containers were already destroyed, while merged PR #458 (f78b1e3a3) fixed a separate cleanbuild failure.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently snapcraft polutes the system with container instances when using the snapcraft cleanbuild command. It should delete an instance once its done using it.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Closed as invalid after PR #459 found cleanbuild already destroyed its LXD containers; a separate argument-passing failure was fixed by #458 (f78b1e3a3).
stealth/space-bunny-alpha — closed not a bug Cleanup request was closed unmerged: PR #459 found LXD containers were already destroyed; the actual cleanbuild failure was fixed by merged PR #458 (f78b1e3a3).
stealth/space-bunny-alpha — closed stale Closed without resolution; the request to delete LXD instances after cleanbuild was abandoned as stale, with no linked fix or maintainer explanation.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The request to automatically remove LXD containers after snapcraft cleanbuild was abandoned due to inactivity. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Requested automatic LXD container cleanup after snapcraft cleanbuild was closed without resolution. Zero comments and no implementation indicate the request was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without fix. The request to automatically remove LXD containers after snapcraft cleanbuild builds was abandoned due to inactivity.
qwen3.6-35b-a3b-mtp-q6 — — Closed due to inactivity. The feature request to automatically remove LXD containers after snapcraft cleanbuild was abandoned without implementation or resolution.

Update history

Date Change
created

Related work

  • Related To: ubuntu-core/snapcraft#459 (confidence 98%)

    Contributor PR investigating the report; it was not needed because cleanbuild already destroyed the containers.

  • Related To: ubuntu-core/snapcraft#458 (confidence 98%)

    Merged commit f78b1e3a3 fixed incorrect argument passing to Cleanbuilder, a separate underlying failure.

Related issues

Issue Project State Summary Similarity
#459 Remove LXD container once we've finished a build snapcraft closed Closed unmerged: testing showed cleanbuild already destroyed its LXD containers; the startup failure was fixed separately by merged PR #458 (f78b1e3a3).
74%
#1734145 snapcraft clean <part-name> destroys everything when using containers snapcraft (launchpad) closed Fixed targeted container cleanup: `snapcraft clean <part>` no longer deletes the LXD container while other parts remain; merged in #1762 (dbce9a058).
74%
#1816042 snapcraft cleanbuild fails if container isn't fully ready snapcraft (launchpad) closed Closed as obsolete: @sergiusens said cleanbuild was no longer supported because normal builds now transparently provide clean builds.
73%
#1746612 Snapcraft cleanbuild doesn't work if you're not using the LXD snap snapcraft (launchpad) closed Closed after the missing hostfs behavior was fixed upstream in lxc/lxd#4183. Snapcraft PR #1912 offered a workaround but was not merged.
73%
#1666735 snapcraft cleanbuild does not work with lxd installed via snap snapcraft (launchpad) closed Fixed by merged canonical/snapcraft#1199 (commit 417989880), making cleanbuild LXD detection packaging-independent instead of relying on apt package metadata.
72%
#1788654 snapcraft cleanbuild doesn't work with cross-compile stage-packages snapcraft (launchpad) closed Closed as an obsolete legacy cleanbuild/LXD issue after a maintainer directed users to migrate to bases; no targeted cross-architecture fix was recorded.
71%
#1587 lifecycle: clean after deleting container snapcraft merged Merged PR #1587 (commit daca4618b): LXD cleanup logic moved into lxd.py's clean() so `snapcraft clean` removes leftover build containers, addressing the forum-reported container-build clean issue.
70%