Bug 782262

Summary: provide an option to create volume files with more debug translators in the graph.
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: glusterdAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact: Ujjwala <ujjwala>
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: gluster-bugs, sdharane, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:39:32 UTC Type: ---
Regression: --- 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:    
Bug Blocks: 817967    

Description Amar Tumballi 2012-01-17 00:58:37 UTC
Description of problem:

Currently there is no proper way to have debug/* translators in the graph through CLI. Adding such an option would be very helpful to debug issues and for QE.

Comment 1 Anand Avati 2012-02-20 10:07:21 UTC
CHANGE: http://review.gluster.com/776 (volgen: give an option to insert trace/error-gen) merged in master by Vijay Bellur (vijay)

Comment 2 Amar Tumballi 2012-06-01 09:56:06 UTC
The options provided by this patchset is for enabling either trace or error-gen translator on the brick vol file.

$ gluster volume set <VOLNAME> trace <translator-name> 

$ gluster volume set <VOLNAME> error-gen <translator-name>

here <translator-name> can be one of 'posix', 'locks', 'io-threads', 'acl', "marker", "index", upon which, the given debug translator is added to the the graph above the given type of translator.

Comment 3 Ujjwala 2012-06-04 07:59:04 UTC
Verified it on 3.3.0qa45 build. It works fine for all the 6 xlators mentioned above.
Currently there is no validation for the command. Accepts any string in place of <translator-name>. Will file a new bug for that.

Comment 4 Vijay Bellur 2012-07-29 21:40:58 UTC
CHANGE: http://review.gluster.com/3699 (volgen: add option to add trace/error-gen in client volume file) merged in master by Anand Avati (avati)