diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index bab1565c5..92f004fbe 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -346,7 +346,9 @@ sub preprocess_request { if ($req->{inittime}->[0]) { return [$req]; } - return xCAT::Scope->get_broadcast_scope($req,@_); + if (@CN >0 ) { # there are computenodes then run on all servicenodes + return xCAT::Scope->get_broadcast_scope($req,@_); + } } return [$req]; } diff --git a/xCAT-server/lib/xcat/plugins/vsmppxe.pm b/xCAT-server/lib/xcat/plugins/vsmppxe.pm index f40655eb5..9637b70d8 100644 --- a/xCAT-server/lib/xcat/plugins/vsmppxe.pm +++ b/xCAT-server/lib/xcat/plugins/vsmppxe.pm @@ -276,7 +276,9 @@ sub preprocess_request { if ($req->{inittime}->[0]) { return [$req]; } - return xCAT::Scope->get_broadcast_scope($req,@_); + if (@CN >0 ) { # if there are compute nodes then broadcast to any servicenodes + return xCAT::Scope->get_broadcast_scope($req,@_); + } } return [$req]; } diff --git a/xCAT-server/lib/xcat/plugins/xnba.pm b/xCAT-server/lib/xcat/plugins/xnba.pm index 65ed1298c..651eb2bad 100644 --- a/xCAT-server/lib/xcat/plugins/xnba.pm +++ b/xCAT-server/lib/xcat/plugins/xnba.pm @@ -366,7 +366,9 @@ sub preprocess_request { if ($req->{inittime}->[0]) { return [$req]; } - return xCAT::Scope->get_broadcast_scope($req,@_); + if (@CN >0 ) { # there are computenodes then run on all servicenodes + 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 2988a926a..5f56a39c4 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -397,7 +397,9 @@ sub preprocess_request { if ($req->{inittime}->[0]) { return [$req]; } - return xCAT::Scope->get_broadcast_scope($req,@_); + if (@CN >0 ) { # if compute nodes broadcast to all servicenodes + return xCAT::Scope->get_broadcast_scope($req,@_); + } } return [$req]; }