Bug 1388690 - RFE: enable nfs-ganesha RGW FSAL
Summary: RFE: enable nfs-ganesha RGW FSAL
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-ganesha
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kaleb KEITHLEY
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-25 22:48 UTC by Ken Dreyer (Red Hat)
Modified: 2017-01-03 16:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-03 16:16:32 UTC
Type: Bug


Attachments (Terms of Use)

Description Ken Dreyer (Red Hat) 2016-10-25 22:48:09 UTC
Description of problem:
nfs-ganesha in Fedora is not built with the RGW FSAL enabled.

Version-Release number of selected component (if applicable):
nfs-ganesha-2.4.0-1.fc26

Steps to Reproduce:
1. "dnf install nfs-ganesha-rgw"

Actual results:
No such supackage

Expected results:
Package is available

Additional info:

When I make the following change in Rawhide dist-git:

diff --git a/nfs-ganesha.spec b/nfs-ganesha.spec
index 9f8816c..347a4fb 100644
--- a/nfs-ganesha.spec
+++ b/nfs-ganesha.spec
@@ -46,7 +46,7 @@ Requires: sles-release >= 12
 %bcond_without ceph
 %global use_fsal_ceph %{on_off_switch ceph}
 
-%bcond_with rgw
+%bcond_without rgw
 %global use_fsal_rgw %{on_off_switch rgw}
 
 %bcond_without gluster


I see the following build error:
...
-- Looking for rgw_mount in rgw
-- Looking for rgw_mount in rgw - found
-- Found rgw libraries: /usr/lib64/librgw.so
-- Could NOT find RGW: Found unsuitable version ".", but required is at least "1.1" (found /usr)
CMake Warning at CMakeLists.txt:571 (message):
  Cannot find supported RGW runtime.  Disabling RGW fsal build

I think that means there is some problem in ganesha upstream's CMakeLists.txt?

Comment 1 Kaleb KEITHLEY 2016-10-26 10:20:18 UTC
Has Ceph been updated to a version that works? Last time I checked it has not.

Comment 2 Ken Dreyer (Red Hat) 2016-10-26 10:50:49 UTC
Matt, what is a version of librgw2 that works (comment #1 above)?

Comment 3 Matt Benjamin (redhat) 2016-10-26 12:24:41 UTC
Hi Ken,

The 1.1 symbol was added after Jewel, but should have been backported.  I'll run this down.

Matt

Comment 4 Matt Benjamin (redhat) 2016-10-26 20:20:33 UTC
(In reply to Matt Benjamin (redhat) from comment #3)
> Hi Ken,
> 
> The 1.1 symbol was added after Jewel, but should have been backported.  I'll
> run this down.
> 
> Matt

Hi,

The symbol is added in:

commit 2a9233f1fbff38c12d378d5b6528a7e576a62e3e
Author: Matt Benjamin <mbenjamin>
Date:   Tue Aug 23 14:18:43 2016 -0400

    librgw: add API version defines for librgw and rgw_file

This is already on ceph-2-rhel-patches.

This change has been backported to Jewel, but is not in v10.2.3 or earlier.

Matt

Comment 5 Kaleb KEITHLEY 2016-10-27 13:17:31 UTC
I tried a scratch build after Ken added the version defines in ceph-10.2.3-4.fc26.

It failed. See the build log at https://kojipkgs.fedoraproject.org//work/tasks/6500/16226500/build.log

Comment 6 Ken Dreyer (Red Hat) 2016-10-27 18:09:52 UTC
We probably need some or all of the ceph patches here: https://github.com/ceph/ceph/pull/11335

That pull request will be in ceph v10.2.4, which should be out sometime in November. Let's retry this then.

Comment 7 Ken Dreyer (Red Hat) 2016-12-14 17:00:26 UTC
ceph-10.2.4-1.fc26 is in Rawhide now, so this can be enabled. I tested a local mockbuild of nfs-ganesha-2.4.1-1.fc26 with the rgw FSAL enabled, and it builds.

Comment 8 Ken Dreyer (Red Hat) 2017-01-03 16:16:32 UTC
nfs-ganesha in Rawhide now has the RGW FSAL enabled.

http://pkgs.fedoraproject.org/cgit/rpms/nfs-ganesha.git/commit/?id=1efc584c8fd3aa9c0f3e6f00b481fc88deb942b3

Thanks Kaleb


Note You need to log in before you can comment on or make changes to this bug.