Bug 1332269 - /var/lib/glusterd/groups/groups file doesn't gets updated when the file is edited or modified
Summary: /var/lib/glusterd/groups/groups file doesn't gets updated when the file is ed...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: build
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: RHGS 3.1.3
Assignee: Milind Changire
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1311817
TreeView+ depends on / blocked
 
Reported: 2016-05-02 17:44 UTC by SATHEESARAN
Modified: 2016-06-23 05:20 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.7.9-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 05:20:57 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1240 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.1 Update 3 2016-06-23 08:51:28 UTC

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


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