Bug 1652831 - [geo-rep]: Checksum mismatch with non -root user running logroate_simulate.sh on CRS setup
Summary: [geo-rep]: Checksum mismatch with non -root user running logroate_simulate.sh...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: geo-replication
Version: rhgs-3.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Sunny Kumar
QA Contact: Rahul Hinduja
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-23 08:27 UTC by Rochelle
Modified: 2019-12-20 11:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-20 11:23:23 UTC
Target Upstream Version:


Attachments (Terms of Use)
logrotate script (1.16 KB, text/plain)
2018-11-23 08:27 UTC, Rochelle
no flags Details

Description Rochelle 2018-11-23 08:27:51 UTC
Created attachment 1508226 [details]
logrotate script

Description of problem:
======================
There is a checksum mismatch between the master and the slave when the logrotate_simulate script is run from a non-root user.



Version-Release number of selected component (if applicable):
============================================================
# rpm -qa | grep gluster
glusterfs-libs-3.12.2-27.el7rhgs.x86_64
glusterfs-geo-replication-3.12.2-27.el7rhgs.x86_64
gluster-block-0.2.1-28.el7rhgs.x86_64
glusterfs-cli-3.12.2-27.el7rhgs.x86_64
gluster-nagios-common-0.2.4-1.el7rhgs.noarch
glusterfs-client-xlators-3.12.2-27.el7rhgs.x86_64
glusterfs-server-3.12.2-27.el7rhgs.x86_64
glusterfs-rdma-3.12.2-27.el7rhgs.x86_64
gluster-nagios-addons-0.2.10-2.el7rhgs.x86_64
glusterfs-fuse-3.12.2-27.el7rhgs.x86_64
python2-gluster-3.12.2-27.el7rhgs.x86_64
libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.2.x86_64
vdsm-gluster-4.19.43-2.3.el7rhgs.noarch
glusterfs-api-3.12.2-27.el7rhgs.x86_64
glusterfs-3.12.2-27.el7rhgs.x86_64

How reproducible:
=================
Always


Steps to Reproduce:
==================
(On a CRS set up)
1. Setup geo-rep session and mount the master volume at "/mastermnt"
2. Create a directory and change ownership to normal user
      mkdir -p /mastermnt/logrotate
      chown geoaccount:geoaccount /mastermnt/logrotate
3. Login as normal user (geoaccount) and run the logrotate_simulate.sh script

Some of the workers went to FAULTY for a second and instantly came back to ACTIVE/PASSIVE

4. Checksum did not match :
[geoaccount@dhcp35-60 ~]$ ./arequal-checksum -p /mastermnt/logrotate/

Entry counts
Regular files   : 52
Directories     : 1
Symbolic links  : 0
Other           : 0
Total           : 53

Metadata checksums
Regular files   : 3ea1e
Directories     : 44869fed8
Symbolic links  : 3e9
Other           : 3e9

Checksums
Regular files   : def91fdffc009933f74e8da27979041b
Directories     : 4e517a7f664e125c
Symbolic links  : 0
Other           : 0
Total           : 67e6e802e3378f74

[root@dhcp35-2 ~]# ./arequal-checksum -p /mnt/slave/

Entry counts
Regular files   : 45
Directories     : 4
Symbolic links  : 0
Other           : 0
Total           : 49

Metadata checksums
Regular files   : 1a0e4d7b
Directories     : 14aa7ba
Symbolic links  : 3e9
Other           : 3e9

Checksums
Regular files   : d41d8cd98f00b204e9800998ecf8427e
Directories     : 2f307f1f0817022b
Symbolic links  : 0
Other           : 0
Total           : 12adfa5e6beff251


5. Stopped and started the geo-rep session and saw that the slave had more files than the master:

[root@dhcp35-2 ~]# ./arequal-checksum -p /mnt/slave/

Entry counts
Regular files   : 54
Directories     : 4
Symbolic links  : 0
Other           : 0
Total           : 58

Metadata checksums
Regular files   : 3ea1e
Directories     : 14aa7ba
Symbolic links  : 3e9
Other           : 3e9

Checksums
Regular files   : 00
Directories     : 707d3c5419240c21
Symbolic links  : 0
Other           : 0
Total           : 707d3c5419240c21

Actual results:
===============
No. of files on the slave were less than the number of files on the master

Expected results:
=================
Checksum between the master and slave should match


Additional info:
================
Will upload sosreports.


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