[Bugs] [Bug 1331924] New: [geo-rep]: schedule_georep.py doesn't work when invoked using cron

bugzilla at redhat.com bugzilla at redhat.com
Sat Apr 30 04:16:01 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1331924

            Bug ID: 1331924
           Summary: [geo-rep]: schedule_georep.py doesn't work when
                    invoked using cron
           Product: GlusterFS
           Version: 3.7.11
         Component: geo-replication
          Keywords: ZStream
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: avishwan at redhat.com
                CC: avishwan at redhat.com, bugs at gluster.org,
                    chrisw at redhat.com, csaba at redhat.com,
                    nlevinki at redhat.com, rhinduja at redhat.com,
                    storage-qa-internal at redhat.com
        Depends On: 1331376, 1331658



+++ This bug was initially created as a clone of Bug #1331658 +++

+++ This bug was initially created as a clone of Bug #1331376 +++

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

--- Additional comment from Vijay Bellur on 2016-04-29 04:03:35 EDT ---

REVIEW: http://review.gluster.org/14111 (geo-rep: Fix gluster binary invocation
while running as cron) posted (#1) for review on master by Aravinda VK
(avishwan at redhat.com)

--- Additional comment from Vijay Bellur on 2016-04-29 05:28:36 EDT ---

REVIEW: http://review.gluster.org/14111 (geo-rep: Fix gluster binary invocation
while running as cron) posted (#2) for review on master by Aravinda VK
(avishwan at redhat.com)

--- Additional comment from Vijay Bellur on 2016-04-29 10:11:22 EDT ---

REVIEW: http://review.gluster.org/14111 (geo-rep: Fix gluster binary invocation
while running as cron) posted (#3) for review on master by Aravinda VK
(avishwan at redhat.com)

--- Additional comment from Vijay Bellur on 2016-04-30 00:14:03 EDT ---

COMMIT: http://review.gluster.org/14111 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 80e3832ec16f69d4184172cfc9afa9e42533e0ef
Author: Aravinda VK <avishwan at redhat.com>
Date:   Fri Apr 29 13:03:40 2016 +0530

    geo-rep: Fix gluster binary invocation while running as cron

    When scheduler script was executed as cron, it was unable to detect
    the Gluster binaries.

    BUG: 1331658
    Change-Id: Ic9c533586ed9a472765f69aa2f87d004c46d4340
    Signed-off-by: Aravinda VK <avishwan at redhat.com>
    Reviewed-on: http://review.gluster.org/14111
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1331376
[Bug 1331376] [geo-rep]: schedule_georep.py doesn't work when invoked using
cron
https://bugzilla.redhat.com/show_bug.cgi?id=1331658
[Bug 1331658] [geo-rep]: schedule_georep.py doesn't work when invoked using
cron
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list