Namespaces for failed snap installations are not discarded
Bug #1815722 reported by
glancr team
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Zygmunt Krynicki |
Bug Description
When a snap installation fails e. g. due to errors in the `install` hook, and this snap uses the layouts feature, namespaces that were created for this snap are not discarded after snapd aborts the installation process.
Subsequent attempts to install a snap with the same name, i. e. a new fixed revision, will throw “No such file or directory” when the snap tries to access layout-mapped paths.
Installation works fine after rebooting the system, which presumably discards namespaces.
Reference: https:/
affects: | snapcraft → snapd |
Changed in snapd: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I wrote a regression test for this issue. Working on a fix now.