Description of problem:
Volume is still visible under export list #showmount -e localhost even after volume is in stopped state.
Export ID of the nodes are different for the same export volume while performing volume start and stop
Version-Release number of selected component (if applicable):
# rpm -qa | grep ganesha
Steps to Reproduce:
1.Create and start the volume
gluster volume create volganesha1 replica 2 10.70.47.3:/mnt/data1/b1 10.70.47.159:/mnt/data1/b1 10.70.46.241:/mnt/data1/b1 10.70.46.219:/mnt/data1/b1/ 10.70.47.3:/mnt/data2/b2 10.70.47.159:/mnt/data2/b2 10.70.46.241:/mnt/data2/b2 10.70.46.219:/mnt/data2/b2/ 10.70.47.3:/mnt/data3/b3 10.70.47.159:/mnt/data3/b3 10.70.46.241:/mnt/data3/b3 10.70.46.219:/mnt/data3/b3/
2.gluster vol set volganesha1 ganesha.enable on
3.showmount -e localhost
# showmount -e localhost
Export list for localhost:
4.Checked export id on all four nodes.Export ID was 2
# dbus-send --type=method_call --print-reply --system --dest=org.ganesha.nfsd /org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.ShowExports
5.Stop the volume
6.Check Showmount -e localhost
No volume is exported
7.Again start the same volume volganesha1
8.Check showmount -e localhost.
Volume is exported on all the 4 nodes with ID=2
9.Repeat steps from 5 to 8 for 3 times.Each Time when the volume is started ,Export ID is 2.
10.Stop the volume volganesha1
11.Delete the Volume volganesha1
12.Create and start a new Volume volganesha2
13.gluster vol set volganesha2 ganesha.enable on
14.Check showmount -e localhost.Volume is exported with ID=3 on all the four nodes
15.Stop the volume volganesha2.Check showmount -e localhost.Volume is not there.
16.Again start the same volume volganesha2.Check showmount -e localhost.Volume is exported but with DIFFERENT EXPORT IP.
Out of 4 nodes,three nodes have export ID 3 and one node has export ID as 4.
17.Stop the volume volganesha2.
After stopping the volume,the volume is still visible in showmount -e localhost on three nodes out of four
Export ID is different on the nodes
Observed the following messages in /var/log/ganesha.log
24/11/2016 15:36:44 : epoch 82a00000 : dhcp46-219.lab.eng.blr.redhat.com : ganesha.nfsd-18193[dbus_heartbeat] glusterfs_create_export :FSAL :EVENT :Volume volganesha2 exported at : '/'
24/11/2016 15:37:58 : epoch 82a00000 : dhcp46-219.lab.eng.blr.redhat.com : ganesha.nfsd-18193[dbus_heartbeat] dbus_message_entrypoint :DBUS :MAJ :Method (RemoveExport) on (org.ganesha.nfsd.exportmgr) failed: name = (org.freedesktop.DBus.Error.InvalidArgs), message = (lookup_export failed with Export id not found)
After stopping the volume should be unexported successfully.
Export ID should be same in all the 4 nodes when the volume is exported.
The patch posted upstream for review http://review.gluster.org/#/c/15948/
As discussed in bug triage meeting ,providing qa_ack
Patch got merged upstream master
Downstream patch link
Verification for this bug can be done if volume start and stop works fine.Currently Bug 1401806 addresses the issue and hence marking this bug dependent on the other for its complete verification.
Verified this Bug on
[root@dhcp47-3 tmp]# rpm -qa | grep ganesha
As the issue is no more observed,Hence marking this bug as Verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.