-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add Force checkbox to Live Migrate Dialog #66
Comments
It is doing a force migration by default (without force, it would be refused). We use basically the same API calls than what you did in CLI. |
Oh.. i only tested it on XenSever and thought it would be the same... Thanks ! |
Oh sorry misread your request: you mean you can't force it in XCP-ng Center? |
On XenServer Center i HAVE to use the command line since GUI doesn't have a force button... if XCP-ng Center uses force by default it should be fine... |
Okay I was confused: it was late and I think you asked for Xen Orchestra UI! In Xen Orchestra, we force it by default. In XenCenter, it's likely that's it's NOT forced by default (hence your experience with it) and indeed, if you don't see a force checkbox, it's not exposed. @borzel This is probably something you could add and push against mainline too ;) |
@igerlster Can you provide a bit more context? Are you livemigrating in a pool or from host to host? Are you using the migration wizard? Can you maybe post a screenshot? At this stage it's not clear to me, what you are exactly doing. I looked into XCP-ng Center source code, but was not able to find the migration code or the mechanic to trigger a migration. It's a bit undocumented :-/ |
@igerlster I managed to find the migration code, can you please test this fix?: https://builds.schulzalex.de/xcp-ng/fix-migrate-with-force |
Hi, unfortunately no success, i'm trying to migrate a vm from XeonE3 to slightly different XeonE3 and get CPU mismatch. Using force on the command line works fine. And it shouldn't be a problem most of the time since the only feature missing is a on chip gpu. https://i.imgur.com/DMRnCOD.png If this Dialog would give a warning "CPU mismatch, force live migrate ?" that would be very nice :-) Thanks, |
Can you please provide the title of the dialog? Its a generic copy wizard which has many modes. I'll try to find your specific issue first :-) |
Sure : right click on a VM -> Migrate to Sever -> Migrate VM wizard... -> Dialog with Name "Migrate VM" opens :-) |
I assume you are livemigrating from host to host? Not from poolmember to poolmember? |
Yes, from Host to Host.... |
Ok, wish me luck... Maybe this weekend I have another testversion :-) |
OK :-) nice .-) Good luck ! |
hmm. maybe you can add "force=true" in _options ? so the answer the server gives should be "yes"... maybe :-) |
good hint... I did not see this parameter 🙈 |
You are right, XAPI checks if there is a "force" option |
Oh wow .. Nice :) |
Now passing force to the the part of the code asking if migrate is possible ... Hmm... |
buildserver is allready building |
Please carefully check with this build: https://builds.schulzalex.de/xcp-ng/fix-migrate-with-force/ |
Oh nice, thanks! :-) now i get the option to start the migration. So seems to be working. I don't have any non production systems right now to test if migration would start :-( |
I even don't have production systems with this scenario, so I'm not able to test too :-( |
Please can someone test on non production systems? |
I have two servers that have 'similar' CPU, and have that problem, so i can't move VMs live ... from one server to another, only solution was to shutdown VM, move and then run again. Error (or more warning), was showing that server CPU don't have features on remote ... where both server have Intel i5 cpus - only difference is generation ;) Installed your nightly version, and can confirm that moving VM is possible now! Thanks, have no idea what is changed, but is possible to move from one server to another - on live session. Edit: One more thing ... XCP-ng tools are not installed on VM. |
After further testing ... is not that easy as i was think, some VM failed to move:
|
I try to build another improved nightly |
I added another menu item to "Force Migrate" VMs: please try again with build 99.99.99.36 |
Nope ;) - Force flag for some reason not working :/ - when i was try to migrate in 'normal' way have same result. Only difference that i notice is 'progress bar' in events ... first (attempt) was when migrate vm, and that was fine, then progress was reset to 0, then i believe was try to startup vm? So progress is moving, and then failure message appear. With one is weird anyway, as i can migrate easily from 'xenserver' to 'two-xenserver' PS: Sorry it was i7, i was think that they are i5 ;)
Last thing, like i believe will be helpful is that VM OS is Ubuntu 16.04.4 LTS |
So in short, i can move vm up in cpu features (stepping)? and cannot be downgraded? I mean when run vm on better cpu, you cannot be moved on worst one? |
That's the allways the case if you use single servers with 'different' CPU's. If you build a pool from your single Servers, the CPU-features are used from the "worst" CPU; but some CPU's don't have the masking feature so even this isn't possible. (In my option the live migration from host to host (outside a pool) should only be needed in migration/maintenance scenarios.) |
Well i have only two servers, and i use them to move on server maintenance, and on balancing resources. I will try to create pool and migrate vm's between servers in one pool, to have look that will work, as i was never try before. |
to sum up, you can now migrate with XCP-ng Center the same way like with cli-commands? |
Based on my understanding of the issue, I think it's resolved. My test environment has an i3-4130 and an i7-3370. Llive migrating from the newer i3 to the older i7 required using the new 'Force Migrate VM wizard...' The regular migration wizard was showing the "..does not have some of the CPU features..." message in this direction. The live migration was successful. I was able to migrate back from the i7 to the i3 using the standard migrate wizard. The i3 is in a pool by itself (only member), and the i7 is a standalone server. Both are on xcp-ng 7.4. I tested with xcp-ng center linked above (https://builds.schulzalex.de/xcp-ng/fix-migrate-with-force/) |
Hi,
live migration from e.g. xeon v3 to xeon v4 fails because of cpu mismatch.. xe vm-migrate command line with force it mostly works fine...
Maybe a "Force Live Migration" Checkbox could be added ?
Thanks
Sebastian
The text was updated successfully, but these errors were encountered: