Ketan and I looked at this yesterday. I suspect that the Gluster FSAL was
not being built properly (or at all).

cmake ../nfs-ganesha/src/ -DCMAKE_BUILD_TYPE=Maintainer -DSTRICT_PACKAGE=ON
...
-- Found Threads: TRUE
-- found krb5-config here /usr/bin/krb5-config
-- Found kerberos 5 headers: /include
-- Found kerberos 5 libs:
 
/usr/lib/x86_64-linux-gnu/mit-krb5/libkrb5.so;/usr/lib/x86_64-linux-gnu/mit-krb5/libk5crypto.so;/usr/lib/x86_64-linux-gnu/libcom_err.so;/usr/lib/x86_64-linux-gnu/mit-krb5/libgssapi_krb5.so
-- Looking for include file gssapi.h
-- Looking for include file gssapi.h - found
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
CMake Error at CMakeLists.txt:528 (message):
  STRICT PACKAGE: Cannot find GLUSTER GFAPI runtime.  Disabling GLUSTER fsal
  build


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/ben-test/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/ben-test/CMakeFiles/CMakeError.log".

We fixed `Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)` by
`sudo apt-get install pkg-config`

Now we get:
-- checking for module 'glusterfs-api>=7.3.7'
--   package 'glusterfs-api>=7.3.7' not found
CMake Error at CMakeLists.txt:528 (message):
  STRICT PACKAGE: Cannot find GLUSTER GFAPI runtime.  Disabling GLUSTER fsal
  build


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/ben-test/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/ben-test/CMakeFiles/CMakeError.log".


The issue ended up being that Ketan's build VM had 'gluster-common' version
'3.4.2-1ubuntu1' installed, when he needed >=3.7.3 from the PPA.

Here's the steps I took on a Ubuntu Trusty machine to build nfs-ganesha:
sudo sh -c 'deb-src "http://us.archive.ubuntu.com/ubuntu/ trusty main
restricted universe" >> /etc/apt/sources.list'
sudo sh -c 'deb-src "http://us.archive.ubuntu.com/ubuntu/ trusty-security
main restricted universe" >> /etc/apt/sources.list'
sudo sh -c 'deb-src "http://us.archive.ubuntu.com/ubuntu/ trusty-updates
main restricted universe" >> /etc/apt/sources.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
F7C73FCC930AC9F83B387A5613E01B7B3FE869A9
sudo sh -c 'echo "deb http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu
trusty main" >>  /etc/apt/sources.list.d/gluster-ppa.list'
sudo sh -c 'echo "deb-src
http://ppa.launchpad.net/gluster/glusterfs-3.7/ubuntu trusty main" >>
 /etc/apt/sources.list.d/gluster-ppa.list'
sudo apt-get update -y
# NB: some of the packages listed are for authoring debs, and not
explicitly required to build nfs-ganesha
sudo apt-get install -y git-buildpackage build-essential git libkrb5-dev
debhelper cmake dh-systemd bison flex libblkid-dev libdbus-1-dev
libjemalloc-dev libnfsidmap-dev libwbclient-dev python-dev pyqt4-dev-tools
xfslibs-dev uuid-dev glusterfs-common fakeroot doxygen
cd $src_dir
git clone [email protected]:nfs-ganesha/nfs-ganesha.git --recurse-submodules
mkdir $build_dir && cd $build_dir
cmake $src_dir -DCMAKE_BUILD_TYPE=Maintainer -DSTRICT_PACKAGE=ON
-DUSE_FSAL_CEPH=NO -DUSE_FSAL_ZFS=NO
make
sudo make install

I'm not sure if build option '-DCMAKE_BUILD_TYPE=Maintainer' is required or
recommended, but '-DSTRICT_PACKAGE=ON' was helpful while debugging issues
with packages.




On Tue, Jul 26, 2016 at 6:26 AM, Soumya Koduri <[email protected]> wrote:

>
>
> On 07/26/2016 01:26 AM, Ketan Dixit wrote:
> > Log snippet of the failure for reference.
> >
> > On Mon, Jul 25, 2016 at 11:46 AM, Ketan Dixit <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hello,
> >
> >
> >     I compiled nfs-ganesha source code  on ubuntu machine. (from the
> >     Next branch pulled on July 22 2016)
> >
> >     I am hitting an error when starting the nfs-ganesha service. Logs
> >     are getting flooded with this message.
> >              *ganesha.nfsd:
> >     /home/ubuntu/nfs-ganesha/src/config_parsing/config_parsing.c:1288:
> >     proc_block: Assertion `item->type == CONFIG_BLOCK' failed.*
> >
> >     On turning on Verbose logging, I observe that the error occurs just
> >     after printing fsinfo in the FSAL component.
> >              *ganesha.nfsd-1582[main] display_fsinfo :FSAL :DEBUG
> >     :FileSystem info: {
> >     *
> >     *              .*
> >     *              .*
> >     *              .*
> >     *         ganesha.nfsd-1582[main] display_fsinfo :FSAL :DEBUG :}*
> >
> >
> >     I do not see anything obviously wrong with the config file. Any
> >     inputs will be appreciated. How do I debug this issue?
> >
>
> I am running Gluster(on fedora though) and the same config worked for me
> as well . What are the cmake options used? Maybe gdb could help?
>
> Thanks,
> Soumya
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Nfs-ganesha-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to