cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srikanteswararao Talluri (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CLOUDSTACK-4047) [sM][VMWare][ZWPS]: no need of storage migration while migrating VM when the root volume is on zone wide primary storage
Date Fri, 16 Aug 2013 12:03:48 GMT

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

Srikanteswararao Talluri reopened CLOUDSTACK-4047:
--------------------------------------------------


Scenario 1:
===========


now findhostsformigration is not listing the destination host with requiresstoragemotion as
false when the VM is on zone wide primary storage but if the destination is on a different
cluster , migrate is failing with migrate virtualmachine API


 ===START===  10.101.255.7 -- GET  command=migrateVirtualMachine&hostid=49537136-d44f-439a-937c-442ed74bd697&virtualmachineid=80a8f9cd-1b1f-4c7e-802e-cd7fa04b9b88&response=json&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376654305892
2013-08-16 22:52:52,532 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-4:null) submit
async job-132 = [ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ], details: AsyncJobVO {id:132, userId:
2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd,
cmdOriginator: null, cmdInfo: {"response":"json","sessionkey":"mp+iVKfXp2Ptv2TJCuF+jKizBx0\u003d","virtualmachineid":"80a8f9cd-1b1f-4c7e-802e-cd7fa04b9b88","cmdEventType":"VM.MIGRATE","hostid":"49537136-d44f-439a-937c-442ed74bd697","ctxUserId":"2","httpmethod":"GET","_":"1376654305892","ctxAccountId":"2","ctxStartEventId":"467"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 6703101771911, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
2013-08-16 22:52:52,534 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) ===END===  10.101.255.7
-- GET  command=migrateVirtualMachine&hostid=49537136-d44f-439a-937c-442ed74bd697&virtualmachineid=80a8f9cd-1b1f-4c7e-802e-cd7fa04b9b88&response=json&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376654305892
2013-08-16 22:52:52,536 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-63:job-132 =
[ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]) Executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
for job-132 = [ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]
2013-08-16 22:52:52,566 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null)
Ping from 9
2013-08-16 22:52:52,579 INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-63:job-132
= [ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]) Migrating VM[User|test34] to Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(Id))]
: Dest[Zone(3)-Pod(3)-Cluster(6)-Host(11)-Storage()]
2013-08-16 22:52:52,580 INFO  [cloud.vm.VirtualMachineManagerImpl] (Job-Executor-63:job-132
= [ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]) Source and destination host are not in same cluster,
unable to migrate to host: 11
2013-08-16 22:52:52,619 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-63:job-132 =
[ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Source and destination host are not in same
cluster, unable to migrate to host: 11
	at com.cloud.vm.VirtualMachineManagerImpl.migrate(VirtualMachineManagerImpl.java:1452)
	at com.cloud.vm.UserVmManagerImpl.migrateVirtualMachine(UserVmManagerImpl.java:3981)
	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:679)
2013-08-16 22:52:52,623 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-63:job-132 =
[ 1e57f08f-814d-4d7d-8f64-67893f7cac0b ]) Complete async job-132 = [ 1e57f08f-814d-4d7d-8f64-67893f7cac0b
], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Source and destination
host are not in same cluster, unable to migrate to host: 11


Scenario 2:

=========


If migrateVirtualMachineWithVolume is issued on a VM deployed on ZWPS with destination host
on a different cluster

following error is encountered.

