Bug 1241366 - nfs-ganesha: add-node logic does not copy the "/etc/ganesha/exports" directory to the correct path on the newly added node
Summary: nfs-ganesha: add-node logic does not copy the "/etc/ganesha/exports" director...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: nfs-ganesha
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ---
: RHGS 3.1.0
Assignee: Meghana
QA Contact: Saurabh
URL:
Whiteboard:
Depends On:
Blocks: 1202842 1241895 1242192
TreeView+ depends on / blocked
 
Reported: 2015-07-09 06:36 UTC by Saurabh
Modified: 2016-01-19 06:14 UTC (History)
9 users (show)

Fixed In Version: glusterfs-3.7.1-10
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1241895 (view as bug list)
Environment:
Last Closed: 2015-07-29 05:10:56 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

Description Saurabh 2015-07-09 06:36:49 UTC
Description of problem:


Presently add-node works only if the "/etc/ganesha/exports" is available, otherwise it fails to bring the nfs-ganesha process up.

Version-Release number of selected component (if applicable):
glusterfs-3.7.1-8.el6rhs.x86_64
nfs-ganesha-2.2.0-4.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
1. configure nfs-ganesha on 4 nodes.
2. gluster peer probe a 5th node, 
3. make sure that "/etc/ganesha/exports" directory is not available
4. use the gluster command to add a node

Actual results:
step 4, 
pcs will be able to add-node, but actually nfs-ganesha process does not up on the new node,

Clone Set: nfs-mon-clone [nfs-mon]
     Started: [ nfs11 nfs12 nfs13 nfs14 nfs15 nfs16 ]
 Clone Set: nfs-grace-clone [nfs-grace]
     Started: [ nfs11 nfs12 nfs13 nfs14 nfs15 nfs16 ]
 nfs16-dead_ip-1	(ocf::heartbeat:Dummy):	Started nfs16 
 nfs11-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs11 
 nfs11-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs11 
 nfs12-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs12 
 nfs12-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs12 
 nfs13-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs13 
 nfs13-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs13 
 nfs14-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs14 
 nfs14-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs14 
 nfs15-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs15 
 nfs15-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs15 
 nfs16-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs15 
 nfs16-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs15 


Expected results:
/etc/ganesha/exports should be created and data copied in the directory as similar to other nodes.


Additional info:

Comment 5 Saurabh 2015-07-16 10:21:52 UTC
I verified the things on VMs and based on the logs below moving this BZ to verified,

