From cc501a128486cec9d4ffad95d8a84ab7ddb96163 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 5 Jan 2011 15:29:59 +0000 Subject: [PATCH] fix preprocessing when there are multiple service nodes assigned to the node, defect 3138584 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xdsh.pm | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/xdsh.pm b/xCAT-server/lib/xcat/plugins/xdsh.pm index cf221e6b6..95b698263 100644 --- a/xCAT-server/lib/xcat/plugins/xdsh.pm +++ b/xCAT-server/lib/xcat/plugins/xdsh.pm @@ -293,8 +293,11 @@ sub process_servicenodes_xdcp # run the command to each servicenode # xdcp -s -F my @sn = (); - push @sn, $node; - + # handle multiple servicenodes for one node + my @sn_list = split ',', $node; + foreach my $snode (@sn_list) { + push @sn, $snode; + } # don't use runxcmd, because can go straight to process_request, # these are all service nodes. Also servicenode is taken from # the noderes table and may not be the same name as in the nodelist @@ -379,7 +382,11 @@ sub process_servicenodes_xdcp foreach my $node (@snodes) { my @sn = (); - push @sn, $node; + # handle multiple servicenodes for one node + my @sn_list = split ',', $node; + foreach my $snode (@sn_list) { + push @sn, $snode; + } # run the command to each servicenode # to make the directory under the temporary @@ -523,7 +530,11 @@ sub process_servicenodes_xdsh # xdcp -s -F my @sn = (); - push @sn, $node; + # handle multiple servicenodes for one node + my @sn_list = split ',', $node; + foreach my $snode (@sn_list) { + push @sn, $snode; + } # don't use runxcmd, because can go straight to process_request, # these are all service nodes. Also servicenode is taken from