Bug 1733258 - NFS-Ganesha cannot start when exports list is greater than 1024 bytes
Summary: NFS-Ganesha cannot start when exports list is greater than 1024 bytes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-manila
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: z8
: 13.0 (Queens)
Assignee: Tom Barron
QA Contact: Jason Grosso
mmurray
URL:
Whiteboard:
Depends On: 1725521
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-25 14:23 UTC by Tom Barron
Modified: 2023-03-24 15:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-25 22:33:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23675 0 None None None 2023-03-24 15:12:33 UTC

Description Tom Barron 2019-07-25 14:23:04 UTC
Description of problem:
When the rados exports list is longer than 1024 bytes in ganesha.conf, the parser fails to load the config file. (This is related to nfs-ganesha, but I see the issue is fixed upstream. We need the fix in the osp13 containers)
https://github.com/nfs-ganesha/nfs-ganesha/issues/369

Version-Release number of selected component (if applicable):
Red Hat OpenStack Platform 13
rhceph/rhceph-3-rhel7:3-25


How reproducible:
100%

Steps to Reproduce:
1. Have an exports list greater than 1024 bytes in size specified in ganesha.conf as 
%url rados://manila_data/ganesha-export-index
2. Try to start the container with:
/usr/bin/docker run --rm --net=host \
  -v /var/lib/ceph:/var/lib/ceph:z \
  -v /etc/ceph:/etc/ceph:z \
  -v /var/lib/nfs/ganesha:/var/lib/nfs/ganesha:z \
  -v /etc/ganesha:/etc/ganesha:z \
  -v /var/run/ceph:/var/run/ceph:z \
    --privileged \
  -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
  -v /etc/localtime:/etc/localtime:ro \
  -e CLUSTER=ceph \
  -e CEPH_DAEMON=NFS \
   \
  --name=ceph-nfs-pacemaker \
  registry.access.redhat.com/rhceph/rhceph-3-rhel7:3-25
3. No joy. 


Actual results:

01/07/2019 12:16:16 : epoch 5d196cf0 : controller-0 : ganesha.nfsd-84[main] main :NFS STARTUP :CRIT :Error (token scan, parser rule) while parsing (/etc/ganesha/ganesha.conf)
01/07/2019 12:16:16 : epoch 5d196cf0 : controller-0 : ganesha.nfsd-84[main] config_errs_to_log :CONFIG :CRIT :Config File (rados://manila/ganesha-export:13): new url (rados://manila_data/gan) open error (Unknown error -2), ignored
01/07/2019 12:16:16 : epoch 5d196cf0 : controller-0 : ganesha.nfsd-84[main] config_errs_to_log :CONFIG :CRIT :Config File (rados://manila/ganesha-export:13): Unexpected character (!)
01/07/2019 12:16:16 : epoch 5d196cf0 : controller-0 : ganesha.nfsd-84[main] config_errs_to_log :CONFIG :CRIT :Config File (/etc/ganesha/ganesha.conf:0): Configuration syntax errors found

Expected results:
nfs-ganesha@pacemaker would successfully launch the container

Additional info:
We fixed this by truncating the list of exports and starting the container to verify this is indeed the issue.

Comment 7 Goutham Pacha Ravi 2019-08-28 04:43:45 UTC
Moving this to ON_QA because the fix for the parent issue (https://bugzilla.redhat.com/show_bug.cgi?id=1725521) is available publicly in the Ceph Image 3-3: https://access.redhat.com/containers/?tab=security#/registry.access.redhat.com/rhceph/rhceph-3-rhel7/images/3-31

Comment 15 Jason Grosso 2019-12-04 18:49:33 UTC
Chen this should be fixed in the current release of rh 3-37 please re-open if this is NOT the case


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