Bug 810442

Summary: setting auth.allow/reject option to valid 'shorthand notation of ipv6 address' is unsuccessful
Product: [Community] GlusterFS Reporter: Shwetha Panduranga <shwetha.h.panduranga>
Component: cliAssignee: Kaushal <kaushal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: gluster-bugs, vbellur
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:41:51 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:
Bug Depends On:    
Bug Blocks: 817967    

Description Shwetha Panduranga 2012-04-06 07:33:41 UTC
Description of problem:

When a valid  shorthand notation of ipv6 address (Ex:-'2003::1') is specified as value to volume set option auth.allow/reject, nfs.rpc-auth-allow/reject , the operation is unsuccessful and reports the ipv6 address as invalid. 

[04/06/12 - 17:42:23 root@APP-SERVER1 ~]# gluster volume set dstore auth.allow 2003::1
option auth.addr./export1/dstore1.allow 2003::1: '2003::1' is not a valid internet-address-list
Set volume unsuccessful

Note:-
---------
The volume set operation is successful when we specify full notation of ipv6 address or ipv6 address with wild characters.

[04/06/12 - 17:56:09 root@APP-SERVER1 ~]# gluster volume set dstore auth.allow 2003:1:1:1:1:1:1:1
Set volume successful

[04/06/12 - 17:58:24 root@APP-SERVER1 ~]# gluster volume set dstore auth.allow 2003:*
Set volume successful

[04/06/12 - 18:23:12 root@APP-SERVER1 ~]# gluster volume set dstore auth.allow 0:*:*:0:007F:0:0001:*
Set volume successful


Version-Release number of selected component (if applicable):
3.3.0qa33

How reproducible:
often

Steps to Reproduce:
1.Create a distribute-replicate volume. 
2.volume set <volume-name> auth.allow <shorthand_notation_of_ipv6_address>

Actual results:
[04/06/12 - 17:49:51 root@APP-SERVER1 ~]# gluster volume set dstore auth.allow 2003::1
option auth.addr./export1/dstore1.allow 2003::1: '2003::1' is not a valid internet-address-list
Set volume unsuccessful

Additional info:-
------------------
The same also happens with "peer probe  <shorthand_notation_of_ipv6_address>"

[04/06/12 - 17:52:12 root@APP-SERVER1 ~]# gluster peer probe 2003::1
Usage: peer probe <HOSTNAME>

Comment 1 Anand Avati 2012-04-19 06:18:55 UTC
CHANGE: http://review.gluster.com/3152 (glusterd: Properly validate compressed form of IPv6 addresses) merged in master by Vijay Bellur (vijay)

Comment 2 Shwetha Panduranga 2012-04-25 09:21:52 UTC
Verified the bug on 3.3.0qa38. bug is fixed.