From 245a7a055b81d1c71c7b79faceb35b020a67a06a Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 18 May 2012 06:04:21 +0000 Subject: [PATCH] Fixing bug 3508572. while restarting xcatd on service node, it will try to issue nodeset. for nfs-based statelite, it tries to issue litetree to get a folder and setup NFS exports. The problem is while issuing litetree command, xcatd is not available yet. So we added XCATBYPASS=Y before issuing litetree. After reviewing the context, litetree command is issued only on the CN's service node and the result is also used by the CN's service node only, so adding XCATBYPASS=y should be fine. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index b071fe587..19ee06624 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -20,6 +20,7 @@ our @EXPORT_OK = qw/sendmsg/; #------------------------------------------------------------------------------- + =head3 getNodesetStates get current nodeset stat for the given nodes @@ -1121,7 +1122,7 @@ sub setupNFSTree { my $sip = shift; my $callback = shift; - my $cmd = "litetree $node"; + my $cmd = "XCATBYPASS=Y litetree $node"; my @uris = xCAT::Utils->runcmd($cmd, 0); foreach my $uri (@uris) {