cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciobanu Cristian" <cristia...@istream.today>
Subject RE: VM migration - Local Storage (VMware)
Date Wed, 11 Oct 2017 08:33:24 GMT
Ni Nitin,

   Please see :

2017-10-11 04:26:51,771 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08)
Deployment found  - P0=VM[User|i-184-227-VM],
P0=Dest[Zone(Id)-Pod(Id)-Cluster(Id)-Host(Id)-Storage(Volume(Id|Type-->Pool(
Id))] :
Dest[Zone(2)-Pod(2)-Cluster(4)-Host(16)-Storage(Volume(429|ROOT-->Pool(7)Vol
ume(429|ROOT-->Pool(7), Volume(429|ROOT-->Pool(7)Volume(429|ROOT-->Pool(7),
Volume(430|DATADISK-->Pool(7))]
2017-10-11 04:26:54,152 DEBUG [o.a.c.e.o.VolumeOrchestrator]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08) Checking
if we need to prepare 2 volumes for VM[User|i-184-227-VM]
2017-10-11 04:26:54,153 ERROR [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08) Failed
to start instance VM[User|i-184-227-VM]
2017-10-11 04:26:54,156 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08) Cleaning
up resources for the vm VM[User|i-184-227-VM] in Starting state
2017-10-11 04:26:54,158 DEBUG [c.c.a.t.Request]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08) Seq
16-4983795937638983200: Sending  { Cmd , MgmtId: 345048629065, via:
16(nsxxxxxx.ip-46-105-xxx.eu), Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":tru
e,"checkBeforeCleanup":false,"vmName":"i-184-227-VM","wait":0}}] }
2017-10-11 04:26:54,159 DEBUG [c.c.a.t.Request]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08) Seq
16-4983795937638983200: Executing:  { Cmd , MgmtId: 345048629065, via:
16(nsxxxxxx.ip-46-105-xxx.eu), Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.StopCommand":{"isProxy":false,"executeInSequence":tru
e,"checkBeforeCleanup":false,"vmName":"i-184-227-VM","wait":0}}] }
2017-10-11 04:26:54,159 INFO  [c.c.h.v.r.VmwareResource]
(DirectAgent-453:ctx-10f6d195 ns3xxxx.ip-46-105-xxx.eu, job-3216/job-3217,
cmd: StopCommand) Executing resource StopCommand:
{"isProxy":false,"executeInSequence":true,"checkBeforeCleanup":false,"vmName
":"i-184-227-VM","wait":0}
2017-10-11 04:26:54,167 DEBUG [c.c.h.v.m.HostMO]
(DirectAgent-453:ctx-10f6d195 ns3xxxxx.ip-46-105-xxx.eu, job-3216/job-3217,
cmd: StopCommand) find VM i-184-227-VM on host
2017-10-11 04:26:54,167 INFO  [c.c.h.v.m.HostMO]
(DirectAgent-453:ctx-10f6d195 ns3xxxxx.ip-46-105-xxx.eu, job-3216/job-3217,
cmd: StopCommand) VM i-184-227-VM not found in host cache
2017-10-11 04:26:54,176 INFO  [c.c.h.v.r.VmwareResource]
(DirectAgent-453:ctx-10f6d195 ns3xxxxx.ip-46-105-xxxx.eu, job-3216/job-3217,
cmd: StopCommand) VM i-184-227-VM is no longer in vSphere
2017-10-11 04:26:54,176 DEBUG [c.c.a.t.Request]
(DirectAgent-453:ctx-10f6d195) Seq 16-4983795937638983200: Processing:  {
Ans: , MgmtId: 345048629065, via: 16, Ver: v1, Flags: 110,
[{"com.cloud.agent.api.StopAnswer":{"result":true,"details":"VM i-184-227-VM
is no longer in vSphere","wait":0}}] }
2017-10-11 04:26:54,184 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08)
Successfully released network resources for the vm VM[User|i-184-227-VM]
2017-10-11 04:26:54,184 DEBUG [c.c.v.VirtualMachineManagerImpl]
(Work-Job-Executor-120:ctx-6e7751a2 job-3216/job-3217 ctx-98adbe08)
Successfully cleanued up resources for the vm VM[User|i-184-227-VM] in
Starting state


Also not able to detach the Data volume anymore :

2017-10-11 04:29:43,708 DEBUG [c.c.a.t.Request]
(Work-Job-Executor-123:ctx-997ad350 job-3220/job-3221 ctx-861bfbbe) Seq
14-4145563456994578384: Sending  { Cmd , MgmtId: 345048629065, via:
14(nsxxxxx.ip-51-254-xxx.eu), Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DettachCommand":{"disk":{"data":{"o
rg.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"cb2818b1-3073-4520-
a470-3f54f28f9fe0","volumeType":"DATADISK","dataStore":{"org.apache.cloudsta
ck.storage.to.PrimaryDataStoreTO":{"uuid":"bc6e7747-5ed2-4680-a1fe-e9a192bf7
f5f","id":5,"poolType":"VMFS","host":"VMFS datastore:
datastore-731","path":"datastore-731","port":0,"url":"VMFS://VMFS datastore:
datastore-731/datastore-731/?ROLE=Primary&STOREUUID=bc6e7747-5ed2-4680-a1fe-
e9a192bf7f5f"}},"name":"DATA-227","size":10737418240,"path":"24b9109a6b1c4a5
f9945664ed909efab","volumeId":430,"vmName":"i-184-227-VM","accountId":184,"c
hainInfo":"{\"diskDeviceBusName\":\"scsi0:0\",\"diskChain\":[\"[datastore1
(1)]
i-184-227-VM/24b9109a6b1c4a5f9945664ed909efab.vmdk\"]}","format":"OVA","prov
isioningType":"THIN","id":430,"deviceId":1,"hypervisorType":"VMware"}},"disk
Seq":1,"path":"24b9109a6b1c4a5f9945664ed909efab","type":"DATADISK"},"vmName"
:"i-184-227-VM","_managed":false,"_storageHost":"VMFS datastore:
datastore-731","_storagePort":0,"wait":0}}] }
2017-10-11 04:29:43,708 DEBUG [c.c.a.t.Request]
(Work-Job-Executor-123:ctx-997ad350 job-3220/job-3221 ctx-861bfbbe) Seq
14-4145563456994578384: Executing:  { Cmd , MgmtId: 345048629065, via:
14(nsxxxxx.ip-51-254-xxx.eu), Ver: v1, Flags: 100011,
[{"org.apache.cloudstack.storage.command.DettachCommand":{"disk":{"data":{"o
rg.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"cb2818b1-3073-4520-
a470-3f54f28f9fe0","volumeType":"DATADISK","dataStore":{"org.apache.cloudsta
ck.storage.to.PrimaryDataStoreTO":{"uuid":"bc6e7747-5ed2-4680-a1fe-e9a192bf7
f5f","id":5,"poolType":"VMFS","host":"VMFS datastore:
datastore-731","path":"datastore-731","port":0,"url":"VMFS://VMFS datastore:
datastore-731/datastore-731/?ROLE=Primary&STOREUUID=bc6e7747-5ed2-4680-a1fe-
e9a192bf7f5f"}},"name":"DATA-227","size":10737418240,"path":"24b9109a6b1c4a5
f9945664ed909efab","volumeId":430,"vmName":"i-184-227-VM","accountId":184,"c
hainInfo":"{\"diskDeviceBusName\":\"scsi0:0\",\"diskChain\":[\"[datastore1
(1)]
i-184-227-VM/24b9109a6b1c4a5f9945664ed909efab.vmdk\"]}","format":"OVA","prov
isioningType":"THIN","id":430,"deviceId":1,"hypervisorType":"VMware"}},"disk
Seq":1,"path":"24b9109a6b1c4a5f9945664ed909efab","type":"DATADISK"},"vmName"
:"i-184-227-VM","_managed":false,"_storageHost":"VMFS datastore:
datastore-731","_storagePort":0,"wait":0}}] }
2017-10-11 04:29:43,717 DEBUG [c.c.h.v.m.HostMO]
(DirectAgent-480:ctx-74e8db58 nsxxxxx.ip-51-254-xxx.eu, job-3220/job-3221,
cmd: DettachCommand) find VM i-184-227-VM on host
2017-10-11 04:29:43,717 INFO  [c.c.h.v.m.HostMO]
(DirectAgent-480:ctx-74e8db58 nsxxxxx.ip-51-254-xxx.eu, job-3220/job-3221,
cmd: DettachCommand) VM i-184-227-VM not found in host cache
2017-10-11 04:29:44,124 INFO  [c.c.h.v.m.VirtualMachineMO]
(DirectAgent-480:ctx-74e8db58 ns3023190.ip-51-254-199.eu, job-3220/job-3221,
cmd: DettachCommand) Test against disk backing : [datastore1 (1)]
i-184-227-VM/ROOT-227-000001.vmdk




Thank you!

-----Original Message-----
From: Nitin Kumar Maharana [mailto:nitinkumar.maharana@accelerite.com] 
Sent: Wednesday, October 11, 2017 11:23 AM
To: users@cloudstack.apache.org
Cc: Sateesh Chodapuneedi <sateesh.chodapuneedi@accelerite.com>
Subject: Re: VM migration - Local Storage (VMware)

Cristian,

Can you post your management server log.


Thanks,
Nitin
On 11-Oct-2017, at 1:41 PM, Ciobanu Cristian
<cristian.c@istream.today<mailto:cristian.c@istream.today>> wrote:

Hello,

  Yes, I have tested multiple times on multiple cloudstack with version
4.5.2 also 4.9.2 and I get the same error, I have also tried with
cloudstackops scripts, same issue but there I have only to migrate to other
cluster.

   Also right now when I try to start the VM I get this : Unable to start a
VM due to concurrent operation


Thank you,
Cristian



-----Original Message-----
From: Nitin Kumar Maharana [mailto:nitinkumar.maharana@accelerite.com]
Sent: Wednesday, October 11, 2017 10:26 AM
To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
Cc: Sateesh Chodapuneedi
<sateesh.chodapuneedi@accelerite.com<mailto:sateesh.chodapuneedi@accelerite.
com>>
Subject: Re: VM migration - Local Storage (VMware)

Cristian,

Can you check your host and ssvm status.
Is the SSVM up?


Thanks,
Nitin


On 11-Oct-2017, at 12:19 PM, Ciobanu Cristian
<cristian.c@istream.today<mailto:cristian.c@istream.today><mailto:cristian.c
@istream.today>> wrote:

Hello Nitin,

 This is why I have asked :

Failed to migration: com.cloud.exception.StorageUnavailableException:
Resource [StoragePool:2] is unreachable: Migrate volume failed: No remote
endpoint to send command, check if host or ssvm is down?

  Also tested without attached DATA volume and I get same issue.


Regards,
Cristian



-----Original Message-----
From: Nitin Kumar Maharana [mailto:nitinkumar.maharana@accelerite.com]
Sent: Wednesday, October 11, 2017 8:51 AM
To:
users@cloudstack.apache.org<mailto:users@cloudstack.apache.org><mailto:users
@cloudstack.apache.org>
Cc: Sateesh Chodapuneedi
<sateesh.chodapuneedi@accelerite.com<mailto:sateesh.chodapuneedi@accelerite.
com><mailto:sateesh.chodapuneedi@accelerite.
com>>
Subject: Re: VM migration - Local Storage (VMware)

Hi Cristian,

If you want to do a cold migration. (VM should be in stopped state) 1. Stop
the VM(In case it's running).
2. Start the VM.
3. Before starting, it will give you a list of hosts.
4. Choose a different host of the same cluster.
5. It would deploy the VM in the chosen host.

If you want to do a live migration. (VM should be in running state) (I
assume you are looking for this) 1. In UI, there is a button like a plus(+)
sign.
2. Post selection of that button, It would give you a list of suitable hosts
to migrate.
3. Select a different host of the same cluster, where you want to migrate.
4. Voila.. The VM would be migrated to that host without any downtime.

Note: The target host must have enough capacity available to deploy the VM,
else it would fail.

Sateesh, Correct me If I am wrong.


Thanks,
Nitin

On 11-Oct-2017, at 3:23 AM, Ciobanu Cristian
<cristian.c@istream.today<mailto:cristian.c@istream.today><mailto:cristian.c
@istream.today><mailto:cristian.c
@istream.today>> wrote:

Hello,



     Is there a way to migrate a VM from a host to other host under the same
cluster?  I have the following configuration, Cloudstack 4.5.2 configured
with basic network, local storage and VMware.





Thank you !

Cristian


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Accelerite, a Persistent Systems business. It is intended only
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies of
this message. Accelerite, a Persistent Systems business does not accept any
liability for virus infected mails.


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Accelerite, a Persistent Systems business. It is intended only
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies of
this message. Accelerite, a Persistent Systems business does not accept any
liability for virus infected mails.


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Accelerite, a Persistent Systems business. It is intended only
for the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you are not authorized to read, retain, copy,
print, distribute or use this message. If you have received this
communication in error, please notify the sender and delete all copies of
this message. Accelerite, a Persistent Systems business does not accept any
liability for virus infected mails.


Mime
View raw message