mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	fix copy of sync file when we are on the Management node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -78,6 +78,10 @@ sub preprocess_request | ||||
|  | ||||
|     # find service nodes for requested nodes | ||||
|     # build an individual request for each service node | ||||
|     # find out the names for the Management Node  | ||||
|     my @MNnodeinfo   = xCAT::Utils->determinehostname; | ||||
|     my $MNnodename   = pop @MNnodeinfo; # hostname | ||||
|     my @MNnodeipaddr = @MNnodeinfo;  # ipaddresses  | ||||
|     if ($nodes) | ||||
|     { | ||||
|         $sn = xCAT::Utils->get_ServiceNode($nodes, $service, "MN"); | ||||
| @@ -87,6 +91,7 @@ sub preprocess_request | ||||
|  | ||||
|             foreach my $snkey (keys %$sn) | ||||
|             { | ||||
|               if (!grep(/$snkey/, @MNnodeipaddr)) { # not the MN  | ||||
|                 if ($syncsnfile ne "NONE") | ||||
|                 {                    # need to send rsync file to SN | ||||
|                     my $addreq; | ||||
| @@ -103,6 +108,7 @@ sub preprocess_request | ||||
|                     last; | ||||
|                 } | ||||
|  | ||||
|               } | ||||
|             } | ||||
|             foreach my $snkey (keys %$sn) | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user