You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "edison su (JIRA)" <ji...@apache.org> on 2013/06/15 01:10:20 UTC

[jira] [Assigned] (CLOUDSTACK-2972) Object_Store_Refactor - KVM - Not able to attach a data volume to VM.

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

edison su reassigned CLOUDSTACK-2972:
-------------------------------------

    Assignee: edison su
    
> Object_Store_Refactor - KVM - Not able to attach a data volume to VM.
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2972
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2972
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>         Environment: Build from object_store
>            Reporter: Sangeetha Hariharan
>            Assignee: edison su
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> Steps to reproduce the problem:
> Deploy a VM.
> Create a volume.
> Attach this volume to the VM.
> This acttion fails.
> Following exception seen in management server logs:
> 2013-06-12 18:14:19,420 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-11:null) submit async job-22, details: AsyncJobVO {id:22, userId: 2, accountId: 2, sessionKey: null,
>  instanceType: Volume, instanceId: 6, cmd: org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd, cmdOriginator: null, cmdInfo: {"response":"json","id":"e3922dd8-f86a-4ebd
> -ac69-23e24c435d85","sessionkey":"KauvPaL3bEqC+aowWbhIDTjsIfQ\u003d","ctxUserId":"2","virtualMachineId":"f5c36da0-d02b-4d09-b8e5-59a9e7b65bc2","httpmethod":"GET","_":"137108611238
> 4","ctxAccountId":"2","ctxStartEventId":"96"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 764799457
> 7963, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> 2013-06-12 18:14:19,421 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null) ===END===  10.217.252.50 -- GET  command=attachVolume&id=e3922dd8-f86a-4ebd-ac69-23e24c435d85&virtualM
> achineId=f5c36da0-d02b-4d09-b8e5-59a9e7b65bc2&response=json&sessionkey=KauvPaL3bEqC%2BaowWbhIDTjsIfQ%3D&_=1371086112384
> 2013-06-12 18:14:19,422 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-22:job-22) Executing org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd for job-22
> 2013-06-12 18:14:19,469 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-22:job-22) Checking pool 1 for storage, totalSize: 11810778316800, usedBytes: 9316156080128, usedPct
> : 0.7887842638513013, disable threshold: 0.85
> 2013-06-12 18:14:19,481 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-22:job-22) Checking pool: 1 for volume allocation [Vol[6|vm=null|DATADISK]], maxSize : 2362155663360
> 0, totalAllocatedSize : 589824, askingSize : 5368709120, allocated disable threshold: 0.85
> 2013-06-12 18:14:19,483 DEBUG [cloud.storage.VolumeManagerImpl] (Job-Executor-22:job-22) Trying to create org.apache.cloudstack.storage.volume.VolumeObject@3bf332f3 on org.apache.
> cloudstack.storage.datastore.PrimaryDataStoreImpl@5b960e44
> 2013-06-12 18:14:19,499 DEBUG [agent.transport.Request] (Job-Executor-22:job-22) Seq 1-113377677: Sending  { Cmd , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 100011, [{"org.ap
> ache.cloudstack.storage.command.CreateObjectCommand":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"e3922dd8-f86a-4ebd-ac69-23e24c435d85","volumeType":"DATADI
> SK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"22f8647a-607f-303b-b7bc-a3235a7943ff","id":1,"poolType":"NetworkFilesystem","host":"10.223.110.232"
> ,"path":"/export/home/sangeetha/kvm-objectstore/primary","port":2049}},"name":"Test123","size":5368709120,"volumeId":6,"accountId":2,"id":6}},"wait":0}}] }
> 2013-06-12 18:14:19,717 DEBUG [agent.transport.Request] (AgentManager-Handler-3:null) Seq 1-113377677: Processing:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, [{"
> org.apache.cloudstack.storage.command.CreateObjectAnswer":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"size":0,"path":"68e70c1a-4736-4cd6-aa44-ada7f157be
> c3","accountId":0,"id":0}},"result":true,"wait":0}}] }
> 2013-06-12 18:14:19,717 DEBUG [agent.transport.Request] (Job-Executor-22:job-22) Seq 1-113377677: Received:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, { CreateObjectAnswer } }
> 2013-06-12 18:14:19,781 DEBUG [agent.transport.Request] (Job-Executor-22:job-22) Seq 1-113377678: Sending  { Cmd , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"e3922dd8-f86a-4ebd-ac69-23e24c435d85","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"22f8647a-607f-303b-b7bc-a3235a7943ff","id":1,"poolType":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/sangeetha/kvm-objectstore/primary","port":2049}},"name":"Test123","size":0,"path":"68e70c1a-4736-4cd6-aa44-ada7f157bec3","volumeId":6,"accountId":2,"format":"QCOW2","id":6}},"diskSeq":1,"type":"DATADISK"},"vmName":"i-2-3-VM","wait":0}}] }
> 2013-06-12 18:14:19,891 DEBUG [agent.transport.Request] (AgentManager-Handler-4:null) Seq 1-113377678: Processing:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.AttachAnswer":{"result":false,"details":"org.libvirt.LibvirtException: Domain not found: no domain with matching uuid '868a6627-c3b0-3d9b-aea4-f279cbaa253b'","wait":0}}] }
> 2013-06-12 18:14:19,892 DEBUG [agent.transport.Request] (Job-Executor-22:job-22) Seq 1-113377678: Received:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, { AttachAnswer } }
> 2013-06-12 18:14:19,903 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-22:job-22) Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume: Test123 to VM: test-1; org.libvirt.LibvirtException: Domain not found: no domain with matching uuid '868a6627-c3b0-3d9b-aea4-f279cbaa253b'
>         at com.cloud.storage.VolumeManagerImpl.sendAttachVolumeCommand(VolumeManagerImpl.java:1595)
>         at com.cloud.storage.VolumeManagerImpl.attachVolumeToVM(VolumeManagerImpl.java:1802)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd.execute(AttachVolumeCmd.java:122)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
>         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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-06-12 18:14:19,903 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-22:job-22) Complete async job-22, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to attach volume: Test123 to VM: test-1; org.libvirt.LibvirtException: Domain not found: no domain with matching uuid '868a6627-c3b0-3d9b-aea4-f279cbaa253b'
> 2013-06-12 18:14:22,519 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===START===  10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=7963923c-de6c-4f0c-98e6-4e047d826faf&response=json&sessionkey=KauvPaL3bEqC%2BaowWbhIDTjsIfQ%3D&_=1371086115705
> 2013-06-12 18:14:22,527 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-20:null) Async job-22 completed
> :

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira