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

Nicolas Ecarnot nicolas at ecarnot.net
Mon Dec 1 13:40:52 UTC 2014


Le 01/12/2014 13:23, Juan Hernández a écrit :
> On 12/01/2014 12:51 PM, Michael Pasternak wrote:
>> not sure what sdk version 3.4.4 is, but according to log, latest
>> official for 3.4 is 3.4.1.1-1
>> (make you have it installed)
>>
>
> There are two issues here. First is that the "move" disk operation on
> the top level collection isn't correctly documented in the RSDL
> metadata. As a result the Python SDK and the CLI don't support this
> operation. You can however use the same operation in the context of the VM:
>
>    # action disk {disk:id} move --vm-identifier {vm:id}
> --storage_domain-name={storagedomain:name}
>
> Please open a bug requesting a fix for this.

Done!

https://bugzilla.redhat.com/show_bug.cgi?id=1169376

> The other issue is that the 3.4 version doesn't support specifying disks
> by alias, only by id. This has been fixed in 3.5.
>
> So, all in all, at the moment you will need a command like this:
>
>    # action disk c6aab66a-b551-4cc5-8628-efe9622c0dce move
> --vm-identifier myvm --storage_domain-name mysd

Your workaround is working : thank you.

-- 
Nicolas Ecarnot



More information about the Users mailing list