Description of problem: Invalid IP address such as "192.*..*", "a.a." is accepted as valid ip_address. Version-Release number of selected component (if applicable): 3.3.0qa41 How reproducible: often Steps to Reproduce: 1.create a replicate volume 2.gluster volume set <volume_name> nfs.rpc-auth-reject 192.*..* 3.gluster volume set <volume_name> nfs.rpc-auth-reject a.a. Actual results: set volume successful Expected results: set volume should be unsuccessful as we have specified the invalid ip address
As of today, we are taking input for these options as regex (of fnmatch()), hence we don't validate a lot during CLI command itself. I think it makes sense to treat this as an enhancement.
CHANGE: http://review.gluster.org/4579 (libglusterfs: Fixed valid_ipv4_address and valid_host_name) merged in master by Anand Avati (avati)