Bug 870502 - refine invocation of external commands by gsyncd
Summary: refine invocation of external commands by gsyncd
Keywords:
Status: CLOSED DUPLICATE of bug 868877
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: 2.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Csaba Henk
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On: GLUSTER-2946
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-26 16:53 UTC by Vijay Bellur
Modified: 2012-11-19 19:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: GLUSTER-2946
Environment:
Last Closed: 2012-11-19 19:32:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Vijay Bellur 2012-10-26 16:53:33 UTC
+++ This bug was initially created as a clone of Bug #764678 +++

gsyncd uses os.spawn* family of functions to invoke helper programs. These functions have poor feedback capabilites. Should move to a more comprehensive approach, which could feature:

- detect if command is not possible to invoke (execve failure)
- refine handling of result beyond the "success / failure" dichotomy
- reuse error messages of external programs as log messages

Most likely candidate is subprocess module, but it's not yet investigated if it's really suitable (beyond its availability in Python >= 2.4).

--- Additional comment from aavati on 2011-08-25 05:36:47 EDT ---

CHANGE: http://review.gluster.com/85 (Use subprocess module instead of os.spawn* / ad-hoc fork/exec.) merged in master by Vijay Bellur (vijay)

--- Additional comment from aavati on 2012-05-19 09:11:58 EDT ---

CHANGE: http://review.gluster.com/3258 (geo-rep / gsyncd: fixes regarding the command invocation framework) merged in master by Vijay Bellur (vijay)

--- Additional comment from vbellur on 2012-07-09 00:14:40 EDT ---

CHANGE: http://review.gluster.com/3563 (geo-rep / gsyncd: sanitize error log of external commands) merged in release-3.3 by Vijay Bellur (vijay)

--- Additional comment from vbellur on 2012-07-15 00:08:33 EDT ---

CHANGE: http://review.gluster.com/3561 (geo-rep / gsyncd: sanitize error log of external commands) merged in master by Anand Avati (avati)

--- Additional comment from vbellur on 2012-07-15 00:09:48 EDT ---

CHANGE: http://review.gluster.com/3560 (geo-rep / gsyncd: fixes to communication with child processes) merged in master by Anand Avati (avati)

--- Additional comment from vbellur on 2012-07-16 05:50:36 EDT ---

CHANGE: http://review.gluster.com/3562 (geo-rep / gsyncd: fixes to communication with child processes) merged in release-3.3 by Vijay Bellur (vbellur)

Comment 1 Csaba Henk 2012-11-19 19:32:20 UTC

*** This bug has been marked as a duplicate of bug 868877 ***


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