Re: [ovirt-users] Disk image upload via CLI?

2017-09-15 Thread Nir Soffer
On Thu, Sep 14, 2017 at 5:45 PM Matthias Leopold < matthias.leop...@meduniwien.ac.at> wrote: > Hi Daniel and other friendly contributors, > > finally i sorted out how to set provisioned_size/initial_size correctly > in upload_disk.py and my error is gone. It wasn't so easy, but maybe i > took an

Re: [ovirt-users] Disk image upload via CLI?

2017-09-14 Thread Matthias Leopold
Hi Daniel and other friendly contributors, finally i sorted out how to set provisioned_size/initial_size correctly in upload_disk.py and my error is gone. It wasn't so easy, but maybe i took an awkard route when starting with a preallocated qcow2 image. In this special case you have to set

Re: [ovirt-users] Disk image upload via CLI?

2017-09-13 Thread Nir Soffer
On Wed, Sep 13, 2017 at 5:03 PM Matthias Leopold < matthias.leop...@meduniwien.ac.at> wrote: > i tried it again twice: > > when using upload_disk.py from the ovirt engine host itself the disk > upload succeeds (despite an "503 Service Unavailable Completed 100%" in > script output in the end) > >

Re: [ovirt-users] Disk image upload via CLI?

2017-09-13 Thread Nir Soffer
On Tue, Sep 12, 2017 at 5:45 PM Matthias Leopold < matthias.leop...@meduniwien.ac.at> wrote: > Thanks, i tried this script and it _almost_ worked ;-) > > i uploaded two images i created with > qemu-img create -f qcow2 -o preallocation=full > and > qemu-img create -f qcow2 -o preallocation=falloc

Re: [ovirt-users] Disk image upload via CLI?

2017-09-13 Thread Daniel Erez
Hi Matthias, The 403 response from the daemon means the ticket can't be authenticated (for some reason). I assume that the issue here is the initial size of the disk. When uploading/downloading a qcow image, you should specify the apparent size of the file (see 'st_size' in [1]). You can get it

Re: [ovirt-users] Disk image upload via CLI?

2017-09-13 Thread Matthias Leopold
i tried it again twice: when using upload_disk.py from the ovirt engine host itself the disk upload succeeds (despite an "503 Service Unavailable Completed 100%" in script output in the end) another try was from an ovirt-sdk installation on my ubuntu desktop itself (yesterday i tried it

Re: [ovirt-users] Disk image upload via CLI?

2017-09-12 Thread Matthias Leopold
Thanks, i tried this script and it _almost_ worked ;-) i uploaded two images i created with qemu-img create -f qcow2 -o preallocation=full and qemu-img create -f qcow2 -o preallocation=falloc for initial_size and provisioned_size i took the value reported by "qemu-img info" in "virtual size"

Re: [ovirt-users] Disk image upload via CLI?

2017-09-12 Thread Yaniv Kaul
On Tue, Sep 12, 2017 at 2:15 PM, Fred Rolland wrote: > Hi, > > You can check this example: > https://github.com/oVirt/ovirt-engine-sdk/blob/master/ > sdk/examples/upload_disk.py > Or via Ansibe:

Re: [ovirt-users] Disk image upload via CLI?

2017-09-12 Thread Fred Rolland
Hi, You can check this example: https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/upload_disk.py Regards, Fred On Tue, Sep 12, 2017 at 11:49 AM, Matthias Leopold < matthias.leop...@meduniwien.ac.at> wrote: > Hi, > > is there a way to upload disk images (not OVF files, not ISO

[ovirt-users] Disk image upload via CLI?

2017-09-12 Thread Matthias Leopold
Hi, is there a way to upload disk images (not OVF files, not ISO files) to oVirt storage domains via CLI? I need to upload a 800GB file and this is not really comfortable via browser. I looked at ovirt-shell and https://www.ovirt.org/develop/release-management/features/storage/image-upload/,