Bug 1332269

Summary: /var/lib/glusterd/groups/groups file doesn't gets updated when the file is edited or modified
Product: Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: buildAssignee: Milind Changire <mchangir>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: amukherj, asrivast, nlevinki, rhinduja, rhs-bugs
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.9-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 05:20:57 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:
Bug Depends On:    
Bug Blocks: 1311817    

Description SATHEESARAN 2016-05-02 17:44:05 UTC
Description of problem:
-----------------------
When the /var/lib/glusterd/groups/virt file is edited/modified in previous release ( RHGS 3.1.2 ), then the upgrade doesn't adds the new file.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
RHGS 3.1.3 nightly ( glusterfs-3.7.9-3.el7rhgs )

How reproducible:
-----------------
Always/Consistent

Steps to Reproduce:
-------------------
1. Edit the /var/lib/glusterd/groups/virt file in RHGS 3.1.2
2. Update RHGS 3.1.2 to RHGS 3.1.3
3. /var/lib/glusterd/groups/virt file is not modified

Actual results:
----------------
The new /var/lib/glusterd/groups/virt file is not available

Expected results:
-----------------
If the new /var/lib/glusterd/group/virt is different from the existing one, then the newer /var/lib/glusterd/group/virt file should be placed as virt.rpmnew

Additional info:
-----------------
/var/lib/glusterd/groups/virt file is changed in RHGS 3.1.3, so if older virt file is edited, then the newer virt file should be placed as virt.rpmnew

Comment 1 Milind Changire 2016-05-03 09:51:02 UTC
Kaleb's patch POSTED at:
https://code.engineering.redhat.com/gerrit/73374
fixes this issue.

moving to POST

Comment 4 SATHEESARAN 2016-05-11 08:37:38 UTC
Tested by updating RHGS 3.1.2 to latest RHGS 3.1.3 nightly ( glusterfs-3.7.9-4.el7rhgs )

Following are the observations
1. If /var/lib/glusterd/groups/virt file is unaltered, then the new virt file replaces the existing virt file
2. If /var/lib/glusterd/groups/virt file is altered, the current virt file is moved to virt.rpmsave and new virt file is placed.

Following the output when virt file is altered in RHGS 3.1.2 and updated to RHGS 3.1.3 nightly

[root@ ~]# ls /var/lib/glusterd/groups/ -l
total 8
-rw-r--r--. 1 root root 220 May 10 08:48 virt
-rw-r--r--. 1 root root 166 May 11 19:35 virt.rpmsave

[root@ ~]# rpm -qf /var/lib/glusterd/groups/*
glusterfs-server-3.7.9-4.el7rhgs.x86_64
file /var/lib/glusterd/groups/virt.rpmsave is not owned by any package

Comment 6 errata-xmlrpc 2016-06-23 05:20:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1240