[Bugs] [Bug 1584387] glusterfs-server Debian package uninstall fails

bugzilla at redhat.com bugzilla at redhat.com
Mon Jun 4 21:01:39 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1584387

jack.wong at laserfiche.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |NEW
         Resolution|NOTABUG                     |---
           Keywords|                            |Reopened



--- Comment #3 from jack.wong at laserfiche.com ---
(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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list