===START===  10.101.255.7 -- GET  command=migrateVirtualMachineWithVolumes&hostId=49537136-d44f-439a-937c-442ed74bd697&VirtualMachineId=334f420a-43fd-4c3f-b18d-604657e12f62&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376653248048
2013-08-16 22:54:35,511 DEBUG [cloud.api.ApiServer] (catalina-exec-9:null) The given command:migrateVirtualMachineWithVolumes
does not exist or it is not available for user with id:2
2013-08-16 22:54:35,513 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===END===  10.101.255.7
-- GET  command=migrateVirtualMachineWithVolumes&hostId=49537136-d44f-439a-937c-442ed74bd697&VirtualMachineId=334f420a-43fd-4c3f-b18d-604657e12f62&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376653248048
2013-08-16 22:54:37,006 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-14:null)
SeqA 3-2786: Processing Seq 3-2786:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":1,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2013-08-16 22:54:37,012 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-14:null)
SeqA 3-2786: Sending Seq 3-2786:  { Ans: , MgmtId: 6703101771911, via: 3, Ver: v1, Flags:
100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-08-16 22:54:38,420 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-15:null)
SeqA 9-447: Processing Seq 9-447:  { Cmd , MgmtId: -1, via: 9, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":16,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2013-08-16 22:54:38,429 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-15:null)
SeqA 9-447: Sending Seq 9-447:  { Ans: , MgmtId: 6703101771911, via: 9, Ver: v1, Flags: 100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-08-16 22:54:39,884 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null) ===START===  10.101.255.7
-- GET  command=migrateVirtualMachineWithVolume&hostId=49537136-d44f-439a-937c-442ed74bd697&VirtualMachineId=334f420a-43fd-4c3f-b18d-604657e12f62&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376653248048
2013-08-16 22:54:39,932 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-6:null) submit
async job-133 = [ b4aa0e9c-1a99-4189-8cd9-0b2377797537 ], details: AsyncJobVO {id:133, userId:
2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd,
cmdOriginator: null, cmdInfo: {"sessionkey":"mp+iVKfXp2Ptv2TJCuF+jKizBx0\u003d","VirtualMachineId":"334f420a-43fd-4c3f-b18d-604657e12f62","cmdEventType":"VM.MIGRATE","ctxUserId":"2","hostId":"49537136-d44f-439a-937c-442ed74bd697","httpmethod":"GET","_":"1376653248048","ctxAccountId":"2","ctxStartEventId":"470"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 6703101771911, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}
2013-08-16 22:54:39,935 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null) ===END===  10.101.255.7
-- GET  command=migrateVirtualMachineWithVolume&hostId=49537136-d44f-439a-937c-442ed74bd697&VirtualMachineId=334f420a-43fd-4c3f-b18d-604657e12f62&sessionkey=mp%2BiVKfXp2Ptv2TJCuF%2BjKizBx0%3D&_=1376653248048
2013-08-16 22:54:39,937 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-64:job-133 =
[ b4aa0e9c-1a99-4189-8cd9-0b2377797537 ]) Executing org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd
for job-133 = [ b4aa0e9c-1a99-4189-8cd9-0b2377797537 ]
2013-08-16 22:54:39,969 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-64:job-133 =
[ b4aa0e9c-1a99-4189-8cd9-0b2377797537 ]) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd
com.cloud.exception.InvalidParameterValueException: Cannot migrate VM, VM is already present
on this host, please specify valid destination host to migrate the VM
	at com.cloud.vm.UserVmManagerImpl.migrateVirtualMachineWithVolume(UserVmManagerImpl.java:4243)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at org.apache.cloudstack.api.command.admin.vm.MigrateVirtualMachineWithVolumeCmd.execute(MigrateVirtualMachineWithVolumeCmd.java:137)
	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-08-16 22:54:39,971 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-64:job-133 =
[ b4aa0e9c-1a99-4189-8cd9-0b2377797537 ]) Complete async job-133 = [ b4aa0e9c-1a99-4189-8cd9-0b2377797537
], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Cannot migrate VM, VM
is already present on this host, please specify valid destination host to migrate the VM

                
> [sM][VMWare][ZWPS]: no need of storage migration while migrating VM when the root volume
is on zone wide primary storage 
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4047
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4047
>             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
>         Environment: VMWARE, zone wide primary storage
>            Reporter: Srikanteswararao Talluri
>            Assignee: Sateesh Chodapuneedi
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Steps to reproduce:
> ==============
> 1. On a VMWare deployment with only zone wide primary storage, Issue findhostsformigration
API
> It marks the isstoragemotionrequired=true in the findHostsForMigration API response thought
storagemigration is not required. when you actually use UI to migrate VM it 
> { "findhostsformigrationresponse" : { "count":1 ,"host" : [  {"id":"668f9bcc-a645-4a64-96d2-b19c885448b9","name":"10.147.40.21","state":"Up","type":"Routing","ipaddress":"10.147.40.21","zoneid":"c78cbdfb-d138-4950-9af8-db478b60a3fb","zonename":"sm","podid":"0d491fa6-cb78-4964-bd22-de0793a47029","podname":"pod","version":"4.2.0-SNAPSHOT","hypervisor":"VMware","cpunumber":4,"cpuspeed":2394,"cpuallocated":"0%","cpuused":"0.23%","cpuwithoverprovisioning":"9576.0","networkkbsread":0,"networkkbswrite":0,"memorytotal":17169539072,"memoryallocated":0,"memoryused":1099928,"capabilities":"hvm","lastpinged":"1970-01-16T18:37:03+0530","managementserverid":7363452993625,"clusterid":"ab7f3e99-f3e3-4c27-ac24-39f20f8fa262","clustername":"10.147.60.13/sm/smclus1","clustertype":"ExternalManaged","islocalstorageactive":false,"created":"2013-08-02T21:57:07+0530","events":"HostDown;
Remove; ManagementServerDown; ShutdownRequested; AgentDisconnected; Ping; PingTimeout; AgentConnected;
StartAgentRebalance","suitableformigration":true,"requiresStorageMotion":true,"resourcestate":"Enabled","hypervisorversion":"5.1","hahost":false,"jobstatus":0}
] } 

--
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

Mime
View raw message