Bug 1285203

Summary: dist-geo-rep: status details incorrectly indicate few files as skipped when all the files are properly synced to slave
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Aravinda VK <avishwan>
Component: geo-replicationAssignee: Aravinda VK <avishwan>
Status: CLOSED ERRATA QA Contact: Rahul Hinduja <rhinduja>
Severity: medium Docs Contact:
Priority: high    
Version: rhgs-3.1CC: asrivast, avishwan, chrisw, csaba, david.macdonald, mzywusko, nlevinki, rhinduja, rhs-bugs, sarumuga, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: status
Fixed In Version: glusterfs-3.7.9-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1025964 Environment:
Last Closed: 2016-06-23 04:57:52 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:
Embargoed:
Bug Depends On: 1025964    
Bug Blocks: 1299184    

Comment 2 Aravinda VK 2016-01-13 08:06:44 UTC
Rsync errors are handled effectively, Log file only records the skipped files with error details instead of recording all the files list as skipped.

Upstream Patch: http://review.gluster.org/#/c/12856/

Comment 4 Aravinda VK 2016-03-23 06:24:07 UTC
Patch for this bug is available in rhgs-3.1.3 branch as part of rebase from upstream release-3.7.9.

Comment 6 Rahul Hinduja 2016-04-18 16:41:05 UTC
Verified with the build: glusterfs-3.7.9-1

Incase of incomplete sync, changelog is reprocessed and logs error for rsync (If any) instead of all other gfid's which are synced to be marked skipped.

[2016-04-18 16:15:01.348016] W [master(/rhs/brick1/b2):1058:process] _GMaster: incomplete sync, retrying changelogs: CHANGELOG.1460996093
[2016-04-18 16:15:02.307766] E [resource(/rhs/brick1/b2):991:rsync] SSH: SYNC Error(Rsync): rsync: open "/proc/5527/cwd/.gfid/03f55e3c-bc6f-4eae-b7ea-15b6a65514f0" failed: Operation not permitted (1)
[2016-04-18 16:15:02.308784] E [master(/rhs/brick1/b2):1037:process] _GMaster: changelogs CHANGELOG.1460996093 could not be processed completely - moving on...
[2016-04-18 16:15:11.359797] I [master(/rhs/brick1/b2):532:crawlwrap] _GMaster: 18 crawls, 1 turns


Status detail command is changed since 3.1.1 and it doesn't show skipped files count. 

In 3.1.2, for every incomplete changelog which needs to be synced used to log all gfids as skipped which is synced. It doesn't log all gfid in 3.1.3 and logs as rsync error if it fails, else it completes the changelog without reporting error or skipped for GFID. 

Moving this bug to verified state.

Comment 8 errata-xmlrpc 2016-06-23 04:57:52 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