Not creating ephemeral containers

Bug #1577548 reported by Evan
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapcraft (Ubuntu)

Bug Description

snapcraft cleanbuild is creating persistent containers and is not cleaning them up. Sergio says it should be creating ephemeral containers instead.


 * 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.

Revision history for this message
Evan (ev) wrote :
Download full text (46.7 KiB)


ev@elsa:~/branches/whoopsie/snappy$ snapcraft cleanbuild
Creating snapcraft-persuadingly-dolomitic-randal
Starting snapcraft-persuadingly-dolomitic-randal
Setting up container with project assets

description: updated
Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Evan Dandrea (ev)
milestone: none → 2.12
Leo Arias (elopio)
description: updated
Evan (ev)
Changed in snapcraft:
status: In Progress → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Evan, or anyone else affected,

Accepted snapcraft into xenial-proposed. The package will build now and be available at in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Leo Arias (elopio) wrote :

Tested in an up-to-date xenial:

- enabled -proposed
- update snapcraft to 2.12
- install and configure lxd
- snapcraft cleanbuild
- lxc list
- verified it doesn't show containers.

I'm going to mark this as verified, thanks Steve!

tags: added: verification-done
removed: verification-needed
Changed in snapcraft:
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for snapcraft has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapcraft (Ubuntu Xenial):
status: New → Confirmed
Changed in snapcraft (Ubuntu Yakkety):
status: New → Confirmed
Mathew Hodson (mhodson)
affects: Ubuntu Xenial → snapcraft (Ubuntu Xenial)
Changed in snapcraft (Ubuntu Xenial):
importance: Undecided → High
status: New → Fix Released
Changed in snapcraft (Ubuntu Yakkety):
status: Confirmed → Fix Released
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers