[Bugs] [Bug 1377607] New: Volume restart couldn' t re-export the volume exported via ganesha.

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 20 08:25:25 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1377607

            Bug ID: 1377607
           Summary: Volume restart couldn't re-export the volume exported
                    via ganesha.
           Product: GlusterFS
           Version: mainline
         Component: ganesha-nfs
          Severity: high
          Assignee: jthottan at redhat.com
          Reporter: jthottan at redhat.com
                CC: bugs at gluster.org, jthottan at redhat.com,
                    kkeithle at redhat.com, ndevos at redhat.com,
                    skoduri at redhat.com, sraj at redhat.com,
                    storage-qa-internal at redhat.com
        Depends On: 1377198



+++ This bug was initially created as a clone of Bug #1377198 +++

Description of problem:

Volume restart couldn't export the volume exported via ganesha.

Version-Release number of selected component (if applicable):

[root at dhcp43-116 ganesha]# rpm -qa|grep ganesha
glusterfs-ganesha-3.8.3-0.6.git7956718.el7.centos.x86_64
nfs-ganesha-gluster-2.4-0.rc4.el7.centos.x86_64
nfs-ganesha-debuginfo-2.4-0.rc4.el7.centos.x86_64
nfs-ganesha-2.4-0.rc4.el7.centos.x86_64

How reproducible:

Always

Steps to Reproduce:

1.Create and start a volume

[root at dhcp43-116 nfs-ganesha]# gluster volume create testvol replica 2
10.70.43.116:/bricks/brick0/b0 10.70.43.88:/bricks/brick0/b0
10.70.42.47:/bricks/brick0/b0 10.70.42.237:/bricks/brick0/b0
10.70.43.116:/bricks/brick1/b1 10.70.43.88:/bricks/brick1/b1
10.70.42.47:/bricks/brick1/b1 10.70.42.237:/bricks/brick1/b1
10.70.43.116:/bricks/brick2/b2 10.70.43.88:/bricks/brick2/b2
10.70.42.47:/bricks/brick2/b2 10.70.42.237:/bricks/brick2/b2 
volume create: testvol: success: please start the volume to access data

[root at dhcp43-116 nfs-ganesha]# gluster vol start testvol
volume start: testvol: success


2. Export the volume 

[root at dhcp43-116 ~]# gluster vol set testvol ganesha.enable on
volume set: success

3. Make sure showmount lists the exported volume

[root at dhcp43-116 ~]# cd /var/run/gluster/shared_storage/nfs-ganesha/exports/
[root at dhcp43-116 exports]# ls
export.testvol.conf

[root at dhcp43-116 exports]# showmount -e localhost
Export list for localhost:
/testvol (everyone)

4. stop the volume

[root at dhcp43-116 exports]# gluster vol stop testvol
Stopping volume will make its data inaccessible. Do you want to continue? (y/n)
y
volume stop: testvol: success

5. start the volume again

[root at dhcp43-116 exports]# gluster vol start testvol
volume start: testvol: success

6. Observe that showmount doesn't list the exported volume after start of the
volume

[root at dhcp43-116 exports]# showmount -e localhost
Export list for localhost:
[root at dhcp43-116 exports]# ls
export.testvol.conf

7. Observe that following error messages are seen in ganesha.log

19/09/2016 17:48:14 : epoch 57dbe5c8 : dhcp43-116.lab.eng.blr.redhat.com :
ganesha.nfsd-6039[dbus_heartbeat] gsh_export_addexport :EXPORT :CRIT :Error
while parsing /etc/ganesha/exports/export.testvol.conf
19/09/2016 17:48:14 : epoch 57dbe5c8 : dhcp43-116.lab.eng.blr.redhat.com :
ganesha.nfsd-6039[dbus_heartbeat] dbus_message_entrypoint :DBUS :MAJ :Method
(AddExport) on (org.ganesha.nfsd.exportmgr) failed: name =
(org.freedesktop.DBus.Error.InvalidFileContent), message = (Error while parsing
/etc/ganesha/exports/export.testvol.conf because of (token scan) errors.
Details:
Config File (<unknown file>:0): new file
(/etc/ganesha/exports/export.testvol.conf) open error (No such file or
directory), ignored


Actual results:

Volume restart couldn't export the volume exported via ganesha.

Expected results:

Volume should get exported properly after volume restart.

Additional info:

--- Additional comment from Soumya Koduri on 2016-09-19 04:29:47 EDT ---

This looks like a bug in the recent changes we have done to move config to
shared_storage. 

[root at dhcp43-116 ~]# ls -ld /etc/ganesha/
.export_added           ganesha.conf            ganesha.conf.rpmsave   
ganesha-ha.conf         ganesha-ha.conf.sample  
[root at dhcp43-116 ~]# ls -ld /etc/ganesha/
drwxr-xr-x. 2 root root 4096 Sep 19 19:25 /etc/ganesha/
[root at dhcp43-116 ~]# 
[root at dhcp43-116 ~]# ls -ld /etc/ganesha/exp*
ls: cannot access /etc/ganesha/exp*: No such file or directory
[root at dhcp43-116 ~]# 


There is not exports folder with in /etc/ganesha.

--- Additional comment from Shashank Raj on 2016-09-19 04:48:05 EDT ---

Volume restart creates an export entry (/etc/ganesha/exports/export.v3.conf)
for the same volume inside /etc/ganesha/ganesha.conf

As below:

#in the global part. Or create a separate file with the export block
#and include in the following block.

NFS_Core_Param {
        #Use supplied name other tha IP In NSM operations
        NSM_Use_Caller_Name = true;
        #Copy lock states into "/var/lib/nfs/ganesha" dir
        Clustered = false;
        #By default port number '2049' is used for NFS service.
        #Configure ports for MNT, NLM, RQuota services.
        #The ports chosen here are from '/etc/sysconfig/nfs'
        MNT_Port = 20048;
        NLM_Port = 32803;
        Rquota_Port = 875;
}

CACHEINODE {
        Entries_HWMark = 25000;
}
%include "/etc/ganesha/exports/export.v3.conf"

is this expected?

--- Additional comment from Shashank Raj on 2016-09-19 07:39:36 EDT ---

Trying this particular scenario also removes the symlink created between
/etc/ganesha/ganesha.conf and
/var/run/gluster/shared_storage/nfs-ganesha/ganesha.conf:

[root at dhcp43-116 ganesha]# ls -ltr
total 12
-rw-r--r--. 1 root root  776 Aug 29 17:04 ganesha-ha.conf.sample
-rw-r--r--. 1 root root 1054 Aug 29 23:12 ganesha-ha.conf
-rw-r--r--. 1 root root 1403 Sep 16 02:20 ganesha.conf.rpmsave
lrwxrwxrwx. 1 root root   56 Sep 19 22:12 ganesha.conf ->
/var/run/gluster/shared_storage/nfs-ganesha/ganesha.conf

[root at dhcp43-116 ganesha]# gluster vol set v1 ganesha.enable on
volume set: success

[root at dhcp43-116 ganesha]# ls -ltr
total 12
-rw-r--r--. 1 root root  776 Aug 29 17:04 ganesha-ha.conf.sample
-rw-r--r--. 1 root root 1054 Aug 29 23:12 ganesha-ha.conf
-rw-r--r--. 1 root root 1403 Sep 16 02:20 ganesha.conf.rpmsave
lrwxrwxrwx. 1 root root   56 Sep 19 22:12 ganesha.conf ->
/var/run/gluster/shared_storage/nfs-ganesha/ganesha.conf

[root at dhcp43-116 ganesha]# showmount -e localhost
Export list for localhost:
/v1 (everyone)

[root at dhcp43-116 ganesha]# ls -ltr
total 12
-rw-r--r--. 1 root root  776 Aug 29 17:04 ganesha-ha.conf.sample
-rw-r--r--. 1 root root 1054 Aug 29 23:12 ganesha-ha.conf
-rw-r--r--. 1 root root 1403 Sep 16 02:20 ganesha.conf.rpmsave
lrwxrwxrwx. 1 root root   56 Sep 19 22:12 ganesha.conf ->
/var/run/gluster/shared_storage/nfs-ganesha/ganesha.conf

[root at dhcp43-116 ganesha]# gluster vol stop v1
Stopping volume will make its data inaccessible. Do you want to continue? (y/n)
y
volume stop: v1: success

[root at dhcp43-116 ganesha]# ls -ltr
total 12
-rw-r--r--. 1 root root  776 Aug 29 17:04 ganesha-ha.conf.sample
-rw-r--r--. 1 root root 1054 Aug 29 23:12 ganesha-ha.conf
-rw-r--r--. 1 root root 1403 Sep 16 02:20 ganesha.conf.rpmsave
lrwxrwxrwx. 1 root root   56 Sep 19 22:12 ganesha.conf ->
/var/run/gluster/shared_storage/nfs-ganesha/ganesha.conf

[root at dhcp43-116 ganesha]# showmount -e localhost
Export list for localhost:
[root at dhcp43-116 ganesha]# gluster vol start v1
volume start: v1: success
[root at dhcp43-116 ganesha]# showmount -e localhost
Export list for localhost:

[root at dhcp43-116 ganesha]# ls -ltr
total 16
-rw-r--r--. 1 root root  776 Aug 29 17:04 ganesha-ha.conf.sample
-rw-r--r--. 1 root root 1054 Aug 29 23:12 ganesha-ha.conf
-rw-r--r--. 1 root root 1403 Sep 16 02:20 ganesha.conf.rpmsave
-rw-r--r--. 1 root root 1450 Sep 19 22:23 ganesha.conf


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1377198
[Bug 1377198] Volume restart couldn't re-export the volume exported via
ganesha.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=A6tyCXH0Me&a=cc_unsubscribe


More information about the Bugs mailing list