Bug 1392898

Summary: Removing nfs-ganesha packages should remove all the ganesha related files
Product: Red Hat Gluster Storage Reporter: Arthy Loganathan <aloganat>
Component: nfs-ganeshaAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED NOTABUG QA Contact: Arthy Loganathan <aloganat>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: aloganat, ffilz, jthottan, kkeithle, ndevos, rhinduja, rhs-bugs, skoduri, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 06:29:32 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:

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.