Red Hat Bugzilla – Bug 852033
After uninstalling the glusterfs RPMs, files and directories are left behind
Last modified: 2013-07-24 13:25:07 EDT
+++ This bug was initially created as a clone of Bug #829734 +++
Description of problem:
When uninstalling the glusterfs RPMs, files and directories under /var/lib/glusterd are not removed, not renamed to have a .rpmsave extension.
Version-Release number of selected component (if applicable):
glusterfs-3.2.6 but also glusterfs-3.3.0-1
Steps to Reproduce:
1. install some glusterfs RPMs, or install the RHS-2.0
2. yum remove glusterfs
# yum remove glusterfs
glusterfs-fuse.x86_64 0:3.3.0-1 glusterfs-geo-replication.x86_64 0:3.3.0-1
# find /var/lib/glusterd
All important configuration files should be kept and automatically have a .rpmsave extension added (marked as %config in the .spec).
Any empty directories available under /var/lib/glusterd should be removed automatically.
--- Additional comment from firstname.lastname@example.org on 2012-06-07 15:04:01 CEST ---
Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
--- Additional comment from email@example.com on 2012-06-07 18:30:22 CEST ---
Created attachment 590243 [details]
proposed changes to the spec file
These changes for the spec file make sure that all files and directories under /var/lib/glusterd are removed. Tests on one of my RHS installations were successful.
A test-build based on glusterfs-3.3.0qa45-1.el6 is underway:
--- Additional comment from firstname.lastname@example.org on 2012-06-07 18:32:45 CEST ---
The customer who filed this problem is running 3.2.6 on Amazon. Shall I clone this bug for 3.2.6 and propose a fix there as well?
--- Additional comment from email@example.com on 2012-06-08 12:01:54 CEST ---
Filed for review upstream as http://review.gluster.com/3539
--- Additional comment from firstname.lastname@example.org on 2012-07-03 18:45:03 CEST ---
CHANGE: http://review.gluster.com/3539 (Mark /var/lib/glusterd as owned by glusterfs, subdirs belong to -server) merged in master by Anand Avati (email@example.com)
--- Additional comment from firstname.lastname@example.org on 2012-07-04 11:15:52 CEST ---
Niels sent a patch to upstream, which got accepted. changing bug owner to ndevos as he fixed it :-)
Additional files should be owned by the RPMs as well. Change submitted for