cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Litton Peng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5070) The disk statistics cann't be updated during the migration if VM attach an iso file.
Date Thu, 07 Nov 2013 08:08:19 GMT

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

Litton Peng commented on CLOUDSTACK-5070:
-----------------------------------------

I investigated the source code and found this cause by when the agent process the GetVmDiskStatsCommand,
doesn't consider the case whether the VM attache an iso file. if it's a iso disk, the path
cann't be queried in volumes table.

> The disk statistics cann't be updated during the migration if VM attach an iso file.
> ------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5070
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5070
>             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
>            Reporter: Litton Peng
>
> The management server log:
> 2013-11-07 15:11:21,454 DEBUG [agent.manager.AgentManagerImpl] (Job-Executor-58:job-28697
= [ 2fdd9fda-9aa2-4e61-a74d-d83831fbe99c ]) Details from executing class com.cloud.agent.api.GetVmDiskStatsCommand:
> 2013-11-07 15:11:21,466 DEBUG [db.Transaction.Transaction] (Job-Executor-58:job-28697
= [ 2fdd9fda-9aa2-4e61-a74d-d83831fbe99c ]) Rolling back the transaction: Time = 12 Name =
 -AsyncJobManagerImpl$1.run:494-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:722;
called by -Transaction.rollback:898-UserVmManagerImpl.collectVmDiskStatistics:3607-UserVmManagerImpl.migrateVirtualMachine:4002-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-MigrateVMCmd.execute:147-ApiDispatcher.dispatch:158-AsyncJobManagerImpl$1.run:531-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603
> 2013-11-07 15:11:21,470 WARN  [cloud.vm.UserVmManagerImpl] (Job-Executor-58:job-28697
= [ 2fdd9fda-9aa2-4e61-a74d-d83831fbe99c ]) Unable to update vm disk statistics for vm: 3067
from host: 29
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.rangeCheck(ArrayList.java:604)
>         at java.util.ArrayList.get(ArrayList.java:382)
>         at com.cloud.vm.UserVmManagerImpl.collectVmDiskStatistics(UserVmManagerImpl.java:3532)
>         at com.cloud.vm.UserVmManagerImpl.migrateVirtualMachine(UserVmManagerImpl.java:4002)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd.execute(MigrateVMCmd.java:147)
>         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:722)
> 2013-11-07 15:11:21,471 INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-58:job-28697
= [ 2fdd9fda-9aa2-4e61-a74d-d83831fbe99c ]) Migrating VM[User|vm-193-02847] to Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(1)-Pod(1)-Cluster(1)-Host(17)-Storage()]
> The disk list of the VM:
> [root@h03 ~]# virsh domblklist i-13-3067-VM
> Target     Source
> ------------------------------------------------
> hda        /mnt/6015114d-6488-3be2-99da-62518a0aa14f/c8329e26-d504-40e1-b0f5-1bd19cc35e90
> hdc        /mnt/cb2b8936-9794-3852-bc2a-6e38989a7908/209-2-6c416791-1ab8-35cd-9b3e-3ca00d578813.iso



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

Mime
View raw message