[root@nfs11 ~]# time bash /usr/libexec/ganesha/ganesha-ha.sh --add /etc/ganesha nfs16 10.70.44.97
root@nfs11's password: 
root@nfs11's password: 
ganesha.conf                                                                                                                                                                 100% 1219     1.2KB/s   00:00    
Connection to nfs11 closed.
tmp.cCW9SXsWpV                                                                                                                                                               100% 1219     1.2KB/s   00:00    
root@nfs11's password: 
root@nfs11's password: 
export.vol5.conf                                                                                                                                                             100%  550     0.5KB/s   00:00    
Connection to nfs11 closed.
export.vol5.conf                                                                                                                                                             100%  550     0.5KB/s   00:00    
Starting ganesha.nfsd: [  OK  ]
nfs11: Corosync updated
nfs12: Corosync updated
nfs13: Corosync updated
nfs14: Corosync updated
nfs15: Corosync updated
nfs16: Updated cluster.conf...
Adding nfs_start-nfs16 nfs-mon-clone (kind: Mandatory) (Options: first-action=start then-action=start)
CIB updated
nfs16: Starting Cluster...
Removing Constraint - location-nfs_start-nfs16-nfs16-INFINITY
Removing Constraint - order-nfs_start-nfs16-nfs-mon-clone-mandatory
Attempting to stop: nfs_start-nfs16...Stopped
Deleting Resource - nfs_start-nfs16
Removing Constraint - colocation-nfs11-cluster_ip-1-nfs11-trigger_ip-1-INFINITY
Removing Constraint - location-nfs11-cluster_ip-1
Removing Constraint - location-nfs11-cluster_ip-1-nfs12-1000
Removing Constraint - location-nfs11-cluster_ip-1-nfs13-2000
Removing Constraint - location-nfs11-cluster_ip-1-nfs14-3000
Removing Constraint - location-nfs11-cluster_ip-1-nfs15-4000
Removing Constraint - location-nfs11-cluster_ip-1-nfs11-5000
Removing Constraint - order-nfs-grace-clone-nfs11-cluster_ip-1-mandatory
Deleting Resource - nfs11-cluster_ip-1
Removing Constraint - order-nfs11-trigger_ip-1-nfs-grace-clone-mandatory
Deleting Resource - nfs11-trigger_ip-1
Removing Constraint - colocation-nfs12-cluster_ip-1-nfs12-trigger_ip-1-INFINITY
Removing Constraint - location-nfs12-cluster_ip-1
Removing Constraint - location-nfs12-cluster_ip-1-nfs13-1000
Removing Constraint - location-nfs12-cluster_ip-1-nfs14-2000
Removing Constraint - location-nfs12-cluster_ip-1-nfs15-3000
Removing Constraint - location-nfs12-cluster_ip-1-nfs11-4000
Removing Constraint - location-nfs12-cluster_ip-1-nfs12-5000
Removing Constraint - order-nfs-grace-clone-nfs12-cluster_ip-1-mandatory
Deleting Resource - nfs12-cluster_ip-1
Removing Constraint - order-nfs12-trigger_ip-1-nfs-grace-clone-mandatory
Deleting Resource - nfs12-trigger_ip-1
Removing Constraint - colocation-nfs13-cluster_ip-1-nfs13-trigger_ip-1-INFINITY
Removing Constraint - location-nfs13-cluster_ip-1
Removing Constraint - location-nfs13-cluster_ip-1-nfs14-1000
Removing Constraint - location-nfs13-cluster_ip-1-nfs15-2000
Removing Constraint - location-nfs13-cluster_ip-1-nfs11-3000
Removing Constraint - location-nfs13-cluster_ip-1-nfs12-4000
Removing Constraint - location-nfs13-cluster_ip-1-nfs13-5000
Removing Constraint - order-nfs-grace-clone-nfs13-cluster_ip-1-mandatory
Deleting Resource - nfs13-cluster_ip-1
Removing Constraint - order-nfs13-trigger_ip-1-nfs-grace-clone-mandatory
Deleting Resource - nfs13-trigger_ip-1
Removing Constraint - colocation-nfs14-cluster_ip-1-nfs14-trigger_ip-1-INFINITY
Removing Constraint - location-nfs14-cluster_ip-1
Removing Constraint - location-nfs14-cluster_ip-1-nfs15-1000
Removing Constraint - location-nfs14-cluster_ip-1-nfs11-2000
Removing Constraint - location-nfs14-cluster_ip-1-nfs12-3000
Removing Constraint - location-nfs14-cluster_ip-1-nfs13-4000
Removing Constraint - location-nfs14-cluster_ip-1-nfs14-5000
Removing Constraint - order-nfs-grace-clone-nfs14-cluster_ip-1-mandatory
Deleting Resource - nfs14-cluster_ip-1
Removing Constraint - order-nfs14-trigger_ip-1-nfs-grace-clone-mandatory
Deleting Resource - nfs14-trigger_ip-1
Removing Constraint - colocation-nfs15-cluster_ip-1-nfs15-trigger_ip-1-INFINITY
Removing Constraint - location-nfs15-cluster_ip-1
Removing Constraint - location-nfs15-cluster_ip-1-nfs11-1000
Removing Constraint - location-nfs15-cluster_ip-1-nfs12-2000
Removing Constraint - location-nfs15-cluster_ip-1-nfs13-3000
Removing Constraint - location-nfs15-cluster_ip-1-nfs14-4000
Removing Constraint - location-nfs15-cluster_ip-1-nfs15-5000
Removing Constraint - order-nfs-grace-clone-nfs15-cluster_ip-1-mandatory
Deleting Resource - nfs15-cluster_ip-1
Removing Constraint - order-nfs15-trigger_ip-1-nfs-grace-clone-mandatory
Deleting Resource - nfs15-trigger_ip-1
Adding nfs11-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs11-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs12-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs12-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs13-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs13-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs14-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs14-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs15-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs15-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs16-trigger_ip-1 nfs-grace-clone (kind: Mandatory) (Options: first-action=start then-action=start)
Adding nfs-grace-clone nfs16-cluster_ip-1 (kind: Mandatory) (Options: first-action=start then-action=start)
CIB updated
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    
ganesha-ha.conf                                                                                                                                                              100%  958     0.9KB/s   00:00    

real	1m19.579s
user	0m26.028s
sys	0m7.365s
[root@nfs11 ~]# pcs status
Cluster name: nozomer
Last updated: Thu Jul 16 20:22:52 2015
Last change: Thu Jul 16 20:22:33 2015
Stack: cman
Current DC: nfs11 - partition with quorum
Version: 1.1.11-97629de
6 Nodes configured
24 Resources configured


Online: [ nfs11 nfs12 nfs13 nfs14 nfs15 nfs16 ]

Full list of resources:

 Clone Set: nfs-mon-clone [nfs-mon]
     Started: [ nfs11 nfs12 nfs13 nfs14 nfs15 nfs16 ]
 Clone Set: nfs-grace-clone [nfs-grace]
     Started: [ nfs11 nfs12 nfs13 nfs14 nfs15 nfs16 ]
 nfs11-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs11 
 nfs11-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs11 
 nfs12-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs12 
 nfs12-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs12 
 nfs13-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs13 
 nfs13-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs13 
 nfs14-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs14 
 nfs14-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs14 
 nfs15-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs15 
 nfs15-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs15 
 nfs16-cluster_ip-1	(ocf::heartbeat:IPaddr):	Started nfs16 
 nfs16-trigger_ip-1	(ocf::heartbeat:Dummy):	Started nfs16

Comment 6 errata-xmlrpc 2015-07-29 05:10:56 UTC
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.

https://rhn.redhat.com/errata/RHSA-2015-1495.html


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