+++ This bug was initially created as a clone of Bug #1207979 +++ Description of problem: ======================= If file is edited from NFS mount then Version is not incremented and bitd is not updating checksum for file Version-Release number of selected component (if applicable): ============================================================= 0.803.gitf64666f.el6.x86_64 How reproducible: ================= always Steps to Reproduce: =================== 1. create and NFS mount volume. 2. enable bitrot 3. create few files. 4. Update file from NFs mount and check version and checksum on client:- [root@rhs-client44 linux-3.19]# mount | grep nfs rhs-client44.lab.eng.blr.redhat.com:/rac1 on /mnt/rac1 type nfs (rw,addr=10.70.36.68) On server:- [root@rhs-client44 linux-3.19]# getfattr -d -m . -e hex /pavanbrick6/r1/f5 getfattr: Removing leading '/' from absolute path names # file: pavanbrick6/r1/f5 trusted.gfid=0x3f396fffe3754fa8ba6a62afc00b39a4 trusted.glusterfs.bit-rot.signature=0x01000000000000000100000000000000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trusted.glusterfs.bit-rot.version=0x0100000000000000551a639300053ca4 from client:- [root@rhs-client44 linux-3.19]# echo "abc" >> /mnt/rac1/f5 verify on server:- [root@rhs-client44 linux-3.19]# getfattr -d -m . -e hex /pavanbrick6/r1/f5 getfattr: Removing leading '/' from absolute path names # file: pavanbrick6/r1/f5 trusted.gfid=0x3f396fffe3754fa8ba6a62afc00b39a4 trusted.glusterfs.bit-rot.signature=0x01000000000000000100000000000000e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trusted.glusterfs.bit-rot.version=0x0100000000000000551a639300053ca4 Actual Result:- =============== Object version is not incremented and checksum is not updated Expect Result:- =============== On modification it should increment object version and re calculate --- Additional comment from Anand Avati on 2015-04-14 07:04:20 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: track opens and releases via a list of fds) posted (#1) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-04-23 10:08:05 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: track opens and releases via a list of fds) posted (#2) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-04-28 10:11:06 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: track opens and releases via a list of fds) posted (#3) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-04-30 06:33:26 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write fop instead of open) posted (#4) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-04-30 09:40:25 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#5) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-01 08:25:01 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#6) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-02 00:04:28 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#7) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-06 06:58:39 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#8) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-06 16:18:22 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#9) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-07 05:12:21 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#10) for review on master by Raghavendra Bhat (raghavendra) --- Additional comment from Anand Avati on 2015-05-08 02:16:40 EDT --- REVIEW: http://review.gluster.org/10233 (features/bit-rot-stub: versioning of objects in write/truncate fop instead of open) posted (#11) for review on master by Raghavendra Bhat (raghavendra)
commit da48a6a596251c19a8ddb1bdfec3da9744a78b8f will solve this issue. patch for this bug already available in rhgs-3.1. so moving status of this bug ON_QA
Tested with glusterfs-fuse-3.7.0-3 and file versioning and scrubbing is working with nfs protocol too so marking this bug as verified
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://rhn.redhat.com/errata/RHSA-2015-1495.html