
------=_Part_3077749_930899498.1417428474173 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable make sure you using latest sdk & cli, what is it btw? (run 'info' command) =20 On Sunday, November 30, 2014 7:48 PM, Nicolas Ecarnot <nicolas@ecarnot= .net> wrote: =20 Le 30/11/2014 15:01, Michael Pasternak a =C3=A9crit :
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=20 --storagedomain-name data-vm-adm8 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=20 UNKNOWN ERROR=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 get()= got=20 an unexpected keyword argument 'name' =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I get the same when using the id instead of the names. --=20 Nicolas Ecarnot ------=_Part_3077749_930899498.1417428474173 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div style=3D"color:#000; background-color:#fff; font-family:HelveticaNeue-= Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grand= e, sans-serif;font-size:16px"><div dir=3D"ltr" id=3D"yui_3_16_0_1_141735418= 2518_85012">make sure you using latest sdk & cli, what is it btw? (run = 'info' command)<br></div><div id=3D"yui_3_16_0_1_1417354182518_85011"><br><= /div><div id=3D"yui_3_16_0_1_1417354182518_84266"><span></span></div> <div = class=3D"qtdSeparateBR"><br><br></div><div style=3D"display: block;" class= =3D"yahoo_quoted"> <div style=3D"font-family: HelveticaNeue-Light, Helvetic= a Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; = font-size: 16px;"> <div style=3D"font-family: HelveticaNeue, Helvetica Neue= , Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir= =3D"ltr"> <font face=3D"Arial" size=3D"2"> On Sunday, November 30, 2014 7:4= 8 PM, Nicolas Ecarnot <nicolas@ecarnot.net> wrote:<br> </font> </div>= <br><br> <div class=3D"y_msg_container">Le 30/11/2014 15:01, Michael Past= ernak a =C3=A9crit :<br clear=3D"none">> Hi Nicolas,<br clear=3D"none">&= gt;<br clear=3D"none">> In oVit you can find /Disks under several locati= ons<br clear=3D"none">><br clear=3D"none">> /api/disks<br clear=3D"no= ne">> /api/vms/{vm:id}/disks<br clear=3D"none">> /api/templates/{temp= late:id}/disks<br clear=3D"none">> /api/vms/{vm:id}/snapshots/{snapshot:= id}/disks<br clear=3D"none">><br clear=3D"none">> to move disk to a d= ifferent domain, you have to use first one,<br clear=3D"none">> e.g disk= with no context [1], on ovirt-shell language it will look like [2].<br cle= ar=3D"none">><br clear=3D"none">> [1] /disks/{disk:id}/move<br clear= =3D"none">> [2] action disk {disk:id} move -- storagedomain-name|--stora= gedomain-id<br clear=3D"none">> [--action-async true] ...<br clear=3D"no= ne">> (use help/auto-completion to see command details/verbs)<br clear= =3D"none"><br clear=3D"none">Hi Mickael,<br clear=3D"none"><br clear=3D"non= e">Thank you for your reply, but here is what I get :<br clear=3D"none"><br= clear=3D"none">[oVirt shell (connected)]# action disk serv-fs-int1_Disk1 m= ove <br clear=3D"none">--storagedomain-name data-vm-adm8<br clear=3D"none">= <br clear=3D"none">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D <br clear=3D"none">UNKNOWN ERROR <br clear=3D"none= ">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br= clear=3D"none"> &nb= sp; &= nbsp; = get() got <br clear=3D"none">an unexpected keyword argument 'name'<= br clear=3D"none"> <br clear=3D"none">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D<br clear=3D"none"><br clear=3D"none">I get the same when using the i= d instead of the names.<div class=3D"yqt0602482900" id=3D"yqtfd39894"><br c= lear=3D"none"><br clear=3D"none">-- <br clear=3D"none">Nicolas Ecarnot<br c= lear=3D"none"></div><br><br></div> </div> </div> </div> </div> ------=_Part_3077749_930899498.1417428474173--