Bug 799228

Summary: nfs.rpc-auth-allow and nfs.rpc-auth-reject not working as expected
Product: [Community] GlusterFS Reporter: Shwetha Panduranga <shwetha.h.panduranga>
Component: nfsAssignee: Rajesh <rajesh>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: gluster-bugs, vagarwal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-13 09:31:04 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:
Attachments:
Description Flags
nfs log when nfs.rpc-auth-allow set
none
nfs log when nfs.rpc-auth-reject set none

Description Shwetha Panduranga 2012-03-02 07:51:40 UTC
Description of problem:
Case1:-
------
when nfs.rpc-auth-allow is set to an ip_address, it should allow nfs mount request only from the ip_address specified as value to nfs.rpc-auth-allow.

Case2:-
-----
when nfs.rpc-auth-reject is set to an ip_address, any nfs mount requests from the ip_address should be rejected. 

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

How reproducible:
often

Steps to Reproduce Case1:
-------------------------
1.gluster volume set <vol_name> nfs.rpc-auth-allow <client1>
2.mount -t nfs -o vers=3 <volume> <mount_point> from client1

Actual results:
[2012-03-02 18:42:16.653885] T [mount3.c:767:mnt3_check_client_net] 0-nfs-mount: Peer not allowed
[2012-03-02 18:42:16.653917] D [mount3.c:913:mnt3svc_mnt] 0-nfs-mount: Client mount not allowed

Expected results:
Client mount request should be allowed

Steps to Reproduce Case2:
-------------------------
1.gluster volume set <vol_name> nfs.rpc-auth-reject <client1>
2.mount -t nfs -o vers=3 <volume> <mount_point> from client1

Actual results:
mount request from client1 allowed.

Expected results:
Client mount request should not be allowed

Additional info:

Comment 1 Shwetha Panduranga 2012-03-02 07:52:59 UTC
Created attachment 566999 [details]
nfs log when nfs.rpc-auth-allow set

Comment 2 Shwetha Panduranga 2012-03-02 07:53:54 UTC
Created attachment 567000 [details]
nfs log when nfs.rpc-auth-reject set

Comment 3 Rajesh 2012-03-13 09:31:04 UTC

*** This bug has been marked as a duplicate of bug 771845 ***