Bug 1444422 - /var/lib/snapd not removed when removing snapd
/var/lib/snapd not removed when removing snapd
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: snapd (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Neal Gompa
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-21 06:07 EDT by Jan Niklas Hasse
Modified: 2017-06-23 16:52 EDT (History)
3 users (show)

See Also:
Fixed In Version: snapd-2.26.3-3.fc26 snapd-2.26.3-3.fc24 snapd-2.26.3-3.fc25
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-23 10:18:52 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1685626 None None None 2017-04-23 10:27 EDT

  None (edit)
Description Jan Niklas Hasse 2017-04-21 06:07:56 EDT
Description of problem:
It isn't possible to remove the "core" package via "sudo snap remove core". In the bug report here https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1589210 it is suggested to purge the snapd package (with apt) itself in that case. When using "dnf remove snapd" the core package is left behind along with the /var/lib/snapd directory and files like /etc/systemd/system/var-lib-snapd-snap-core-1577.mount.

Version-Release number of selected component (if applicable):
2.24-1.fc26

Steps to Reproduce:
1. sudo dnf install snapd
2. sudo snap install hello-word
3. sudo dnf remove snapd
4. find / -iname '*snapd*' 2>/dev/null

Actual results:
Lots of files

Expected results:
No new files as before installing snapd (except for cache files and files in home directories).
Comment 1 Neal Gompa 2017-04-21 09:40:53 EDT
@Zygmunt: Is there a proper cleanup command that can be run to umount and delete all snaps that can be used in preun stage? If there is, we can use that do do proper cleanup on actual uninstall (as opposed to upgrades).
Comment 2 Zygmunt Krynicki 2017-04-24 03:18:56 EDT
I think there is one but it may need some improvements. The code is in `debian/postrm` file but it assumes /snap so we'd need a version for Fedora that's separate. Essentially a %postun section, right?
Comment 3 Simon Fels 2017-04-24 03:48:48 EDT
@Zygmund, Neal: I am wondering if we can't generalize that bit of code a bit more so that we have a common helper which gets used everywhere and can be maintained upstream. For a first fix just a copy is fine but mid term we should think about this and then make this a prerm job.
Comment 4 Fedora Update System 2017-05-02 07:01:58 EDT
snapd-2.25-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 5 Fedora Update System 2017-05-02 07:02:33 EDT
snapd-2.25-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 6 Fedora Update System 2017-05-02 07:03:09 EDT
snapd-2.25-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 7 Fedora Update System 2017-05-02 21:02:14 EDT
snapd-2.25-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 8 Fedora Update System 2017-05-04 11:18:58 EDT
snapd-2.25-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 9 Fedora Update System 2017-05-04 11:21:08 EDT
snapd-2.25-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 10 Fedora Update System 2017-05-05 17:00:45 EDT
snapd-2.25-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 11 Fedora Update System 2017-05-05 18:37:00 EDT
snapd-2.25-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 12 Fedora Update System 2017-05-18 09:53:58 EDT
snapd-2.26.3-1.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 13 Fedora Update System 2017-05-18 09:55:10 EDT
snapd-2.26.3-1.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 14 Fedora Update System 2017-05-18 09:56:20 EDT
snapd-2.26.3-1.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 15 Fedora Update System 2017-05-19 17:09:17 EDT
snapd-2.26.3-1.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 16 Fedora Update System 2017-05-19 21:05:24 EDT
snapd-2.26.3-1.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 17 Fedora Update System 2017-05-19 23:01:29 EDT
snapd-2.26.3-1.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 18 Fedora Update System 2017-05-21 13:13:50 EDT
snapd-2.26.3-2.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 19 Fedora Update System 2017-05-21 13:15:07 EDT
snapd-2.26.3-2.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 20 Fedora Update System 2017-05-21 13:16:04 EDT
snapd-2.26.3-2.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 21 Fedora Update System 2017-05-21 19:32:06 EDT
snapd-2.26.3-2.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 22 Fedora Update System 2017-05-22 05:25:22 EDT
snapd-2.26.3-2.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 23 Fedora Update System 2017-05-22 05:28:17 EDT
snapd-2.26.3-2.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 24 Fedora Update System 2017-05-25 09:20:51 EDT
snapd-2.26.3-3.fc26 snapd-glib-1.12-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 25 Fedora Update System 2017-05-25 09:22:11 EDT
snapd-2.26.3-3.fc25 snapd-glib-1.12-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 26 Fedora Update System 2017-05-25 09:23:25 EDT
snapd-2.26.3-3.fc24 snapd-glib-1.12-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 27 Fedora Update System 2017-05-26 01:59:17 EDT
snapd-2.26.3-3.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-866e9643a8
Comment 28 Fedora Update System 2017-05-26 02:01:34 EDT
snapd-2.26.3-3.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2e4459fa03
Comment 29 Fedora Update System 2017-05-26 15:34:27 EDT
snapd-2.26.3-3.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-74f7c7df46
Comment 30 Fedora Update System 2017-06-23 10:18:52 EDT
snapd-2.26.3-3.fc26, snapd-glib-1.12-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
Comment 31 Fedora Update System 2017-06-23 15:50:46 EDT
snapd-2.26.3-3.fc24, snapd-glib-1.12-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
Comment 32 Fedora Update System 2017-06-23 16:52:10 EDT
snapd-2.26.3-3.fc25, snapd-glib-1.12-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.