Description of problem: ======================= When ran the schedule_georep.py using cron, it failed with the following traceback: Traceback (most recent call last): File "/usr/share/glusterfs/scripts/schedule_georep.py", line 470, in <module> main(args) File "/usr/share/glusterfs/scripts/schedule_georep.py", line 362, in main execute(cmd) File "/usr/share/glusterfs/scripts/schedule_georep.py", line 86, in execute p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Traceback (most recent call last): File "/usr/share/glusterfs/scripts/schedule_georep.py", line 470, in <module> main(args) File "/usr/share/glusterfs/scripts/schedule_georep.py", line 362, in main execute(cmd) File "/usr/share/glusterfs/scripts/schedule_georep.py", line 86, in execute p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Version-Release number of selected component (if applicable): ============================================================= glusterfs-3.7.9-2.el7rhgs.x86_64 How reproducible: ================= 1/1
Upstream patch sent http://review.gluster.org/#/c/14111
Downstream Patch: https://code.engineering.redhat.com/gerrit/#/c/73379/
Verified with the build: glusterfs-3.7.9-3.el7rhgs.x86_64 glusterfs-geo-replication-3.7.9-3.el7rhgs.x86_64 Ran the script using cron and didn't observe the crash. Crontab entry: ============== 45 14 * * * python /usr/share/glusterfs/scripts/schedule_georep.py --no-color Tom 10.70.37.122 Jerry >> /var/log/glusterfs/schedule_georep.log 2>&1 Script logs: ============ [root@dhcp37-182 scripts]# tailf /var/log/glusterfs/schedule_georep.log [ OK] Stopped Geo-replication [ OK] Set Checkpoint [ OK] Started Geo-replication and watching Status for Checkpoint completion [ OK] All Checkpoints NOT COMPLETE, All status OK (Turns 1) [ OK] All Checkpoints COMPLETE, All status OK (Turns 2) [ OK] Stopping Geo-replication session now ^C [root@dhcp37-182 scripts]# Date: ===== [root@dhcp37-182 scripts]# date Mon May 2 14:48:46 UTC 2016 [root@dhcp37-182 scripts]# Arequalchecksum match: ====================== Master ++++++ [root@dj ~]# /usr/local/bin/arequal-checksum -p /mnt/master/ Entry counts Regular files : 930 Directories : 202 Symbolic links : 96 Other : 0 Total : 1228 Metadata checksums Regular files : 7430 Directories : 1a41 Symbolic links : 3e9 Other : 3e9 Checksums Regular files : 590d350acf726008400852adf2facbbc Directories : 31b4e334d6f5775 Symbolic links : 4612693534791c16 Other : 0 Total : 5c0c40a1449ee0d7 [root@dj ~]# Slave +++++ [root@dj ~]# /usr/local/bin/arequal-checksum -p /mnt/slave/ Entry counts Regular files : 930 Directories : 202 Symbolic links : 96 Other : 0 Total : 1228 Metadata checksums Regular files : 7430 Directories : 1a41 Symbolic links : 3e9 Other : 3e9 Checksums Regular files : 590d350acf726008400852adf2facbbc Directories : 31b4e334d6f5775 Symbolic links : 4612693534791c16 Other : 0 Total : 5c0c40a1449ee0d7 [root@dj ~]# Moving the bug to verified state
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