Bug 1392898 - Removing nfs-ganesha packages should remove all the ganesha related files
Summary: Removing nfs-ganesha packages should remove all the ganesha related files
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: nfs-ganesha
Version: rhgs-3.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Kaleb KEITHLEY
QA Contact: Arthy Loganathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-08 12:40 UTC by Arthy Loganathan
Modified: 2016-11-15 08:37 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 06:29:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Arthy Loganathan 2016-11-08 12:40:58 UTC
Description of problem:
When we remove nfs-ganesha packages, all the files related to nfs-ganesha should get removed. /etc/ganesha folder remains in the machine after removing nfs-ganesha packages.

Version-Release number of selected component (if applicable):
nfs-ganesha-gluster-2.4.1-1.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-3.el7rhgs.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Install nfs-ganesha packages.
2. Do 'yum remove nfs-ganesha'

Actual results:
/etc/ganesha folder remains in the machine after removing nfs-ganesha packages.

Expected results:
All the files related to nfs-ganesha should get removed.

Additional info:


Removed:
  nfs-ganesha.x86_64 0:2.4.1-1.el7rhgs                                                                               

Dependency Removed:
  glusterfs-ganesha.x86_64 0:3.8.4-3.el7rhgs               nfs-ganesha-gluster.x86_64 0:2.4.1-1.el7rhgs              

Complete!
[root@dhcp46-111 ~]# 
[root@dhcp46-111 ~]# 
[root@dhcp46-111 ~]# 
[root@dhcp46-111 ~]# vi /etc/ganesha/ganesha
ganesha.conf.rpmsave  ganesha-ha.conf   
    
[root@dhcp46-111 ~]# rpm -qa | grep gluster
glusterfs-3.8.4-3.el7rhgs.x86_64
glusterfs-client-xlators-3.8.4-3.el7rhgs.x86_64
glusterfs-server-3.8.4-3.el7rhgs.x86_64
glusterfs-rdma-3.8.4-3.el7rhgs.x86_64
glusterfs-api-3.8.4-3.el7rhgs.x86_64
glusterfs-cli-3.8.4-3.el7rhgs.x86_64
python-gluster-3.8.4-3.el7rhgs.noarch
glusterfs-fuse-3.8.4-3.el7rhgs.x86_64
glusterfs-devel-3.8.4-3.el7rhgs.x86_64
glusterfs-api-devel-3.8.4-3.el7rhgs.x86_64
glusterfs-geo-replication-3.8.4-3.el7rhgs.x86_64
glusterfs-libs-3.8.4-3.el7rhgs.x86_64
glusterfs-events-3.8.4-3.el7rhgs.x86_64
[root@dhcp46-111 ~]#

Comment 2 Kaleb KEITHLEY 2016-11-10 16:58:24 UTC
where is the requirement that package erase should remove /etc/ganesha{/*} coming from?

the rpm man page says erase:

  ... checks to see if any of the package's config files have been modified. If so, it saves copies of them.

We pretty much always have modified config files, so we would always leave saved copies.

If I install, and then immediately erase, then /etc/ganesha is completely removed.

Comment 3 Arthy Loganathan 2016-11-11 06:55:02 UTC
I tried with fresh install and uninstall, /etc/ganesha folder is getting removed.


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