[pve-devel] best way to call storage api2 between nodes ? (for livemigration with local storage)

2014-11-17 Thread Alexandre DERUMIER
I'm currently looking to implement livemigration + storage migration,

for this,

I need to call

API2::Storage::Content::create 

from node1 (source) to node2 (target) 
and get the created volid value.

Currently, for live migration, we always use ssh and send a qm ... commands 
to target node.

So, does it need to implement a new command, something like pvestorage 
create mapped to the storage apis ?



___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] best way to call storage api2 between nodes ? (for livemigration with local storage)

2014-11-17 Thread Alexandre DERUMIER
So, does it need to implement a new command, something like pvestorage 
create mapped to the storage apis ?

Oh, sorry, I never notice that we already have a pvesm command :)



- Mail original - 

De: Alexandre DERUMIER aderum...@odiso.com 
À: Dietmar Maurer diet...@proxmox.com 
Cc: pve-devel@pve.proxmox.com 
Envoyé: Lundi 17 Novembre 2014 10:08:23 
Objet: [pve-devel] best way to call storage api2 between nodes ? (for 
livemigration with local storage) 

I'm currently looking to implement livemigration + storage migration, 

for this, 

I need to call 

API2::Storage::Content::create 

from node1 (source) to node2 (target) 
and get the created volid value. 

Currently, for live migration, we always use ssh and send a qm ... commands 
to target node. 

So, does it need to implement a new command, something like pvestorage 
create mapped to the storage apis ? 



___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] best way to call storage api2 between nodes ? (for livemigration with local storage)

2014-11-17 Thread Kamil Trzciński
Maybe you need any help? :)

On Mon, Nov 17, 2014 at 10:13 AM, Alexandre DERUMIER aderum...@odiso.com
wrote:

 So, does it need to implement a new command, something like pvestorage
 create mapped to the storage apis ?

 Oh, sorry, I never notice that we already have a pvesm command :)



 - Mail original -

 De: Alexandre DERUMIER aderum...@odiso.com
 À: Dietmar Maurer diet...@proxmox.com
 Cc: pve-devel@pve.proxmox.com
 Envoyé: Lundi 17 Novembre 2014 10:08:23
 Objet: [pve-devel] best way to call storage api2 between nodes ? (for
 livemigration with local storage)

 I'm currently looking to implement livemigration + storage migration,

 for this,

 I need to call

 API2::Storage::Content::create

 from node1 (source) to node2 (target)
 and get the created volid value.

 Currently, for live migration, we always use ssh and send a qm ...
 commands to target node.

 So, does it need to implement a new command, something like pvestorage
 create mapped to the storage apis ?



 ___
 pve-devel mailing list
 pve-devel@pve.proxmox.com
 http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
 ___
 pve-devel mailing list
 pve-devel@pve.proxmox.com
 http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




-- 
Kamil Trzciński

ayu...@ayufan.eu
www.ayufan.eu
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] best way to call storage api2 between nodes ? (for livemigration with local storage)

2014-11-17 Thread Alexandre DERUMIER
I need to done some work with nbd server first (to migrate unused disk and also 
offline vm)

and I'll try to submit some patch next week.


But yes, help will be welcome :)


- Mail original - 

De: Kamil Trzciński ayu...@ayufan.eu 
À: Alexandre DERUMIER aderum...@odiso.com 
Cc: Dietmar Maurer diet...@proxmox.com, pve-devel@pve.proxmox.com 
Envoyé: Lundi 17 Novembre 2014 12:29:25 
Objet: Re: [pve-devel] best way to call storage api2 between nodes ? (for 
livemigration with local storage) 


Maybe you need any help? :) 


On Mon, Nov 17, 2014 at 10:13 AM, Alexandre DERUMIER  aderum...@odiso.com  
wrote: 


So, does it need to implement a new command, something like pvestorage 
create mapped to the storage apis ? 

Oh, sorry, I never notice that we already have a pvesm command :) 



- Mail original - 

De: Alexandre DERUMIER  aderum...@odiso.com  
À: Dietmar Maurer  diet...@proxmox.com  
Cc: pve-devel@pve.proxmox.com 
Envoyé: Lundi 17 Novembre 2014 10:08:23 
Objet: [pve-devel] best way to call storage api2 between nodes ? (for 
livemigration with local storage) 



I'm currently looking to implement livemigration + storage migration, 

for this, 

I need to call 

API2::Storage::Content::create 

from node1 (source) to node2 (target) 
and get the created volid value. 

Currently, for live migration, we always use ssh and send a qm ... commands 
to target node. 

So, does it need to implement a new command, something like pvestorage 
create mapped to the storage apis ? 



___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
___ 
pve-devel mailing list 
pve-devel@pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 






-- 

Kamil Trzciński 

ayu...@ayufan.eu 
www.ayufan.eu 
___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel