Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75FC410659 for ; Wed, 21 Aug 2013 08:52:56 +0000 (UTC) Received: (qmail 24479 invoked by uid 500); 21 Aug 2013 08:52:55 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 24379 invoked by uid 500); 21 Aug 2013 08:52:54 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 24275 invoked by uid 500); 21 Aug 2013 08:52:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 24256 invoked by uid 99); 21 Aug 2013 08:52:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 08:52:53 +0000 Date: Wed, 21 Aug 2013 08:52:53 +0000 (UTC) From: "prashant kumar mishra (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-4420) CS is triggering MigrationCommand when vm scaleup is failing with error;Requested memory limit is beyond the hotadd memory limit for this VM at the moment is 3072MB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-4420?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] prashant kumar mishra updated CLOUDSTACK-4420: ---------------------------------------------- Attachment: Logs_DB.rar =20 > CS is triggering MigrationCommand when vm scaleup is failing with error;= Requested memory limit is beyond the hotadd memory limit for this VM at the= moment is 3072MB > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------------- > > Key: CLOUDSTACK-4420 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-442= 0 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Affects Versions: 4.2.0 > Environment: hypervisor:esxi5.1 > Reporter: prashant kumar mishra > Fix For: 4.2.0 > > Attachments: Logs_DB.rar > > > Steps to reproduce: > --------------------------- > 1-prepare a CS setup with esxi5.1=20 > 2-add one more host in same cluster > 3-Deploy a vm with small service offering > 4-create a service offering say mem {cpu=3D1000,Ram=3D4096} > 5-scaleup vm to SO mem > Expected > ------------- > scaleup should fail because limitation(vmware/linux) . > Actual > ---------- > Scaleup is failing but CS is triggering for the vm migration > Logs > -------- > w used: 5771362304, reserved: 0; requested mem: 4294967296,alloc_from_las= t:false > 2013-08-21 10:04:54,487 DEBUG [agent.transport.Request] (Job-Executor-27:= job-27 =3D [ 89f9b494-f7ae-4f54-a498-25a418f7894a ]) Seq 1-1071317399: Send= ing { Cmd , MgmtId: 7601957896234, via: 1, Ver: v1, Flags: 100111, [{"com.= cloud.agent.api.ScaleVmCommand":{"vm":{"id":1,"name":"i-2-3-VM","cpus":1,"m= inSpeed":1000,"maxSpeed":1000,"minRam":4294967296,"maxRam":4294967296,"rebo= otOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallySca= leVm":false},"vmName":"i-2-3-VM","cpus":1,"minSpeed":1000,"maxSpeed":1000,"= minRam":4294967296,"maxRam":4294967296,"wait":0}}] } > 2013-08-21 10:04:54,490 DEBUG [agent.transport.Request] (Job-Executor-27:= job-27 =3D [ 89f9b494-f7ae-4f54-a498-25a418f7894a ]) Seq 1-1071317399: Exec= uting: { Cmd , MgmtId: 7601957896234, via: 1, Ver: v1, Flags: 100111, [{"c= om.cloud.agent.api.ScaleVmCommand":{"vm":{"id":1,"name":"i-2-3-VM","cpus":1= ,"minSpeed":1000,"maxSpeed":1000,"minRam":4294967296,"maxRam":4294967296,"r= ebootOnCrash":false,"enableHA":false,"limitCpuUse":false,"enableDynamically= ScaleVm":false},"vmName":"i-2-3-VM","cpus":1,"minSpeed":1000,"maxSpeed":100= 0,"minRam":4294967296,"maxRam":4294967296,"wait":0}}] } > 2013-08-21 10:04:54,491 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-121:null) Seq 1-1071317399: Executing request > 2013-08-21 10:04:54,492 DEBUG [vmware.mo.HostMO] (DirectAgent-121:10.147.= 40.7) find VM i-2-3-VM on host > 2013-08-21 10:04:54,492 INFO [vmware.mo.HostMO] (DirectAgent-121:10.147.= 40.7) VM i-2-3-VM not found in host cache > 2013-08-21 10:04:54,492 DEBUG [vmware.mo.HostMO] (DirectAgent-121:10.147.= 40.7) load VM cache on host > 2013-08-21 10:04:54,652 ERROR [vmware.resource.VmwareResource] (DirectAge= nt-121:10.147.40.7) Unexpected exception: > com.cloud.utils.exception.CloudRuntimeException: Memory of VM i-2-3-VM ca= nnot be scaled to 4096MB. Requested memory limit is beyond the hotadd memor= y limit for this VM at the moment is 3072MB. > at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(Vm= wareResource.java:2588) > at com.cloud.hypervisor.vmware.resource.VmwareResource.executeReq= uest(VmwareResource.java:562) > at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgen= tAttache.java:186) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.= java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:= 334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutu= reTask.access$101(ScheduledThreadPoolExecutor.java:165) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutu= reTask.run(ScheduledThreadPoolExecutor.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > 013-08-21 10:04:55,053 DEBUG [agent.transport.Request] (Job-Executor-27:j= ob-27 =3D [ 89f9b494-f7ae-4f54-a498-25a418f7894a ]) Seq 4-957808725: Sendin= g { Cmd , MgmtId: 7601957896234, via: 4, Ver: v1, Flags: 100111, [{"com.cl= oud.agent.api.PrepareForMigrationCommand":{"vm":{"id":3,"name":"i-2-3-VM","= bootloader":"HVM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,"min= Ram":536870912,"maxRam":536870912,"hostName":"test1","arch":"x86_64","os":"= CentOS 5.3 (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":false,"= limitCpuUse":false,"enableDynamicallyScaleVm":true,"vncPassword":"b454a3482= 80d18ea","params":{"rootDiskController":"ide","nicAdapter":"E1000","nestedV= irtualizationFlag":"false"},"uuid":"888c3968-7ddc-4d66-b413-50bed41f8688","= disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":= "932d063c-79aa-43d5-b4fa-d277413db9aa","volumeType":"ROOT","dataStore":{"or= g.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"8db52c2d-88f9-3= b9d-9b81-f72fcb8097c2","id":1,"poolType":"NetworkFilesystem","host":"10.147= .28.7","path":"/export/home/prashant/primary","port":2049}},"name":"ROOT-3"= ,"size":2147483648,"path":"ROOT-3","volumeId":3,"vmName":"i-2-3-VM","accoun= tId":2,"format":"OVA","id":3,"hypervisorType":"VMware"}},"diskSeq":0,"type"= :"ROOT"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true,"uu= id":"36daf032-5f59-46ec-91ba-a4fecc1ecb78","ip":"10.1.1.190","netmask":"255= .255.255.0","gateway":"10.1.1.1","mac":"02:00:51:a9:00:01","dns1":"10.103.1= 28.16","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://1107","= isolationUri":"vlan://1107","isSecurityGroupEnabled":false}]},"wait":0}}] } > 2013-08-21 10:04:55,055 DEBUG [agent.transport.Request] (Job-Executor-27:= job-27 =3D [ 89f9b494-f7ae-4f54-a498-25a418f7894a ]) Seq 4-957808725: Execu= ting: { Cmd , MgmtId: 7601957896234, via: 4, Ver: v1, Flags: 100111, [{"co= m.cloud.agent.api.PrepareForMigrationCommand":{"vm":{"id":3,"name":"i-2-3-V= M","bootloader":"HVM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,= "minRam":536870912,"maxRam":536870912,"hostName":"test1","arch":"x86_64","o= s":"CentOS 5.3 (64-bit)","bootArgs":"","rebootOnCrash":false,"enableHA":fal= se,"limitCpuUse":false,"enableDynamicallyScaleVm":true,"vncPassword":"b454a= 348280d18ea","params":{"rootDiskController":"ide","nicAdapter":"E1000","nes= tedVirtualizationFlag":"false"},"uuid":"888c3968-7ddc-4d66-b413-50bed41f868= 8","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uu= id":"932d063c-79aa-43d5-b4fa-d277413db9aa","volumeType":"ROOT","dataStore":= {"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"8db52c2d-88= f9-3b9d-9b81-f72fcb8097c2","id":1,"poolType":"NetworkFilesystem","host":"10= .147.28.7","path":"/export/home/prashant/primary","port":2049}},"name":"ROO= T-3","size":2147483648,"path":"ROOT-3","volumeId":3,"vmName":"i-2-3-VM","ac= countId":2,"format":"OVA","id":3,"hypervisorType":"VMware"}},"diskSeq":0,"t= ype":"ROOT"}],"nics":[{"deviceId":0,"networkRateMbps":200,"defaultNic":true= ,"uuid":"36daf032-5f59-46ec-91ba-a4fecc1ecb78","ip":"10.1.1.190","netmask":= "255.255.255.0","gateway":"10.1.1.1","mac":"02:00:51:a9:00:01","dns1":"10.1= 03.128.16","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://110= 7","isolationUri":"vlan://1107","isSecurityGroupEnabled":false}]},"wait":0}= }] } > 2013-08-21 10:04:55,056 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-276:null) Seq 4-957808725: Executing request > 2013-08-21 10:04:55,068 INFO [vmware.resource.VmwareResource] (DirectAge= nt-276:10.147.40.11) Executing resource PrepareForMigrationCommand: {"vm":{= "id":3,"name":"i-2-3-VM","bootloader":"HVM","type":"User","cpus":1,"minSpee= d":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"tes= t1","arch":"x86_64","os":"CentOS 5.3 (64-bit)","bootArgs":"","rebootOnCrash= ":false,"enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":tru= e,"vncPassword":"b454a348280d18ea","params":{"rootDiskController":"ide","ni= cAdapter":"E1000","nestedVirtualizationFlag":"false"},"uuid":"888c3968-7ddc= -4d66-b413-50bed41f8688","disks":[{"data":{"org.apache.cloudstack.storage.t= o.VolumeObjectTO":{"uuid":"932d063c-79aa-43d5-b4fa-d277413db9aa","volumeTyp= e":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO= ":{"uuid":"8db52c2d-88f9-3b9d-9b81-f72fcb8097c2","id":1,"poolType":"Network= Filesystem","host":"10.147.28.7","path":"/export/home/prashant/primary","po= rt":2049}},"name":"ROOT-3","size":2147483648,"path":"ROOT-3","volumeId":3,"= vmName":"i-2-3-VM","accountId":2,"format":"OVA","id":3,"hypervisorType":"VM= ware"}},"diskSeq":0,"type":"ROOT"}],"nics":[{"deviceId":0,"networkRateMbps"= :200,"defaultNic":true,"uuid":"36daf032-5f59-46ec-91ba-a4fecc1ecb78","ip":"= 10.1.1.190","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:51:= a9:00:01","dns1":"10.103.128.16","broadcastType":"Vlan","type":"Guest","bro= adcastUri":"vlan://1107","isolationUri":"vlan://1107","isSecurityGroupEnabl= ed":false}]},"wait":0} > 2013-08-21 10:04:55,068 DEBUG [vmware.resource.VmwareResource] (DirectAge= nt-276:10.147.40.11) Preparing host for migrating com.cloud.agent.api.to.Vi= rtualMachineTO@6e7d046d -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira