From aa1a5f9b35957ebb7cb6554a26e964a1f37aea79 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 18 May 2012 05:48:32 +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/branches/2.7@12784 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 5b5b34fce..d4f409535 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -1122,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) {