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 2646310535 for ; Wed, 24 Dec 2014 05:31:21 +0000 (UTC) Received: (qmail 97567 invoked by uid 500); 24 Dec 2014 05:31:20 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 97540 invoked by uid 500); 24 Dec 2014 05:31:20 -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 97530 invoked by uid 500); 24 Dec 2014 05:31:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 97527 invoked by uid 99); 24 Dec 2014 05:31:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Dec 2014 05:31:20 +0000 Date: Wed, 24 Dec 2014 05:31:20 +0000 (UTC) From: "Likitha Shetty (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-8119) [VMware] Attaching multiple volumes to a VM is failing. 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-8119?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:all-tabpanel ] Likitha Shetty updated CLOUDSTACK-8119: --------------------------------------- Description:=20 +Steps to reproduce+ 1. Deploy a VM using default template. 2. Created 13 volumes. 3. Attach 8 volumes to the VM. 4. Attach 9th volume to the VM, it will fail with following exception: {noformat} 2014-11-24 12:15:05,301 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx-e= ea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Executing:= { Cmd , MgmtId: 6662467354709, via: 5(10.147.40.14), Ver: v1, Flags: 1000= 11, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data"= :{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"7a3ae3ed-42dc-= 4b39-aa49-f247ccb5b20d","volumeType":"DATADISK","dataStore":{"org.apache.cl= oudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f159abf3-a686-3ff1-ad6a-24= d59100bdb9","id":3,"poolType":"NetworkFilesystem","host":"10.147.28.7","pat= h":"/export/home/manasa/primaryVMw2","port":2049,"url":"NetworkFilesystem:/= /10.147.28.7/export/home/manasa/primaryVMw2/?ROLE=3DPrimary&STOREUUID=3Df15= 9abf3-a686-3ff1-ad6a-24d59100bdb9"}},"name":"vol10","size":5368709120,"path= ":"f43757595f63473eb2e49643f76b63f1","volumeId":89,"accountId":2,"format":"= OVA","provisioningType":"THIN","id":89,"hypervisorType":"VMware"}},"diskSeq= ":9,"path":"f43757595f63473eb2e49643f76b63f1","type":"DATADISK","_details":= {"managed":"false","storagePort":"2049","storageHost":"10.147.28.7","volume= Size":"5368709120"}},"vmName":"i-2-25-VM","inSeq":false,"diskController":"s= csi","wait":0}}] } 2014-11-24 12:15:05,301 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-97:= ctx-11cd0d9d) Seq 5-6870804181507113057: Executing request 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) find VM i-2-25-VM on = host 2014-11-24 12:15:05,388 INFO [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) VM i-2-25-VM not foun= d in host cache 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) load VM cache on host 2014-11-24 12:15:05,536 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Folder test2 exi= sts on datastore 2014-11-24 12:15:05,541 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] 2014-11-24 12:15:05,562 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not exis= t on datastore 2014-11-24 12:15:05,567 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] tes= t2 2014-11-24 12:15:05,591 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] test2/f43757595f63473eb2e49643f76b63f1.vmdk exists = on datastore 2014-11-24 12:15:05,597 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1-flat.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9= ] 2014-11-24 12:15:05,622 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-flat.vmdk does not= exist on datastore 2014-11-24 12:15:05,630 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1-delta.vmdk on [f159abf3a6863ff1ad6a24d59100bdb= 9] 2014-11-24 12:15:05,655 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-delta.vmdk does no= t exist on datastore 2014-11-24 12:15:05,660 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] 2014-11-24 12:15:05,681 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not exis= t on datastore 2014-11-24 12:15:05,733 INFO [c.c.h.v.u.VmwareContext] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Connected, con= n: sun.net.www.protocol.https.DelegateHttpsURLConnection:https://10.147.60.= 18/folder/test2/f43757595f63473eb2e49643f76b63f1.vmdk?dcPath=3Dmanasa&dsNam= e=3Df159abf3a6863ff1ad6a24d59100bdb9, retry: 0 2014-11-24 12:15:06,306 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAgent= -97:ctx-11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) AttachV= olumeCommand failed due to Exception: java.lang.RuntimeException Message: Invalid configuration for device '0'. java.lang.RuntimeException: Invalid configuration for device '0'. at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(Vmware= Client.java:335) at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.attachDisk(Virtu= alMachineMO.java:1131) at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume(V= mwareStorageProcessor.java:1353) at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume(V= mwareStorageProcessor.java:1281) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.ex= ecute(StorageSubsystemCommandHandlerBase.java:139) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.ha= ndleStorageCommands(StorageSubsystemCommandHandlerBase.java:59) at com.cloud.hypervisor.vmware.resource.VmwareResource.executeReque= st(VmwareResource.java:469) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(Dir= ectAgentAttache.java:304) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.r= un(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= $1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= .callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= .runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run= (ManagedContextRunnable.java:46) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja= va:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:33= 4) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFuture= Task.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFuture= Task.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec= utor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:603) at java.lang.Thread.run(Thread.java:722) 2014-11-24 12:15:06,307 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-97:= ctx-11cd0d9d) Seq 5-6870804181507113057: Response Received: 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (DirectAgent-97:ctx-11cd0d9= d) Seq 5-6870804181507113057: Processing: { Ans: , MgmtId: 6662467354709, = via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.Attach= Answer":{"result":false,"details":"AttachVolumeCommand failed due to Except= ion: java.lang.RuntimeException\nMessage: Invalid configuration for device = '0'.\n","wait":0}}] } 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx-e= ea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Received: = { Ans: , MgmtId: 6662467354709, via: 5, Ver: v1, Flags: 10, { AttachAnswer= } } 2014-11-24 12:15:06,311 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Execu= tor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Invocation exception, cau= sed by: com.cloud.utils.exception.CloudRuntimeException: Failed to attach v= olume vol10 to VM test2; AttachVolumeCommand failed due to Exception: java.= lang.RuntimeException Message: Invalid configuration for device '0'. 2014-11-24 12:15:06,311 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Execu= tor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Rethrow exception com.clo= ud.utils.exception.CloudRuntimeException: Failed to attach volume vol10 to = VM test2; AttachVolumeCommand failed due to Exception: java.lang.RuntimeExc= eption Message: Invalid configuration for device '0'. {noformat} was: +Steps to reproduce+ 1. Deploy a VM using default template. 2. Created 13 volumes. 4. Attach 8 volumes to the VM. Attaching the 9th volume to VM, will fail with following exception: {noformat} 2014-11-24 12:15:05,301 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx-e= ea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Executing:= { Cmd , MgmtId: 6662467354709, via: 5(10.147.40.14), Ver: v1, Flags: 1000= 11, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data"= :{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"7a3ae3ed-42dc-= 4b39-aa49-f247ccb5b20d","volumeType":"DATADISK","dataStore":{"org.apache.cl= oudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f159abf3-a686-3ff1-ad6a-24= d59100bdb9","id":3,"poolType":"NetworkFilesystem","host":"10.147.28.7","pat= h":"/export/home/manasa/primaryVMw2","port":2049,"url":"NetworkFilesystem:/= /10.147.28.7/export/home/manasa/primaryVMw2/?ROLE=3DPrimary&STOREUUID=3Df15= 9abf3-a686-3ff1-ad6a-24d59100bdb9"}},"name":"vol10","size":5368709120,"path= ":"f43757595f63473eb2e49643f76b63f1","volumeId":89,"accountId":2,"format":"= OVA","provisioningType":"THIN","id":89,"hypervisorType":"VMware"}},"diskSeq= ":9,"path":"f43757595f63473eb2e49643f76b63f1","type":"DATADISK","_details":= {"managed":"false","storagePort":"2049","storageHost":"10.147.28.7","volume= Size":"5368709120"}},"vmName":"i-2-25-VM","inSeq":false,"diskController":"s= csi","wait":0}}] } 2014-11-24 12:15:05,301 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-97:= ctx-11cd0d9d) Seq 5-6870804181507113057: Executing request 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) find VM i-2-25-VM on = host 2014-11-24 12:15:05,388 INFO [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) VM i-2-25-VM not foun= d in host cache 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd0d= 9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) load VM cache on host 2014-11-24 12:15:05,536 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Folder test2 exi= sts on datastore 2014-11-24 12:15:05,541 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] 2014-11-24 12:15:05,562 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not exis= t on datastore 2014-11-24 12:15:05,567 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] tes= t2 2014-11-24 12:15:05,591 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] test2/f43757595f63473eb2e49643f76b63f1.vmdk exists = on datastore 2014-11-24 12:15:05,597 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1-flat.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9= ] 2014-11-24 12:15:05,622 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-flat.vmdk does not= exist on datastore 2014-11-24 12:15:05,630 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1-delta.vmdk on [f159abf3a6863ff1ad6a24d59100bdb= 9] 2014-11-24 12:15:05,655 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-delta.vmdk does no= t exist on datastore 2014-11-24 12:15:05,660 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f437= 57595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] 2014-11-24 12:15:05,681 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx-1= 1cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3a6= 863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not exis= t on datastore 2014-11-24 12:15:05,733 INFO [c.c.h.v.u.VmwareContext] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Connected, con= n: sun.net.www.protocol.https.DelegateHttpsURLConnection:https://10.147.60.= 18/folder/test2/f43757595f63473eb2e49643f76b63f1.vmdk?dcPath=3Dmanasa&dsNam= e=3Df159abf3a6863ff1ad6a24d59100bdb9, retry: 0 2014-11-24 12:15:06,306 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAgent= -97:ctx-11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) AttachV= olumeCommand failed due to Exception: java.lang.RuntimeException Message: Invalid configuration for device '0'. java.lang.RuntimeException: Invalid configuration for device '0'. at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(Vmware= Client.java:335) at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.attachDisk(Virtu= alMachineMO.java:1131) at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume(V= mwareStorageProcessor.java:1353) at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume(V= mwareStorageProcessor.java:1281) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.ex= ecute(StorageSubsystemCommandHandlerBase.java:139) at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.ha= ndleStorageCommands(StorageSubsystemCommandHandlerBase.java:59) at com.cloud.hypervisor.vmware.resource.VmwareResource.executeReque= st(VmwareResource.java:469) at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(Dir= ectAgentAttache.java:304) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.r= un(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= $1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= .callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext= .runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run= (ManagedContextRunnable.java:46) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja= va:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:33= 4) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFuture= Task.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFuture= Task.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec= utor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe= cutor.java:603) at java.lang.Thread.run(Thread.java:722) 2014-11-24 12:15:06,307 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-97:= ctx-11cd0d9d) Seq 5-6870804181507113057: Response Received: 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (DirectAgent-97:ctx-11cd0d9= d) Seq 5-6870804181507113057: Processing: { Ans: , MgmtId: 6662467354709, = via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.Attach= Answer":{"result":false,"details":"AttachVolumeCommand failed due to Except= ion: java.lang.RuntimeException\nMessage: Invalid configuration for device = '0'.\n","wait":0}}] } 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx-e= ea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Received: = { Ans: , MgmtId: 6662467354709, via: 5, Ver: v1, Flags: 10, { AttachAnswer= } } 2014-11-24 12:15:06,311 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Execu= tor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Invocation exception, cau= sed by: com.cloud.utils.exception.CloudRuntimeException: Failed to attach v= olume vol10 to VM test2; AttachVolumeCommand failed due to Exception: java.= lang.RuntimeException Message: Invalid configuration for device '0'. 2014-11-24 12:15:06,311 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Execu= tor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Rethrow exception com.clo= ud.utils.exception.CloudRuntimeException: Failed to attach volume vol10 to = VM test2; AttachVolumeCommand failed due to Exception: java.lang.RuntimeExc= eption Message: Invalid configuration for device '0'. {noformat} > [VMware] Attaching multiple volumes to a VM is failing. > ------------------------------------------------------- > > Key: CLOUDSTACK-8119 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-811= 9 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: Volumes > Affects Versions: 4.5.0 > Reporter: Likitha Shetty > Assignee: Likitha Shetty > Priority: Critical > Fix For: Future > > > +Steps to reproduce+ > 1. Deploy a VM using default template. > 2. Created 13 volumes. > 3. Attach 8 volumes to the VM. > 4. Attach 9th volume to the VM, it will fail with following exception: > {noformat} > 2014-11-24 12:15:05,301 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx= -eea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Executin= g: { Cmd , MgmtId: 6662467354709, via: 5(10.147.40.14), Ver: v1, Flags: 10= 0011, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"dat= a":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"7a3ae3ed-42d= c-4b39-aa49-f247ccb5b20d","volumeType":"DATADISK","dataStore":{"org.apache.= cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f159abf3-a686-3ff1-ad6a-= 24d59100bdb9","id":3,"poolType":"NetworkFilesystem","host":"10.147.28.7","p= ath":"/export/home/manasa/primaryVMw2","port":2049,"url":"NetworkFilesystem= ://10.147.28.7/export/home/manasa/primaryVMw2/?ROLE=3DPrimary&STOREUUID=3Df= 159abf3-a686-3ff1-ad6a-24d59100bdb9"}},"name":"vol10","size":5368709120,"pa= th":"f43757595f63473eb2e49643f76b63f1","volumeId":89,"accountId":2,"format"= :"OVA","provisioningType":"THIN","id":89,"hypervisorType":"VMware"}},"diskS= eq":9,"path":"f43757595f63473eb2e49643f76b63f1","type":"DATADISK","_details= ":{"managed":"false","storagePort":"2049","storageHost":"10.147.28.7","volu= meSize":"5368709120"}},"vmName":"i-2-25-VM","inSeq":false,"diskController":= "scsi","wait":0}}] } > 2014-11-24 12:15:05,301 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-9= 7:ctx-11cd0d9d) Seq 5-6870804181507113057: Executing request > 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd= 0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) find VM i-2-25-VM o= n host > 2014-11-24 12:15:05,388 INFO [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd= 0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) VM i-2-25-VM not fo= und in host cache > 2014-11-24 12:15:05,388 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-97:ctx-11cd= 0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) load VM cache on ho= st > 2014-11-24 12:15:05,536 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Folder test2 e= xists on datastore > 2014-11-24 12:15:05,541 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f4= 3757595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] > 2014-11-24 12:15:05,562 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3= a6863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not ex= ist on datastore > 2014-11-24 12:15:05,567 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f4= 3757595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] t= est2 > 2014-11-24 12:15:05,591 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3= a6863ff1ad6a24d59100bdb9] test2/f43757595f63473eb2e49643f76b63f1.vmdk exist= s on datastore > 2014-11-24 12:15:05,597 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f4= 3757595f63473eb2e49643f76b63f1-flat.vmdk on [f159abf3a6863ff1ad6a24d59100bd= b9] > 2014-11-24 12:15:05,622 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3= a6863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-flat.vmdk does n= ot exist on datastore > 2014-11-24 12:15:05,630 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f4= 3757595f63473eb2e49643f76b63f1-delta.vmdk on [f159abf3a6863ff1ad6a24d59100b= db9] > 2014-11-24 12:15:05,655 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3= a6863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1-delta.vmdk does = not exist on datastore > 2014-11-24 12:15:05,660 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Search file f4= 3757595f63473eb2e49643f76b63f1.vmdk on [f159abf3a6863ff1ad6a24d59100bdb9] > 2014-11-24 12:15:05,681 INFO [c.c.h.v.m.DatastoreMO] (DirectAgent-97:ctx= -11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) File [f159abf3= a6863ff1ad6a24d59100bdb9] f43757595f63473eb2e49643f76b63f1.vmdk does not ex= ist on datastore > 2014-11-24 12:15:05,733 INFO [c.c.h.v.u.VmwareContext] (DirectAgent-97:c= tx-11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Connected, c= onn: sun.net.www.protocol.https.DelegateHttpsURLConnection:https://10.147.6= 0.18/folder/test2/f43757595f63473eb2e49643f76b63f1.vmdk?dcPath=3Dmanasa&dsN= ame=3Df159abf3a6863ff1ad6a24d59100bdb9, retry: 0 > 2014-11-24 12:15:06,306 ERROR [c.c.s.r.VmwareStorageProcessor] (DirectAge= nt-97:ctx-11cd0d9d 10.147.40.14, job-612/job-613, cmd: AttachCommand) Attac= hVolumeCommand failed due to Exception: java.lang.RuntimeException > Message: Invalid configuration for device '0'. > java.lang.RuntimeException: Invalid configuration for device '0'. > at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(Vmwa= reClient.java:335) > at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.attachDisk(Vir= tualMachineMO.java:1131) > at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume= (VmwareStorageProcessor.java:1353) > at com.cloud.storage.resource.VmwareStorageProcessor.attachVolume= (VmwareStorageProcessor.java:1281) > at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.= execute(StorageSubsystemCommandHandlerBase.java:139) > at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.= handleStorageCommands(StorageSubsystemCommandHandlerBase.java:59) > at com.cloud.hypervisor.vmware.resource.VmwareResource.executeReq= uest(VmwareResource.java:469) > at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(D= irectAgentAttache.java:304) > at org.apache.cloudstack.managed.context.ManagedContextRunnable$1= .run(ManagedContextRunnable.java:49) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt$1.call(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.callWithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedConte= xt.runWithContext(DefaultManagedContext.java:53) > at org.apache.cloudstack.managed.context.ManagedContextRunnable.r= un(ManagedContextRunnable.java:46) > 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$201(ScheduledThreadPoolExecutor.java:178) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutu= reTask.run(ScheduledThreadPoolExecutor.java:292) > 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:722) > 2014-11-24 12:15:06,307 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-9= 7:ctx-11cd0d9d) Seq 5-6870804181507113057: Response Received: > 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (DirectAgent-97:ctx-11cd0= d9d) Seq 5-6870804181507113057: Processing: { Ans: , MgmtId: 6662467354709= , via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.Atta= chAnswer":{"result":false,"details":"AttachVolumeCommand failed due to Exce= ption: java.lang.RuntimeException\nMessage: Invalid configuration for devic= e '0'.\n","wait":0}}] } > 2014-11-24 12:15:06,308 DEBUG [c.c.a.t.Request] (Work-Job-Executor-73:ctx= -eea7360f job-612/job-613 ctx-455626cf) Seq 5-6870804181507113057: Received= : { Ans: , MgmtId: 6662467354709, via: 5, Ver: v1, Flags: 10, { AttachAnsw= er } } > 2014-11-24 12:15:06,311 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Exe= cutor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Invocation exception, c= aused by: com.cloud.utils.exception.CloudRuntimeException: Failed to attach= volume vol10 to VM test2; AttachVolumeCommand failed due to Exception: jav= a.lang.RuntimeException > Message: Invalid configuration for device '0'. > 2014-11-24 12:15:06,311 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Exe= cutor-73:ctx-eea7360f job-612/job-613 ctx-455626cf) Rethrow exception com.c= loud.utils.exception.CloudRuntimeException: Failed to attach volume vol10 t= o VM test2; AttachVolumeCommand failed due to Exception: java.lang.RuntimeE= xception > Message: Invalid configuration for device '0'. > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)