mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	-Remove redundant vcenter prerequisite check that caused multiple concurrent migration requests
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -691,21 +691,28 @@ sub migrate { | ||||
|     my $tgthyp = $exargs->[0]; | ||||
|     my $destination = ${$args{exargs}}[0]; | ||||
|     my $vcenter = $hyphash{$hyp}->{vcenter}->{name}; | ||||
|     actually_migrate({ | ||||
|         nodes=>$nodes, | ||||
|         hyp=>$hyp, | ||||
|         target=>$tgthyp, | ||||
|         vcenter=>$vcenter | ||||
|     }); | ||||
| #The following code is now redundant.  validate_vcenter_prereqs is now called well before this point. | ||||
| #We do target first to prevent multiple sources to single destination from getting confused | ||||
| #one source to multiple destinations (i.e. revacuate) may require other provisions | ||||
| #by getting confused, I mean that actually migrate not thinking both are good before it's correct | ||||
|     validate_vcenter_prereqs($tgthyp, \&actually_migrate, { | ||||
|         nodes=>$nodes, | ||||
|         hyp=>$hyp, | ||||
|         target=>$tgthyp, | ||||
|         vcenter=>$vcenter | ||||
|     }); | ||||
|     validate_vcenter_prereqs($hyp, \&actually_migrate, { | ||||
|         nodes=>$nodes, | ||||
|         hyp=>$hyp, | ||||
|         target=>$tgthyp, | ||||
|         vcenter=>$vcenter | ||||
|     }); | ||||
| #   validate_vcenter_prereqs($tgthyp, \&actually_migrate, { | ||||
| #       nodes=>$nodes, | ||||
| #       hyp=>$hyp, | ||||
| #       target=>$tgthyp, | ||||
| #       vcenter=>$vcenter | ||||
| #   }); | ||||
| #   validate_vcenter_prereqs($hyp, \&actually_migrate, { | ||||
| #       nodes=>$nodes, | ||||
| #       hyp=>$hyp, | ||||
| #       target=>$tgthyp, | ||||
| #       vcenter=>$vcenter | ||||
| #   }); | ||||
| } | ||||
|  | ||||
| sub reconfig_callback { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user