Bug 1223642
Summary: | [geo-rep]: With tarssh the file is created at slave but it doesnt get sync | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Kotresh HR <khiremat> | |
Component: | geo-replication | Assignee: | Kotresh HR <khiremat> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | mainline | CC: | aavati, avishwan, bugs, csaba, gluster-bugs, khiremat, nlevinki, rhinduja, storage-qa-internal | |
Target Milestone: | --- | Keywords: | Regression, Reopened | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.8rc2 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1222776 | |||
: | 1223644 (view as bug list) | Environment: | ||
Last Closed: | 2016-06-16 13:03:49 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: | ||||
Bug Blocks: | 1222776, 1223644 |
Description
Kotresh HR
2015-05-21 06:11:53 UTC
The issue is with recent enhancement to sync extended attributes in geo-replication. The --overwrite option being usind with tar command is not in effect when --xattrs option of tar command is used to sync xattrs. The consequence being if file exists on destination, it does not overwrite, it tries to unlink (which fails in gfid-access translator as entries are banned on aux-gfid-mount) hence fails. gfid-access translator doesn't allow because it may lead to gfid inconsistency. NOTE: --overwrite option is used in tar over ssh mode to keep gfids intact. REVIEW: http://review.gluster.org/10873 (geo-rep: Disable xattrs and acls support with tar_ssh) posted (#1) for review on master by Kotresh HR (khiremat) REVIEW: http://review.gluster.org/10873 (geo-rep: Disable xattrs and acls support with tar_ssh) posted (#2) for review on master by Kotresh HR (khiremat) REVIEW: http://review.gluster.org/10873 (geo-rep: Disable xattrs and acls support with tar_ssh) posted (#3) for review on master by Kotresh HR (khiremat) COMMIT: http://review.gluster.org/10873 committed in master by Venky Shankar (vshankar) ------ commit 3eaf21e3cc8cf481226d1ed495d7261b1acbb594 Author: Kotresh HR <khiremat> Date: Thu May 21 11:55:03 2015 +0530 geo-rep: Disable xattrs and acls support with tar_ssh Geo-rep can't sync xattrs and acls with tar over ssh for following reasons. Issue 1: xattrs doesn't sync with tar over ssh. Reason: untar doesn't respect '--overwrite' option when used along with '--xattrs'. So it sends unlink if the file exists on destination and re-creates afresh. But all entry operations are banned in aux-gfid-mount as it may lead to gfid-mismatch. Hence fails with EPERM. This happens only when some xattr is set on a file in master volume. Issue2: acls on directories does not sync with tar over ssh. Reason: tar tries to opendir ".gfid/<gfid1>" and is not supported by gfid-access-translator as readirp can't be handled on virtual inodes and hence fails with ENOTSUP where as it syncs for files. Since the issue is with tar commmand it self and nothing could be done from gluster side, disabling xattr and acls support with tar over ssh option. Geo-rep can sync xattrs and acls with 'rsync' as the sync engine. Change-Id: I6821d327e7fe15545adef644869aa2389f79c701 BUG: 1223642 Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/10873 Tested-by: NetBSD Build System Reviewed-by: Venky Shankar <vshankar> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report. glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |