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
This commit is contained in:
wanghuaz 2012-05-18 05:48:32 +00:00
parent 694f5878f8
commit aa1a5f9b35

View File

@ -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) {