Announce Push of V6.1
by Frank Filz
Branch next
Tag:V6.1
Merge Highlights
* Coverity fixes
* dramatic config parsing speedup
* imroved LTTNG tracing
* initialize connection manager for metrics
* FSAL_CEPH - Add inode invalidation callback
* fix update prune unmount on pseudo change
* mdcache: Add config param Close_Fast
* Fix vfs_sub_getattrs if called for referral handling
* log_functions: Call gsh_backtrace on Fatal
* nfs_convert.c: add missing NFS4_OP_LAYOUTSTATS
* Setattr access check should succeed if client needs no permission
* nfs4_op_readdir: Fix xdr memory allocation
* Fix error code on exclusive open when file exists
* Add a config option to allow ignoring EPERM when setting PR_SET_IO_FLUSHER
* and more...
Signed-off-by: Frank S. Filz <ffilzlnx(a)mindspring.com>
Contents:
e13bc5dae Frank S. Filz V6.1
f936de8b3 Sachin Punadikar idmapper : Fix Coverity CIDs 502063, 502122,
502116, 502230
aa5e0f70d Martin Schwenke mdcache: Add config param Close_Fast
1168b3872 Martin Schwenke fsal: Make fsal_start_global_io() easier to
understand
b37df0af0 Martin Schwenke doc: Add missing word "default"
734f2c935 Roopkamal Tyagi Fixing ganesha monitoring C++ code compilation
errors
53b0f7140 Sachin Punadikar FSAL_CEPH - Add inode invalidation callback
7c65985ed Rojin George Unify data type for fsal fd counters
0b2c0ceac Rojin George Fail NFSoRDMA mount for GSS Flavour krb5p
b9c0c26ef Jason Woodward src/support/exports.c: fix update prune unmount on
pseudo change
f7b0c18ca Christoph Martin Fix vfs_sub_getattrs if called for referral
handling
1adeee8e6 izxl007 Fix the incorrect comment about the default value of
LRU_Run_Interval
5e922f399 Assaf Yaari log_functions: Call gsh_backtrace on Fatal
f654ad8d2 Shivam Singh Config Parser: Optimized the parsing of config file
43e01026a Prabhu Murugesan set NULL to sle_block_data after free
7eb1d2c5f Marc Eshel GPFS: Use DS for commit.
698ce0fcb Marc Eshel Add GPFS verifier for write/commit.
0766143fb Jason Woodward nfs_init.c: initialize connection manager for
metrics
d32f821cc Jason Woodward nfs_convert.c: add missing NFS4_OP_LAYOUTSTATS
5a3246609 Shahar Hochma Setattr access check should succeed if client needs
no permission
9145c831b Shahar Hochma nfs4_op_readdir: Fix xdr memory allocation
c4c09e94c Shahar Hochma Fix error code on exclusive open when file exists
767cd2737 Shahar Hochma Add function to LTTNG trace lines
1eb82f72f Shahar Hochma Add a config option to allow ignoring EPERM when
setting PR_SET_IO_FLUSHER
b7da7e281 Shahar Hochma Add LTTNG traces across the system
71392c9f8 Shahar Hochma MDCACHE: Bypass unnecessary entry locking when
attribute cache is disabled
1d5cd4a1f Shahar Hochma Add an option to not use potentially invalid cached
owner in mdcache_test_access
8885d61aa Shahar Hochma Small spelling mistake fix
3bd063837 Frank S. Filz MDCACHE: Fix Coverity CID 509132 - init
active_refcnt
fb713644e Frank S. Filz MDCACHE: Fix Coverity CID 502123 - fix lock
inversion
8aa0a686a Frank S. Filz clientid: fix Coverity CID 502248 - mutex ordering
2fb814592 Frank S. Filz Fix some clang-format issues
0374e3618 Frank S. Filz Sessions: Fix Coverity CID 502092 - check return of
nfs41_Session_Del
bffffd86f Frank S. Filz Connection Manager: Fix Coverity CID 502085 - check
return of sprint_sockip
433800701 Frank S. Filz PSEUDO: Fix Coverity CID 502071 - log
junction_export with lock held
f70f16412 Frank S. Filz reaper: Fox Coverity CID 502101 - use unsigned long
for values
2ea749516 Frank S. Filz FSAL_VFS: Fix Coverity CID 502222 Remove extraneous
retval assignmemt
f7ed09305 Frank S. Filz FSAL_MEM: Fix Coverity CID 502144 and 502168 - use
after free
1 week, 6 days
UID and GID Mapping with NFS Ganesha 3.5
by TomK
Hey Folks!
Hope everyone is doing great!
Question. Tried a few sources to solve the UID and GID NFS mapping
ability I would like to implement. Mounting NFS Ganesha using *sec=sys*
works but as soon as I use krb5, krb5i, krb5p etc I get 'permission
denied' on the UID that IS the owner of that folder.
Tried idmapd, as well as this suggestion:
UID_GID_Mapping = NFSv4_ID_Mapping
in FSAL which obviously didn't work. So wondering, what is the proper
way to get UID and GID mapping working with NFS Ganesha and GlusterFS
using *sec=krb5** ? Would love to look at a working example with
sample configurations if possible.
My config:
[root@nfs01 glusterfs]# cat /etc/ganesha/ganesha.conf
/etc/ganesha/export.conf|grep -v "^#"
/etc/ganesha/ganesha.conf
LOG {
Components {
ALL = EVENT;
}
Facility {
name = FILE;
destination = "/var/log/ganesha/ganesha-rgw.log";
enable = active;
}
}
NFSv4 {
Lease_Lifetime = 20 ;
IdmapConf = "/etc/idmapd.conf" ;
DomainName = "nix.mds.xyz" ;
}
NFS_KRB5 {
PrincipalName = "nfs/nfs01.nix.mds.xyz(a)NIX.MDS.XYZ" ;
KeytabPath = /etc/krb5.keytab ;
Active_krb5 = YES ;
}
NFS_Core_Param {
Bind_addr=192.168.0.100;
NFS_Port=2049;
MNT_Port=20048;
NLM_Port=38468;
Rquota_Port=4501;
}
%include "/etc/ganesha/export.conf"
/etc/ganesha/export.conf
EXPORT {
Export_Id = 1 ;
Path = "/n";
FSAL {
name = GLUSTER;
hostname = "nfs01.nix.mds.xyz";
volume = "gv01";
# UID_GID_Mapping = NFSv4_ID_Mapping;
}
Access_type = RW;
Squash = No_root_squash;
Disable_ACL = FALSE;
Pseudo = "/n";
Protocols = "3", "4";
Transports = "UDP", "TCP" ;
SecType = "sys","krb5","krb5i","krb5p"; #
"sys","krb5","krb5i","krb5p";
}
[root@nfs01 glusterfs]#
--
Thx,
TK.
4 weeks