Hi folks, We recently pulled down some Ceph updates (10.2.3-489-g8c1c654) which appear to have changed the rgw_open() and rgw_create() APIs (rgw_file.cc), thus breaking our ganesha (v2.3-stable) build.
Patching as below pushes the build through, but ganesha no longer seems able to mount S3 buckets (logs below as well). First obvious question, is 2.3 at all meant to be compatible with this Ceph version, or are really needing to look into upgrading to 2.4? If compatible, does anyone have any insight why nfs_Init_svc(void) would be failing to acquire necessary permissions (per log below)? Thanks in advance for any insight! Karol Patch1: Index: FSAL/FSAL_RGW/handle.c =================================================================== --- FSAL/FSAL_RGW/handle.c.orig +++ FSAL/FSAL_RGW/handle.c @@ -197,7 +197,7 @@ static fsal_status_t fsal_create(struct RGW_SETATTR_UID | RGW_SETATTR_GID | RGW_SETATTR_MODE; rc = rgw_create(export->rgw_fs, dir->rgw_fh, name, &st, create_mask, - &rgw_fh, RGW_CREATE_FLAG_NONE); + &rgw_fh, 0 /* posix flags */, RGW_CREATE_FLAG_NONE); if (rc < 0) return rgw2fsal_error(rc); Patch2: Index: FSAL/FSAL_RGW/handle.c =================================================================== --- FSAL/FSAL_RGW/handle.c.orig +++ FSAL/FSAL_RGW/handle.c @@ -519,7 +519,9 @@ static fsal_status_t fsal_open(struct fs if (handle->openflags != FSAL_O_CLOSED) return fsalstat(ERR_FSAL_SERVERFAULT, 0); - rc = rgw_open(export->rgw_fs, handle->rgw_fh, posix_flags); + rc = rgw_open(export->rgw_fs, handle->rgw_fh, posix_flags, + RGW_OPEN_FLAG_V3); + if (rc < 0) { return rgw2fsal_error(rc); } Snippet of failure: ... 07/11/2016 02:53:20 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] init_export_root :EXPORT :DEBUG :Added root entry 0x19323e0 FSAL RGW for path / on export_id=1 07/11/2016 02:53:20 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init :NFS STARTUP :INFO :krb5 keytab path successfully set to 07/11/2016 02:53:20 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init :NFS STARTUP :INFO :gss principal "nfs" successfully set 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :DEBUG :NFS INIT: Core options = 7 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :INFO :NFS INIT: using TIRPC 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :INFO :NFS INIT: Using IPv6 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :DEBUG :Socket numbers are: nfs_udp=32 nfs_tcp=33 mnt_udp=34 mnt_tcp=35 nlm_tcp=36 nlm_udp=37 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :DEBUG :Socket numbers are: rquota_udp=38 rquota_tcp=39 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] Bind_sockets :DISP :INFO :Bind_sockets() successful, v6disabled = 0 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :INFO :Successfully imported principal nfs into GSSAPI 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] nfs_Init_svc :DISP :CRIT :Cannot acquire credentials for principal nfs 07/11/2016 02:53:21 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] Register_program :DISP :INFO :Registering NFS V3/UDP 07/11/2016 02:53:22 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] Register_program :DISP :FATAL :Cannot register NFS V3 on UDP 07/11/2016 02:53:22 : epoch 58205d17 : ganesha2-2 : ganesha.nfsd-5062[main] finish :FSAL :DEBUG :RGW module finishing ...
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi
_______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel