<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 6:03 PM, Jiří Sléžka <span dir="ltr">&lt;<a href="mailto:jiri.slezka@slu.cz" target="_blank">jiri.slezka@slu.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On 02/21/2018 03:43 PM, Jiří Sléžka wrote:<br>
&gt; On 02/20/2018 11:09 PM, Arik Hadas wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Feb 20, 2018 at 6:37 PM, Jiří Sléžka &lt;<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;     On 02/20/2018 03:48 PM, Arik Hadas wrote:<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; On Tue, Feb 20, 2018 at 3:49 PM, Jiří Sléžka &lt;<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;<br>
&gt;&gt;     &gt; &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;&gt;&gt; wrote:<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     Hi Arik,<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     On 02/20/2018 01:22 PM, Arik Hadas wrote:<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt; On Tue, Feb 20, 2018 at 2:03 PM, Jiří Sléžka &lt;<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;<br>
&gt;&gt;     &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt; &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;<br>
&gt;&gt;     &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a> &lt;mailto:<a href="mailto:jiri.slezka@slu.cz">jiri.slezka@slu.cz</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     Hi,<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt; Hi Jiří,<br>
&gt;&gt;     &gt;     &gt;  <br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     I would like to try import some ova files into our oVirt<br>
&gt;&gt;     instance [1]<br>
&gt;&gt;     &gt;     &gt;     [2] but I facing problems.<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     I have downloaded all ova images into one of hosts<br>
&gt;&gt;     (ovirt01) into<br>
&gt;&gt;     &gt;     &gt;     direcory /ova<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     ll /ova/<br>
&gt;&gt;     &gt;     &gt;     total 6532872<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm 1160387072 Feb 16 16:21<br>
&gt;&gt;     HAAS-hpcowrie.ovf<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm 1111785984 Feb 16 16:22<br>
&gt;&gt;     HAAS-hpdio.ova<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm  846736896 Feb 16 16:22<br>
&gt;&gt;     HAAS-hpjdwpd.ova<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm  891043328 Feb 16 16:23<br>
&gt;&gt;     HAAS-hptelnetd.ova<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm  908222464 Feb 16 16:23<br>
&gt;&gt;     HAAS-hpuchotcp.ova<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm  880643072 Feb 16 16:24<br>
&gt;&gt;     HAAS-hpuchoudp.ova<br>
&gt;&gt;     &gt;     &gt;     -rw-r--r--. 1 vdsm kvm  890833920 Feb 16 16:24<br>
&gt;&gt;     HAAS-hpuchoweb.ova<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     Then I tried to import them - from host ovirt01 and<br>
&gt;&gt;     directory /ova but<br>
&gt;&gt;     &gt;     &gt;     spinner spins infinitly and nothing is happen.<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt; And does it work when you provide a path to the actual ova<br>
&gt;&gt;     file, i.e.,<br>
&gt;&gt;     &gt;     &gt; /ova/HAAS-hpdio.ova, rather than to the directory?<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     this time it ends with &quot;Failed to load VM configuration from<br>
&gt;&gt;     OVA file:<br>
&gt;&gt;     &gt;     /ova/HAAS-hpdio.ova&quot; error. <br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; Note that the logic that is applied on a specified folder is &quot;try<br>
&gt;&gt;     &gt; fetching an &#39;ova folder&#39; out of the destination folder&quot; rather than<br>
&gt;&gt;     &gt; &quot;list all the ova files inside the specified folder&quot;. It seems<br>
&gt;&gt;     that you<br>
&gt;&gt;     &gt; expected the former output since there are no disks in that<br>
&gt;&gt;     folder, right?<br>
&gt;&gt;<br>
&gt;&gt;     yes, It would be more user friendly to list all ova files and then<br>
&gt;&gt;     select which one to import (like listing all vms in vmware import)<br>
&gt;&gt;<br>
&gt;&gt;     Maybe description of path field in manager should be &quot;Path to ova file&quot;<br>
&gt;&gt;     instead of &quot;Path&quot; :-)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Sorry, I obviously meant &#39;latter&#39; rather than &#39;former&#39; before..<br>
&gt;&gt; Yeah, I agree that would be better, at least until listing the OVA files<br>
&gt;&gt; in the folder is implemented (that was the original plan, btw) - could<br>
&gt;&gt; you please file a bug?<br>
&gt;<br>
&gt; yes, sure<br>
&gt;<br>
&gt;<br>
&gt;&gt;     &gt;     &gt;     I cannot see anything relevant in vdsm log of host ovirt01.<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     In the engine.log of our standalone ovirt manager is just this<br>
&gt;&gt;     &gt;     &gt;     relevant line<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     2018-02-20 12:35:04,289+01 INFO<br>
&gt;&gt;     &gt;     &gt;     [org.ovirt.engine.core.<wbr>common.utils.ansible.<wbr>AnsibleExecutor] (default<br>
&gt;&gt;     &gt;     &gt;     task-31) [458990a7-b054-491a-904e-<wbr>5c4fe44892c4] Executing Ansible<br>
&gt;&gt;     &gt;     &gt;     command: ANSIBLE_STDOUT_CALLBACK=<wbr>ovaqueryplugin<br>
&gt;&gt;     &gt;     &gt;     [/usr/bin/ansible-playbook,<br>
&gt;&gt;     &gt;     &gt;     --private-key=/etc/pki/ovirt-<wbr>engine/keys/engine_id_rsa,<br>
&gt;&gt;     &gt;     &gt;     --inventory=/tmp/ansible-<wbr>inventory8237874608161160784,<br>
&gt;&gt;     &gt;     &gt;     --extra-vars=ovirt_query_ova_<wbr>path=/ova,<br>
&gt;&gt;     &gt;     &gt;     /usr/share/ovirt-engine/<wbr>playbooks/ovirt-ova-query.yml] [Logfile:<br>
&gt;&gt;     &gt;     &gt;     /var/log/ovirt-engine/ova/<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">ovi<wbr>rt-query-ova-ansible-<wbr>20180220123504-ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a>&gt;&gt;&gt;.slu.cz.log]<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     also there are two ansible processes which are still running<br>
&gt;&gt;     &gt;     (and makes<br>
&gt;&gt;     &gt;     &gt;     heavy load on system (load 9+ and growing, it looks like it<br>
&gt;&gt;     &gt;     eats all the<br>
&gt;&gt;     &gt;     &gt;     memory and system starts swapping))<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     ovirt    32087  3.3  0.0 332252  5980 ?        Sl <br>
&gt;&gt;      12:35   0:41<br>
&gt;&gt;     &gt;     &gt;     /usr/bin/python2 /usr/bin/ansible-playbook<br>
&gt;&gt;     &gt;     &gt;     --private-key=/etc/pki/ovirt-<wbr>engine/keys/engine_id_rsa<br>
&gt;&gt;     &gt;     &gt;     --inventory=/tmp/ansible-<wbr>inventory8237874608161160784<br>
&gt;&gt;     &gt;     &gt;     --extra-vars=ovirt_query_ova_<wbr>path=/ova<br>
&gt;&gt;     &gt;     &gt;     /usr/share/ovirt-engine/<wbr>playbooks/ovirt-ova-query.yml<br>
&gt;&gt;     &gt;     &gt;     ovirt    32099 57.5 78.9 15972880 11215312 ?   R   <br>
&gt;&gt;     12:35  11:52<br>
&gt;&gt;     &gt;     &gt;     /usr/bin/python2 /usr/bin/ansible-playbook<br>
&gt;&gt;     &gt;     &gt;     --private-key=/etc/pki/ovirt-<wbr>engine/keys/engine_id_rsa<br>
&gt;&gt;     &gt;     &gt;     --inventory=/tmp/ansible-<wbr>inventory8237874608161160784<br>
&gt;&gt;     &gt;     &gt;     --extra-vars=ovirt_query_ova_<wbr>path=/ova<br>
&gt;&gt;     &gt;     &gt;     /usr/share/ovirt-engine/<wbr>playbooks/ovirt-ova-query.yml<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     playbook looks like<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     - hosts: all<br>
&gt;&gt;     &gt;     &gt;       remote_user: root<br>
&gt;&gt;     &gt;     &gt;       gather_facts: no<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;       roles:<br>
&gt;&gt;     &gt;     &gt;         - ovirt-ova-query<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     and it looks like it only runs query_ova.py but on all<br>
&gt;&gt;     hosts?<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt; No, the engine provides ansible the host to run on when it<br>
&gt;&gt;     &gt;     executes the<br>
&gt;&gt;     &gt;     &gt; playbook.<br>
&gt;&gt;     &gt;     &gt; It would only be executed on the selected host.<br>
&gt;&gt;     &gt;     &gt;  <br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     How does this work? ...or should it work?<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt; It should, especially that part of querying the OVA and is<br>
&gt;&gt;     supposed to<br>
&gt;&gt;     &gt;     &gt; be really quick.<br>
&gt;&gt;     &gt;     &gt; Can you please share the engine log and<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;   <br>
&gt;&gt;      /var/log/ovirt-engine/ova/<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">ovi<wbr>rt-query-ova-ansible-<wbr>20180220123504-ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt; &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://20180220123504-<wbr>ovirt01.net</a>&gt;&gt;&gt;.slu.cz.log ?<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     engine log is here:<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     <a href="https://pastebin.com/nWWM3UUq" rel="noreferrer" target="_blank">https://pastebin.com/nWWM3UUq</a><br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; Thanks.<br>
&gt;&gt;     &gt; Alright, so now the configuration is fetched but its processing fails.<br>
&gt;&gt;     &gt; We fixed many issues in this area recently, but it appears that<br>
&gt;&gt;     &gt; something is wrong with the actual size of the disk within the ovf file<br>
&gt;&gt;     &gt; that resides inside this ova file.<br>
&gt;&gt;     &gt; Can you please share that ovf file that resides inside /ova/HAAS-hpdio.ova?<br>
&gt;&gt;<br>
&gt;&gt;     file HAAS-hpdio.ova<br>
&gt;&gt;     HAAS-hpdio.ova: POSIX tar archive (GNU)<br>
&gt;&gt;<br>
&gt;&gt;     [root@ovirt01 backup]# tar xvf HAAS-hpdio.ova<br>
&gt;&gt;     HAAS-hpdio.ovf<br>
&gt;&gt;     HAAS-hpdio-disk001.vmdk<br>
&gt;&gt;<br>
&gt;&gt;     file HAAS-hpdio.ovf is here:<br>
&gt;&gt;<br>
&gt;&gt;     <a href="https://pastebin.com/80qAU0wB" rel="noreferrer" target="_blank">https://pastebin.com/80qAU0wB</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks again.<br>
&gt;&gt; So that seems to be a VM that was exported from Virtual Box, right?<br>
&gt;&gt; They don&#39;t do anything that violates the OVF specification but they do<br>
&gt;&gt; some non-common things that we don&#39;t anticipate:<br>
&gt;<br>
&gt; yes, it is most likely ova from VirtualBox<br>
&gt;<br>
&gt;&gt; First, they don&#39;t specify the actual size of the disk and the current<br>
&gt;&gt; code in oVirt relies on that property.<br>
&gt;&gt; There is a workaround for this though: you can extract an OVA file, edit<br>
&gt;&gt; its OVF configuration - adding ovf:populatedSize=&quot;X&quot; (and change<br>
&gt;&gt; ovf:capacity as I&#39;ll describe next) to the Disk element inside the<br>
&gt;&gt; DiskSection and pack the OVA again (tar cvf &lt;ovf_file&gt; &lt;disk_file) where<br>
&gt;&gt; X is either:<br>
&gt;&gt; 1. the actual size of the vmdk file + some buffer (iirc, we used to take<br>
&gt;&gt; 15% of extra space for the conversion)<br>
&gt;&gt; 2. if you&#39;re using a file storage or you don&#39;t mind consuming more<br>
&gt;&gt; storage space on your block storage, simply set X to the virtual size of<br>
&gt;&gt; the disk (in bytes) as indicated by the ovf:capacity filed, e.g.,<br>
&gt;&gt; ovf:populatedSize=&quot;<wbr>21474836480&quot; in the case of HAAS-hpdio.ova.<br>
&gt;&gt;<br>
&gt;&gt; Second, the virtual size (indicated by ovf:capacity) is specified in<br>
&gt;&gt; bytes. The specification says that the default unit of allocation shall<br>
&gt;&gt; be bytes, but practically every OVA file that I&#39;ve ever saw specified it<br>
&gt;&gt; in GB and the current code in oVirt kind of assumes that this is the<br>
&gt;&gt; case without checking the ovf:capacityAllocationUnits attribute that<br>
&gt;&gt; could indicate the real unit of allocation [1].<br>
&gt;&gt; Anyway, long story short, the virtual size of the disk should currently<br>
&gt;&gt; be specified in GB, e.g., ovf:populatedSize=&quot;20&quot; in the case of<br>
&gt;&gt; HAAS-hpdio.ova.<br>
&gt;<br>
&gt; wow, thanks for this excellent explanation. I have changed this in ovf file<br>
&gt;<br>
&gt; ...<br>
&gt; &lt;Disk ovf:capacity=&quot;20&quot; ovf:diskId=&quot;vmdisk2&quot; ovf:populatedSize=&quot;20&quot; ...<br>
&gt; ...<br>
&gt;<br>
&gt; then I was able to import this mofified ova file (HAAS-hpdio_new.ova).<br>
&gt; Interesting thing is that the vm was shown in vm list for while (with<br>
&gt; state down with lock and status was initializing). After while this vm<br>
&gt; disapeared :-o<br>
&gt;<br>
&gt; I am going to test it again and collect some logs...<br>
<br>
</div></div>there are interesting logs in /var/log/vdsm/import/ at the host used for<br>
import<br>
<br>
<a href="http://mirror.slu.cz/tmp/ovirt-import.tar.bz2" rel="noreferrer" target="_blank">http://mirror.slu.cz/tmp/<wbr>ovirt-import.tar.bz2</a><br>
<br>
first of them describes situation where I chose thick provisioning,<br>
second situation with thin provisioning<br>
<br>
interesting part is I believe<br>
<br>
libguestfs: command: run: qemu-img<br>
libguestfs: command: run: \ create<br>
libguestfs: command: run: \ -f qcow2<br>
libguestfs: command: run: \ -o preallocation=off,compat=0.10<br>
libguestfs: command: run: \<br>
/rhev/data-center/mnt/blockSD/<wbr>088e7ed9-84c7-4fbd-a570-<wbr>f37fa986a772/images/d44e1890-<wbr>3e42-420b-939c-dac1290e19af/<wbr>9edcccbc-b244-4b94-acd3-<wbr>3c8ee12bbbec<br>
libguestfs: command: run: \ 21474836480<br>
Formatting<br>
&#39;/rhev/data-center/mnt/<wbr>blockSD/088e7ed9-84c7-4fbd-<wbr>a570-f37fa986a772/images/<wbr>d44e1890-3e42-420b-939c-<wbr>dac1290e19af/9edcccbc-b244-<wbr>4b94-acd3-3c8ee12bbbec&#39;,<br>
fmt=qcow2 size=21474836480 compat=0.10 encryption=off cluster_size=65536<br>
preallocation=off lazy_refcounts=off refcount_bits=16<br>
libguestfs: trace: vdsm_disk_create: disk_create = 0<br>
qemu-img &#39;convert&#39; &#39;-p&#39; &#39;-n&#39; &#39;-f&#39; &#39;qcow2&#39; &#39;-O&#39; &#39;qcow2&#39;<br>
&#39;/var/tmp/v2vovl2dccbd.qcow2&#39;<br>
&#39;/rhev/data-center/mnt/<wbr>blockSD/088e7ed9-84c7-4fbd-<wbr>a570-f37fa986a772/images/<wbr>d44e1890-3e42-420b-939c-<wbr>dac1290e19af/9edcccbc-b244-<wbr>4b94-acd3-3c8ee12bbbec&#39;<br>
qemu-img: error while writing sector 1000960: No space left on device<br>
<br>
virt-v2v: error: qemu-img command failed, see earlier errors<br>
<div><div class="gmail-h5"><br>
<br></div></div></blockquote><div><br></div><div>Sorry again, I made a mistake in:</div><div> &quot;<span style="color:rgb(80,0,80);font-size:12.800000190734863px">Anyway, long story short, the virtual size of the disk should currently</span></div><span style="color:rgb(80,0,80);font-size:12.800000190734863px"> be specified in GB, e.g., ovf:populatedSize=&quot;20&quot; in the case of</span><br style="color:rgb(80,0,80);font-size:12.800000190734863px"><span style="color:rgb(80,0,80);font-size:12.800000190734863px"> HAAS-hpdio.ova.&quot;</span><div>I should have write ovf:capacity=&quot;20&quot;.</div><div>So if you wish the actual size of the disk to be 20GB (which means the disk is preallocated), the disk element should be set with:</div><div><span style="font-size:12.800000190734863px">&lt;Disk ovf:capacity=&quot;20&quot; ovf:diskId=&quot;vmdisk2&quot; ovf:populatedSize=&quot;</span>21474836480<span style="font-size:12.800000190734863px">&quot; ...</span><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5">
<br>
&gt;<br>
&gt;&gt; That should do it. If not, please share the OVA file and I will examine<br>
&gt;&gt; it in my environment.<br>
&gt;<br>
&gt; original file is at<br>
&gt;<br>
&gt; <a href="https://haas.cesnet.cz/downloads/release-01/HAAS-hpdio.ova" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/HAAS-<wbr>hpdio.ova</a><br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ovf/OvfOvaReader.java#L220" rel="noreferrer" target="_blank">https://github.com/oVirt/<wbr>ovirt-engine/blob/master/<wbr>backend/manager/modules/utils/<wbr>src/main/java/org/ovirt/<wbr>engine/core/utils/ovf/<wbr>OvfOvaReader.java#L220</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     &gt;     file<br>
&gt;&gt;     &gt;   <br>
&gt;&gt;      /var/log/ovirt-engine/ova/<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">ovi<wbr>rt-query-ova-ansible-<wbr>20180220123504-ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://ovirt-query-ova-ansible-20180220123504-ovirt01.net" rel="noreferrer" target="_blank">http://ovirt-query-ova-<wbr>ansible-20180220123504-<wbr>ovirt01.net</a>&gt;&gt;<br>
&gt;&gt;     &gt;     in the fact does not exists (nor folder /var/log/ovirt-engine/ova/)<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt; This issue is also resolved in 4.2.2.<br>
&gt;&gt;     &gt; In the meantime, please create the  /var/log/ovirt-engine/ova/ folder<br>
&gt;&gt;     &gt; manually and make sure its permissions match the ones of the other<br>
&gt;&gt;     &gt; folders in  /var/log/ovirt-engine.<br>
&gt;&gt;<br>
&gt;&gt;     ok, done. After another try there is this log file<br>
&gt;&gt;<br>
&gt;&gt;     /var/log/ovirt-engine/ova/<a href="http://ovirt-query-ova-ansible-20180220173005-ovirt01.net" rel="noreferrer" target="_blank">ovir<wbr>t-query-ova-ansible-<wbr>20180220173005-ovirt01.net</a><br>
&gt;&gt;     &lt;<a href="http://20180220173005-ovirt01.net" rel="noreferrer" target="_blank">http://20180220173005-<wbr>ovirt01.net</a>&gt;.slu.cz.log<br>
&gt;&gt;<br>
&gt;&gt;     <a href="https://pastebin.com/M5J44qur" rel="noreferrer" target="_blank">https://pastebin.com/M5J44qur</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Is it the log of the execution of the ansible playbook that was provided<br>
&gt;&gt; with a path to the /ova folder?<br>
&gt;&gt; I&#39;m interested in that in order to see how comes that its execution<br>
&gt;&gt; never completed.<br>
&gt;<br>
&gt; well, I dont think so, it is log from import with full path to ova file<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;  <br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     &gt;     Cheers,<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     Jiri Slezka<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;  <br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     I am using latest 4.2.1.7-1.el7.centos version<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     Cheers,<br>
&gt;&gt;     &gt;     &gt;     Jiri Slezka<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     [1] <a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a>&gt;<br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a> &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;     &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a> &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/#!index.md" rel="noreferrer" target="_blank">https://haas.cesnet.cz/#!<wbr>index.md</a>&gt;&gt;&gt; - Cesnet HAAS<br>
&gt;&gt;     &gt;     &gt;     [2] <a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a><br>
&gt;&gt;     &lt;<a href="https://haas.cesnet.cz/downloads/release-01/" rel="noreferrer" target="_blank">https://haas.cesnet.cz/<wbr>downloads/release-01/</a>&gt;&gt;&gt; - Image repository<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;     _____________________________<wbr>__________________<br>
&gt;&gt;     &gt;     &gt;     Users mailing list<br>
&gt;&gt;     &gt;     &gt;     <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt; &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt;&gt;     &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;<br>
&gt;&gt;     &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;     <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;&gt;&gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;     _____________________________<wbr>__________________<br>
&gt;&gt;     &gt;     Users mailing list<br>
&gt;&gt;     &gt;     <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;<br>
&gt;&gt;     &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;&gt;<br>
&gt;&gt;     &gt;     <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt;&gt;     &gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;&gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;     &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     ______________________________<wbr>_________________<br>
&gt;&gt;     Users mailing list<br>
&gt;&gt;     <a href="mailto:Users@ovirt.org">Users@ovirt.org</a> &lt;mailto:<a href="mailto:Users@ovirt.org">Users@ovirt.org</a>&gt;<br>
&gt;&gt;     <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;     &lt;<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
</div></div>&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>