Bug 1584387
Summary: | glusterfs-server Debian package uninstall fails | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | jack.wong | ||||
Component: | packaging | Assignee: | Kaleb KEITHLEY <kkeithle> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.12 | CC: | bugs, jack.wong, kkeithle | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 3.12.10, 4.1.0 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-06-14 13:06:49 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
jack.wong
2018-05-30 19:07:45 UTC
There is no glusterfs-server.prerm script in the sources used to build the gluster packages in the gluster PPA, and there never has been. Nor is there a /var/lib/dpkg/info/glusterfs-server.prerm file on my xenial box, which has only ever had packages from the PPA installed. I removed the PPA and installed glusterfs from the base distritbution and _that_ (glusterfs-3.7.6) did install /var/lib/dpkg/info/glusterfs-server.prerm. It appears to me that the file on your system is left over from a previous install that did not get cleaned up properly. IMO the upgrade/uninstall from the base 3.7.6 should have removed those files; if it didn't that seems like a bug in apt or dpkg. I suggest a complete uninstall and manual delete of any leftover files like /var/lib/dpkg/info/glusterfs-server.prerm. Created attachment 1447632 [details]
glusterfs-server.prerm
prerm script from glusterfs-server Debian package
(In reply to Kaleb KEITHLEY from comment #1) > There is no glusterfs-server.prerm script in the sources used to build the > gluster packages in the gluster PPA, and there never has been. While prerm scripts can be maintained by humans, they are usually autogenerated by one of the debhelper tools. That would explain why the file appears appear neither in the Debian source tarball nor in source code. Please see attached file glusterfs-server.prerm. Looking at the file's content, lines 8 through 12 say that they were autogenerated by dh_installinit. Looking at the documentation for dh_installinit (http://manpages.ubuntu.com/manpages/bionic/man1/dh_installinit.1.html), these five lines were probably generated due to the presence of glusterfs-server.upstart in the debian/ directory. > Nor is there a /var/lib/dpkg/info/glusterfs-server.prerm file on my xenial > box, which has only ever had packages from the PPA installed. I launched a clean Ubuntu 16.04.4 machine on Amazon EC2 using the latest available Xenial AMI. After I added the PPA and installed glusterfs-server 3.12, I see the file appear in /var/lib/dpkg/info/. Did you check for the file after you installed the package and before uninstallation? When I uninstall the package, the prerm file is deleted even though the invoke-rc.d line writes out an error. > I removed the PPA and installed glusterfs from the base distritbution and > _that_ (glusterfs-3.7.6) did install > /var/lib/dpkg/info/glusterfs-server.prerm. It appears to me that the file on > your system is left over from a previous install that did not get cleaned up > properly. > > IMO the upgrade/uninstall from the base 3.7.6 should have removed those > files; if it didn't that seems like a bug in apt or dpkg. The file contains a systemd section for the new names of the Gluster services (glusterd.service, glustereventsd.service, and glusterfssharedstorage.service). That rules out that this file could have come from a <3.12 package as those services were not created until 3.12. Unless there is some subtle bug in my startup scripts, I have never installed GlusterFS 3.7.6 on the Ubuntu machines that I use. I have always gone straight to 3.12, without installing or upgrading from any older versions like 3.11 or 3.7. Fixed in 3.12.10 and 4.1.0 Debian packages on download.gluster.org and Ubuntu packages in Launchpad PPA I finally had to uninstall my 3.12.12 version so that I could install version 3.12.14. I can confirm that this bug is fixed. Thank you, Kaleb. |