Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to live migrate VMware VMs with snapshot #9061

Open
cdfgallo opened this issue May 8, 2024 · 3 comments
Open

Unable to live migrate VMware VMs with snapshot #9061

cdfgallo opened this issue May 8, 2024 · 3 comments

Comments

@cdfgallo
Copy link

cdfgallo commented May 8, 2024

ISSUE TYPE
  • Bug Report
COMPONENT NAME
Core
CLOUDSTACK VERSION
4.19.0.1
CONFIGURATION
OS / ENVIRONMENT

vSphere 7.0

SUMMARY

If I try to live migrate a VM with storage and the VM has a snapshot, the live migration does not start with the following error:

DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-47:ctx-e8daf7c5 job-50058) (logid:28b2b6fb) Complete async job-5
0058, jobStatus: FAILED, resultCode: 431, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"431","erro
rtext":"VM with VM Snapshots cannot be migrated with storage, please remove all VM snapshots"}

STEPS TO REPRODUCE
In a VMware cluster, try to live migrate with storage a VM with at lease an active snapshot
EXPECTED RESULTS
The VM is correctly migrated

Live storage migration with VM with snapshot is supported in vSphere from version 5.0 so I guess it should be possible to perform the operation --> https://knowledge.broadcom.com/external/article?legacyId=1035550

ACTUAL RESULTS
You receive an error before the migration start.
@andrijapanicsb
Copy link
Contributor

andrijapanicsb commented May 10, 2024

This is not a bug @cdfgallo, but a design limitation. The same way, you can not attach/detach volumes/NICs etc (please read the docs about different limitations on the allowed operations on VMs that have VM snapshots)

@JoaoJandre JoaoJandre added this to the unplanned milestone May 13, 2024
@cdfgallo
Copy link
Author

@andrijapanicsb ok, got it. But why this implementation if I may ask?
In case what work-around do you use to migrate VMs without touching the snapshot?

@andrijapanicsb
Copy link
Contributor

@cdfgallo I can't advise from the top of my head, probably a technical limitation, due to consistency issues etc.
However, the way around is to remove all VM snapshots, do your actions, and then create VM snapshots again.
(is this KVM or VMware?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants