Bug 870502

Summary: refine invocation of external commands by gsyncd
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijay Bellur <vbellur>
Component: geo-replicationAssignee: Csaba Henk <csaba>
Status: CLOSED DUPLICATE QA Contact: Sudhir D <sdharane>
Severity: high Docs Contact:
Priority: high    
Version: 2.0CC: aavati, csaba, rhs-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: GLUSTER-2946 Environment:
Last Closed: 2012-11-19 19:32:20 UTC Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 764678    
Bug Blocks:    

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 ***