cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "prashant kumar mishra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3808) Attach volume should work when root is at zone level primary store and data at cluster level or host level store
Date Wed, 23 Oct 2013 06:55:41 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802651#comment-13802651
] 

prashant kumar mishra commented on CLOUDSTACK-3808:
---------------------------------------------------

Attaching data disk which is on local storage to vm  with root disk on zone wide primary storage.Able
to do same with cluster wide primary storage.

Logs
--------
2013-10-23 17:44:05,273 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-19:job-41 =
[ b47bfd10-1869-4a62-8078-7d123fc07428 ]) Executing org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
for job-41 = [ b47bfd10-1869-4a62-8078-7d123fc07428 ]
2013-10-23 17:44:05,409 DEBUG [agent.transport.Request] (Job-Executor-19:job-41 = [ b47bfd10-1869-4a62-8078-7d123fc07428
]) Seq 1-44106036: Sending  { Cmd , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"43c8033b-8cac-475e-95b8-397537e8f6c4","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"c83ee7ae-2f3c-47b1-91bf-b1eab344358f","id":4,"poolType":"Filesystem","host":"10.147.40.9","path":"/var/lib/libvirt/images","port":0}},"name":"localdata","size":1073741824,"path":"bb76f6ab-43a8-4158-bab2-234d09876f5d","volumeId":16,"accountId":2,"format":"QCOW2","id":16,"hypervisorType":"KVM"}},"diskSeq":1,"type":"DATADISK"},"vmName":"i-2-3-VM","_storageHost":"10.147.40.9","_storagePort":0,"_managed":false,"wait":0}}]
}
2013-10-23 17:44:05,431 DEBUG [agent.transport.Request] (AgentManager-Handler-10:null) Seq
1-44106036: Processing:  { Ans: , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.AttachAnswer":{"result":false,"details":"org.libvirt.LibvirtException:
internal error unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1'
for drive","wait":0}}] }
2013-10-23 17:44:05,431 DEBUG [agent.transport.Request] (Job-Executor-19:job-41 = [ b47bfd10-1869-4a62-8078-7d123fc07428
]) Seq 1-44106036: Received:  { Ans: , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 10,
{ AttachAnswer } }
2013-10-23 17:44:05,440 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-19:job-41 =
[ b47bfd10-1869-4a62-8078-7d123fc07428 ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.AttachVolumeCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to attach volume: localdata to VM:
test; org.libvirt.LibvirtException: internal error unable to execute QEMU command '__com.redhat_drive_add':
Duplicate ID 'drive-virtio-disk1' for drive
        at com.cloud.storage.VolumeManagerImpl.sendAttachVolumeCommand(VolumeManagerImpl.java:1708)
        at com.cloud.storage.VolumeManagerImpl.attachVolumeToVM(VolumeManagerImpl.java:1940)
        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:158)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
        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-10-23 17:44:05,444 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-19:job-41 =
[ b47bfd10-1869-4a62-8078-7d123fc07428 ]) Complete async job-41 = [ b47bfd10-1869-4a62-8078-7d123fc07428
], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to attach volume:
localdata to VM: test; org.libvirt.LibvirtException: internal error unable to execute QEMU
command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1' for drive
2013-10-23 17:44:06,743 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) VmStatsCollector
is running...
2013-10-23 17:44:06,858 DEBUG [agent.transport.Request] (StatsCollector-1:null) Seq 1-44106037:
Received:  { Ans: , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 10, { GetVmStatsAnswer
} }


Agent log
-----------
2013-10-23 12:21:40,326 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:null) Processing
command: com.cloud.agent.api.GetVmStatsCommand
2013-10-23 12:21:52,046 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Request:Seq
1-44106074:  { Cmd , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.AttachCommand":{"disk":{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"43c8033b-8cac-475e-95b8-397537e8f6c4","volumeType":"DATADISK","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"c83ee7ae-2f3c-47b1-91bf-b1eab344358f","id":4,"poolType":"Filesystem","host":"10.147.40.9","path":"/var/lib/libvirt/images","port":0}},"name":"localdata","size":1073741824,"path":"bb76f6ab-43a8-4158-bab2-234d09876f5d","volumeId":16,"accountId":2,"format":"QCOW2","id":16,"hypervisorType":"KVM"}},"diskSeq":1,"type":"DATADISK"},"vmName":"i-2-3-VM","_storageHost":"10.147.40.9","_storagePort":0,"_managed":false,"wait":0}}]
}
2013-10-23 12:21:52,047 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Processing
command: org.apache.cloudstack.storage.command.AttachCommand
2013-10-23 12:21:52,060 DEBUG [kvm.storage.KVMStorageProcessor] (agentRequest-Handler-5:null)
Attaching device: <disk  device='disk' type='file'>
<driver name='qemu' type='qcow2' cache='none' />
<source file='/var/lib/libvirt/images/bb76f6ab-43a8-4158-bab2-234d09876f5d'/>
<target dev='vdb' bus='virtio'/>
</disk>

2013-10-23 12:21:52,068 WARN  [kvm.storage.KVMStorageProcessor] (agentRequest-Handler-5:null)
Failed to attach device to i-2-3-VM: internal error unable to execute QEMU command '__com.redhat_drive_add':
Duplicate ID 'drive-virtio-disk1' for drive
2013-10-23 12:21:52,068 DEBUG [kvm.storage.KVMStorageProcessor] (agentRequest-Handler-5:null)
Failed to attach volume: bb76f6ab-43a8-4158-bab2-234d09876f5d, due to org.libvirt.LibvirtException:
internal error unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1'
for drive
2013-10-23 12:21:52,069 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Seq 1-44106074:
 { Ans: , MgmtId: 7187258671142, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.AttachAnswer":{"result":false,"details":"org.libvirt.LibvirtException:
internal error unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1'
for drive","wait":0}}] }




> Attach volume should work when root is at zone level primary store and data at cluster
level or host level store
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3808
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3808
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>            Priority: Critical
>             Fix For: 4.2.1
>
>
> There are new scenarios that needs to be handled with the introduction of zone-wide primary
store. 
> - root (zone scope) + data (cluster scope)
> - root (zone scope) + data (host scope)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message