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

bugzilla at redhat.com bugzilla at redhat.com
Wed May 30 19:07:45 UTC 2018


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

            Bug ID: 1584387
           Summary: glusterfs-server Debian package uninstall fails
           Product: GlusterFS
           Version: 3.12
         Component: packaging
          Severity: low
          Assignee: bugs at gluster.org
          Reporter: jack.wong at laserfiche.com
                CC: bugs at gluster.org



Description of problem:
I am using Ubuntu 16.04 (Xenial). In glusterfs-server 3.12, the service
installed by the Debian package was renamed from glusterfs-server to glusterd.
The prerm script for the Debian package includes a line to stop the glusterd
service but it also includes a line to stop the glusterfs-server service. Since
the service no longer exists at that name, this line fails and causes Debian
package uninstall to fail.

This is bad because it prevents upgrading the Debian package. To install a
newer Debian package, apt-get will try to uninstall the existing package and
fail.

Version-Release number of selected component (if applicable):
I tested both glusterfs-server_3.12.2-ubuntu1~xenial2 and
glusterfs-server_3.12.9-ubuntu1~xenial1. Both packages have this problem.

How reproducible:
Highly reproducible

Steps to Reproduce:
1. Install the glusterfs-server Debian package (`apt-get install
glusterfs-server`)
2. Uninstall the glusterfs-server Debian package (`apt-get remove
glusterfs-server` or `apt-get install --reinstall glusterfs-server` or try to
install a newer glusterfs-server deb).

Actual results:
The apt-get command returns the following error and leaves the glusterfs-server
package installed.
    Removing glusterfs-server (3.12.9-ubuntu1~xenial1) ...
    Failed to stop glusterfs-server.service: Unit glusterfs-server.service not
loaded.
    invoke-rc.d: initscript glusterfs-server, action "stop" failed.
    dpkg: error processing package glusterfs-server (--remove):
     subprocess installed pre-removal script returned error exit status 5
    Errors were encountered while processing:
     glusterfs-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Expected results:
There should be no error message and the Debian package should be removed.

Additional info:
Deleting lines 8 through 12 of /var/lib/dpkg/info/glusterfs-server.prerm seems
to fix the issue.

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