bug 6440: reconnect host after setupcommand

status 6440: resolved fixed
This commit is contained in:
anthony 2010-10-06 16:04:52 -07:00
parent e7d3a05134
commit 7a0902fd74
1 changed files with 4 additions and 4 deletions

View File

@ -701,13 +701,13 @@ public class SecondaryStorageManagerImpl implements SecondaryStorageVmManager, V
dataCenterId, (1L << 31));
String guestMacAddress = macAddresses[0];
while ((pod = _agentMgr.findPod(_template, _serviceOffering, dc, Account.ACCOUNT_ID_SYSTEM, avoidPods)) != null){
avoidPods.add(pod.first().getId());
publicIpAndVlan = allocPublicIpAddress(dataCenterId, pod.first().getId(), publicMacAddress);
if (publicIpAndVlan == null) {
s_logger.warn("Unable to allocate public IP address for secondary storage vm in data center : " + dataCenterId + ", pod="+ pod.first().getId());
avoidPods.add(pod.first().getId());
} else {
if (publicIpAndVlan != null) {
break;
}
s_logger.warn("Unable to allocate public IP address for secondary storage vm in data center : " + dataCenterId + ", pod="+ pod.first().getId());
}
if (pod == null || publicIpAndVlan == null) {