On Tue, Jan 28, 2020, 15:15 Roy Golan <rgolan@redhat.com> wrote:
For a long time I think that ovirt is missing some CLI tools to help run quick tasks or just to
automate stuff (not everything is ansible). Also I had to upload disks using code for
the terraform provider support[1] and I thought I should place all the knowledge of how
to upload a disk into a go module. So, on the way to achieve both I created this[2].

A typical usage is:
ovirt-image-upload \
   -s http://fqdn/image
   -d <domain-id>
For now it is under my GH user, but if it will all go well I will port under ovirt-imageio, because
that is probably the right place. (/cc @Nir Soffer )

This is cool, but we have support for upload from URL here:
https://gerrit.ovirt.org/c/106022/

The interesting thing is supporting any image format on the http server (e.g. compressed qcow2) and uploading to any disk format (e.g. raw or uncompressed qcow2). 

The upload from URL feature is basically a side effect of using qemu-nbd for reading the image. It supports many network disk types:
https://qemu.weilnetz.de/doc/qemu-doc.html#Device-URL-Syntax

Nir