From f9e4ef54a840633c05eebae6fdfa2b63d3b1d97f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Mar 2009 06:15:05 +0000 Subject: [PATCH] -Do not fan out nodeset at tftp build up time git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/AAsn.pm | 1 + xCAT-server/lib/xcat/plugins/pxe.pm | 3 +++ xCAT-server/lib/xcat/plugins/yaboot.pm | 3 +++ 3 files changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index c8804cc08..cbb93a857 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -965,6 +965,7 @@ sub setup_TFTP } } $cmdref->{command}->[0] = "nodeset"; + $cmdref->{localonly}->[0] = "1"; $cmdref->{arg}->[0] = "enact"; $cmdref->{cwd}->[0] = "/opt/xcat/sbin"; my $plugins_dir=$::XCATROOT.'/lib/perl/xCAT_plugin'; diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index 631646641..8a46a9340 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -189,6 +189,9 @@ sub preprocess_request { my $sent = $stab->getAttribs({key=>'sharedtftp'},'value'); if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) { $req->{'_disparatetftp'}=[1]; + if ($req->{localonly}->[0]) { + return [$req]; + } return xCAT::Scope->get_broadcast_scope($req,@_); } return [$req]; diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 0fcd343e0..aaff1880c 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -191,6 +191,9 @@ sub preprocess_request { my $sent = $stab->getAttribs({key=>'sharedtftp'},'value'); if ($sent and ($sent->{value} == 0 or $sent->{value} =~ /no/i)) { $req->{'_disparatetftp'}=[1]; + if ($req->{localonly}->[0]) { + return [$req]; + } return xCAT::Scope->get_broadcast_scope($req,@_); } return [$req];