Bug 828129

Summary: [FEAT] volume set trace/error-gen does not validate the translator name
Product: [Community] GlusterFS Reporter: Ujjwala <ujjwala>
Component: cliAssignee: Raghavendra Bhat <rabhat>
Status: CLOSED EOL QA Contact: storage-qa-internal <storage-qa-internal>
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: bugs, gluster-bugs, rwheeler, sdharane
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-22 15:46:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ujjwala 2012-06-04 10:24:23 UTC
Description of problem:
The commands :
$ gluster volume set <VOLNAME> trace <translator-name> 

$ gluster volume set <VOLNAME> error-gen <translator-name>
 does not validate the translator name. Accepts anything character or string.


Version-Release number of selected component (if applicable):
found in 3.3.0 qa45

How reproducible:
Always

Steps to Reproduce:
1. Create a volume 
2. gluster volume set <VOLNAME> trace abc
3. gluster volume set <VOLNAME> error-gen xyz
4. check gluster volume info
  
Actual results:
[root@gqac001 ~]# gluster volume set dht trace $
Set volume successful
[root@gqac001 ~]# gluster volume set dht error-gen abc
Set volume successful
[root@gqac001 ~]# gluster volume info dht
 
Volume Name: dht
Type: Distribute
Volume ID: 15f677dc-1035-4cc9-a038-3fc795e57ad2
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: 10.16.157.0:/home/bricks/dht/b1
Brick2: 10.16.157.3:/home/bricks/dht/b1
Options Reconfigured:
debug.error-gen: abc
debug.trace: $



Expected results:
It should validate the translator name. They should be 'posix', 'locks', 'io-threads', 'acl', 'marker', 'index', else should get a error message.

Additional info:

Comment 3 Niels de Vos 2014-11-27 14:45:12 UTC
Feature requests make most sense against the 'mainline' release, there is no ETA for an implementation and requests might get forgotten when filed against a particular version.

Comment 4 Kaleb KEITHLEY 2015-10-22 15:46:38 UTC
because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice.

If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it.