Fix for VR to boot up and get configured with boot args, Fixed issue in VolumeOrchestrator

This commit is contained in:
Rajesh Battala 2013-10-13 09:10:14 +05:30
parent c15a295e91
commit b24935f2f9
2 changed files with 7 additions and 2 deletions

View File

@ -1167,8 +1167,11 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
public void updateVolumeDiskChain(long volumeId, String path, String chainInfo) {
VolumeVO vol = _volsDao.findById(volumeId);
boolean needUpdate = false;
// Volume path is not getting updated in the DB, need to find reason and fix the issue.
if (vol.getPath() == null)
return;
if(!vol.getPath().equalsIgnoreCase(path))
needUpdate = true;
needUpdate = true;
if(chainInfo != null && (vol.getChainInfo() == null || !chainInfo.equalsIgnoreCase(vol.getChainInfo())))
needUpdate = true;

View File

@ -352,8 +352,10 @@ namespace HypervResource
// we need to reboot to get the hv kvp daemon get started vr gets configured.
if (vmName.StartsWith("r-"))
{
System.Threading.Thread.Sleep(8000);
System.Threading.Thread.Sleep(90000);
SetState(newVm, RequiredState.Reboot);
// wait for the second boot and then return with suces
System.Threading.Thread.Sleep(50000);
}
logger.InfoFormat("Started VM {0}", vmName);
return newVm;