[pve-devel] [PATCH qemu-server 1/7] api2 : migrate_vm : add migration_type "external"

Alexandre DERUMIER aderumier at odiso.com
Tue Nov 13 17:58:19 CET 2018


>>Feel free to choose a better name ;-) We can the mark this API as unstable/experimental, and modify 
>>the parameters/types. IMHO most existing parameters does not really makes sense with external migration. 
>>I guess it is still possible to factor out most common code to avoid code duplication. 
>>
>>What do you think? 

ok no problem.

I'll rework my patches next week (I'm on holiday this week).


Also, I out of idea for the qm command name.

'qm migrate_external" ?





----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>, "aderumier" <aderumier at odiso.com>
Envoyé: Mardi 13 Novembre 2018 11:22:23
Objet: Re: [pve-devel] [PATCH qemu-server 1/7] api2 : migrate_vm : add migration_type "external"

I would like to move forward with that, but changing an existing API makes that difficult. 

I would suggest to add a second API entry point instead: 

__PACKAGE__->register_method({ 
name => 'external_migrate_vm', 
path => '{vmid}/external_migrate', 
method => 'POST', 
... 

Feel free to choose a better name ;-) We can the mark this API as unstable/experimental, and modify 
the parameters/types. IMHO most existing parameters does not really makes sense with external migration. 
I guess it is still possible to factor out most common code to avoid code duplication. 

What do you think? 




More information about the pve-devel mailing list