Bug 1397750

Summary: [GDEPLOY+GANESHA] Provide support to remove client permission block from export file with gdeploy
Product: Red Hat Gluster Storage Reporter: Manisha Saini <msaini>
Component: gdeployAssignee: Devyani Kota <dkota>
Status: CLOSED WONTFIX QA Contact: Manisha Saini <msaini>
Severity: low Docs Contact:
Priority: high    
Version: rhgs-3.2CC: amukherj, rhs-bugs, smohan, storage-qa-internal, surs
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-08 06:31:11 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:

Description Manisha Saini 2016-11-23 10:11:30 UTC
Description of problem:
With gdeploy,Adding permission to 1 client works currently.
If the user wants to remove permissions from that particular client,Gdeploy should provide the support to take back the permissions from that client.
Client block should be deleted from export file

Version-Release number of selected component (if applicable):
gdeploy-2.0.1-5.el7rhgs.noarch
glusterfs-3.8.4-5.el7rhgs.x86_64

How reproducible:

Steps to Reproduce:
1.Create 4 node ganesha setup using gdeploy
2.Create a volume with nfs enable on that client
3.Mount the volume to client
4.With gdeploy give permissions to 1 client.Run refresh-config
5.Remove permission for that client in export block

EXPORT{
      Export_Id= 5 ;
      Path = "/ganeshaval";
      FSAL {
           name = GLUSTER;
           hostname="localhost";
          volume="ganeshaval";
           }
      Access_type = RW;
      Disable_ACL = true;
      Squash="No_root_squash";
      Pseudo="/ganeshaval";
      Protocols = "3", "4" ;
      Transports = "UDP","TCP";
      SecType = "sys";
client {
clients = 10.70.46.44;
allow_root_access = true;
access_type = "RO";
Protocols = "4";
anonymous_uid = 1440;
anonymous_gid = 72;
}

}

Client block should be deleted from export file
Actual results:


Expected results:


Additional info:

Comment 6 Sachidananda Urs 2018-10-22 05:37:26 UTC
Since this functionality will be moved to gluster-ansible in future, this bug is flagged for closure. If there is a requirement to fix in 3.x please update the bug.