[ovirt-users] oVirt-shell command to move a disk

Michael Pasternak mishka8520 at yahoo.com
Mon Dec 1 10:07:54 UTC 2014


make sure you using latest sdk & cli, what is it btw? (run 'info' command)

 

     On Sunday, November 30, 2014 7:48 PM, Nicolas Ecarnot <nicolas at ecarnot.net> wrote:
   

 Le 30/11/2014 15:01, Michael Pasternak a écrit :
> Hi Nicolas,
>
> In oVit you can find /Disks under several locations
>
> /api/disks
> /api/vms/{vm:id}/disks
> /api/templates/{template:id}/disks
> /api/vms/{vm:id}/snapshots/{snapshot:id}/disks
>
> to move disk to a different domain, you have to use first one,
> e.g disk with no context [1], on ovirt-shell language it will look like [2].
>
> [1] /disks/{disk:id}/move
> [2] action disk {disk:id} move -- storagedomain-name|--storagedomain-id
> [--action-async true] ...
> (use help/auto-completion to see command details/verbs)

Hi Mickael,

Thank you for your reply, but here is what I get :

[oVirt shell (connected)]# action disk serv-fs-int1_Disk1 move 
--storagedomain-name data-vm-adm8
 
============================================================================ 
UNKNOWN ERROR 
=========================================================================
                                                              get() got 
an unexpected keyword argument 'name'
 
====================================================================================================================================================================

I get the same when using the id instead of the names.

-- 
Nicolas Ecarnot


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141201/dfb5b01b/attachment-0001.html>


More information about the Users mailing list