From 58aaf6780601117367bdb8d8b7ffec57776c398f Mon Sep 17 00:00:00 2001 From: Rajesh Battala Date: Sun, 22 Dec 2013 22:15:29 +0530 Subject: [PATCH] CLOUDSTACK-5584 fix the issue to configure the systemvm's in hyperv consistently --- .../ServerResource/HypervResource/WmiCallsV2.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs index 2248afa05e0..6eb835304b8 100644 --- a/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs +++ b/plugins/hypervisors/hyperv/DotNet/ServerResource/HypervResource/WmiCallsV2.cs @@ -445,13 +445,6 @@ namespace HypervResource String bootargs = bootArgs; AddUserData(vm, bootargs); - - // Get existing KVP - //var vmSettings = GetVmSettings(vm); - //var kvpInfo = GetKvpSettings(vmSettings); - //logger.DebugFormat("Boot Args presisted on the VM are ", kvpInfo); - //AddUserData(vm, bootargs); - // Verify key added to subsystem //kvpInfo = GetKvpSettings(vmSettings); @@ -475,17 +468,16 @@ namespace HypervResource if (vmName.StartsWith("r-") || vmName.StartsWith("s-") || vmName.StartsWith("v-")) { System.Threading.Thread.Sleep(90000); - SetState(newVm, RequiredState.Reset); // wait for the second boot and then return with sucesss //if publicIPAddress is empty or null don't ping the ip - if (publicIpAddress.Equals("") == true) + /*if (publicIpAddress.Equals("") == true) { System.Threading.Thread.Sleep(90000); } else { pingResource(publicIpAddress); - } + }*/ } logger.InfoFormat("Started VM {0}", vmName); return newVm;